Method: ActiveMerchant::Billing::AdyenGateway#adjust

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

#adjust(money, authorization, options = {}) ⇒ Object



136
137
138
139
140
141
142
143
# File 'lib/active_merchant/billing/gateways/adyen.rb', line 136

def adjust(money, authorization, options = {})
  post = init_post(options)
  add_invoice_for_modification(post, money, options)
  add_reference(post, authorization, options)
  add_extra_data(post, nil, options)
  add_recurring_detail_reference(post, options)
  commit('adjustAuthorisation', post, options)
end