Method: ActiveMerchant::Billing::PaypalGateway#verify
- Defined in:
- lib/active_merchant/billing/gateways/paypal.rb
permalink #verify(credit_card, options = {}) ⇒ Object
[View source] [View on GitHub]
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/active_merchant/billing/gateways/paypal.rb', line 26 def verify(credit_card, = {}) if %w(visa master).include?(credit_card.brand) (0, credit_card, ) else MultiResponse.run(:use_first_response) do |r| r.process { (100, credit_card, ) } r.process(:ignore_result) { void(r., ) } end end end |