lib/active_merchant/billing/gateways/exact.rb in yetanothernguyen-activemerchant-1.16.0 vs lib/active_merchant/billing/gateways/exact.rb in yetanothernguyen-activemerchant-1.21.0
- old
+ new
@@ -66,9 +66,14 @@
def capture(money, authorization, options = {})
commit(:capture, build_capture_or_credit_request(money, authorization, options))
end
def credit(money, authorization, options = {})
+ deprecated CREDIT_DEPRECATION_MESSAGE
+ refund(money, authorization, options)
+ end
+
+ def refund(money, authorization, options = {})
commit(:credit, build_capture_or_credit_request(money, authorization, options))
end
private
def build_request(action, body)