Method: ActiveMerchant::Billing::CredoraxGateway#credit

Defined in:
lib/active_merchant/billing/gateways/credorax.rb

#credit(amount, payment_method, options = {}) ⇒ Object



236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
# File 'lib/active_merchant/billing/gateways/credorax.rb', line 236

def credit(amount, payment_method, options = {})
  post = {}
  add_invoice(post, amount, options)
  add_payment_method(post, payment_method, options)
  add_customer_data(post, options)
  add_email(post, options)
  add_echo(post, options)
  add_submerchant_id(post, options)
  add_transaction_type(post, options)
  add_processor(post, options)
  add_customer_name(post, options)
  add_crypto_currency_type(post, options)

  commit(:credit, post)
end