lib/active_merchant/billing/gateways/verifi.rb in bitfluent-activemerchant-1.5.1.1 vs lib/active_merchant/billing/gateways/verifi.rb in bitfluent-activemerchant-1.15.1
- old
+ new
@@ -85,13 +85,18 @@
capture_void_or_refund_template(:void, 0, authorization, options)
end
def credit(money, credit_card_or_authorization, options = {})
if credit_card_or_authorization.is_a?(String)
- capture_void_or_refund_template(:refund, money, credit_card_or_authorization, options)
+ deprecated CREDIT_DEPRECATION_MESSAGE
+ refund(money, credit_card_or_authorization, options)
else
sale_authorization_or_credit_template(:credit, money, credit_card_or_authorization, options)
end
+ end
+
+ def refund(money, reference, options = {})
+ capture_void_or_refund_template(:refund, money, reference, options)
end
private
def sale_authorization_or_credit_template(trx_type, money, credit_card, options = {})