Method: ActiveMerchant::Billing::CheckoutV2Gateway#credit
- Defined in:
- lib/active_merchant/billing/gateways/checkout_v2.rb
#credit(amount, payment, options = {}) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/active_merchant/billing/gateways/checkout_v2.rb', line 52 def credit(amount, payment, = {}) post = {} add_processing_channel(post, ) add_invoice(post, amount, ) add_payment_method(post, payment, , :destination) add_source(post, ) add_instruction_data(post, ) add_payout_sender_data(post, ) add_payout_destination_data(post, ) (post, ) commit(:credit, post, ) end |