lib/active_merchant/billing/gateways/barclays_epdq.rb in activemerchant-1.12.1 vs lib/active_merchant/billing/gateways/barclays_epdq.rb in activemerchant-1.13.0

- old
+ new

@@ -62,13 +62,18 @@ # authorization is your unique order ID, not the authorization # code returned by ePDQ def credit(money, creditcard_or_authorization, options = {}) if creditcard_or_authorization.is_a?(String) - credit_existing_order(money, creditcard_or_authorization, options) + warn CREDIT_DEPRECATION_MESSAGE + refund(money, creditcard_or_authorization, options) else credit_new_order(money, creditcard_or_authorization, options) end + end + + def refund(money, authorization, options = {}) + credit_existing_order(money, authorization, options) end def void(authorization, options = {}) document = Document.new(self, @options) do add_order_form(authorization) do