Method: ActiveMerchant::Billing::CredoraxGateway#verify

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

#verify(payment_method, options = {}) ⇒ Object



252
253
254
255
256
257
258
# File 'lib/active_merchant/billing/gateways/credorax.rb', line 252

def verify(payment_method, options = {})
  amount = eligible_for_0_auth?(payment_method, options) ? 0 : 100
  MultiResponse.run(:use_first_response) do |r|
    r.process { authorize(amount, payment_method, options) }
    r.process(:ignore_result) { void(r.authorization, options) } unless eligible_for_0_auth?(payment_method, options)
  end
end