lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.9.2 vs lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.9.3
- old
+ new
@@ -45,10 +45,10 @@
end
def purchase(money, payment_source, options = {})
setup_address_hash(options)
- if payment_source.is_a?(CreditCard)
+ if payment_source.respond_to?(:number)
commit(build_purchase_request('SALE', money, payment_source, options), options)
else
commit(build_reference_request('SALE', money, payment_source, options), options)
end
end
\ No newline at end of file