lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.22.0 vs lib/active_merchant/billing/gateways/nab_transact.rb in activemerchant-1.23.0

- old
+ new

@@ -57,10 +57,10 @@ def test? @options[:test] || super end def purchase(money, credit_card_or_stored_id, options = {}) - if credit_card_or_stored_id.is_a?(ActiveMerchant::Billing::CreditCard) + if credit_card_or_stored_id.respond_to?(:number) #Credit card for instant payment commit :purchase, build_purchase_request(money, credit_card_or_stored_id, options) else #Triggered payment for an existing stored credit card options[:billing_id] = credit_card_or_stored_id.to_s