class Invoiced::Charge

Constants

OBJECT_NAME

Public Instance Methods

create(body={}, opts={}) click to toggle source
# File lib/invoiced/charge.rb, line 5
def create(body={}, opts={})
    response = @client.request(:post, endpoint(), body, opts)

    payment = Payment.new(@client)
    Util.convert_to_object(payment, response[:body])
end