lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.12.1 vs lib/active_merchant/billing/gateways/iridium.rb in activemerchant-1.13.0
- old
+ new
@@ -57,9 +57,14 @@
def capture(money, authorization, options = {})
commit(build_reference_request('COLLECTION', money, authorization, options), options)
end
def credit(money, authorization, options={})
+ warn CREDIT_DEPRECATION_MESSAGE
+ refund(money, authorization, options)
+ end
+
+ def refund(money, authorization, options={})
commit(build_reference_request('REFUND', money, authorization, options), options)
end
def void(authorization, options={})
commit(build_reference_request('VOID', nil, authorization, options), options)
\ No newline at end of file