Method: ActiveMerchant::Billing::PaymentezGateway#authorize
- Defined in:
- lib/active_merchant/billing/gateways/paymentez.rb
#authorize(money, payment, options = {}) ⇒ Object
73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/active_merchant/billing/gateways/paymentez.rb', line 73 def (money, payment, = {}) return purchase(money, payment, ) if [:otp_flow] post = {} add_invoice(post, money, ) add_payment(post, payment) add_customer_data(post, ) add_extra_params(post, ) commit_transaction('authorize', post) end |