lib/active_merchant/billing/gateways/ogone.rb in activemerchant-1.12.1 vs lib/active_merchant/billing/gateways/ogone.rb in activemerchant-1.13.0
- old
+ new
@@ -124,17 +124,23 @@
end
# Credit the specified account by a specific amount.
def credit(money, identification_or_credit_card, options = {})
if reference_transaction?(identification_or_credit_card)
+ warn CREDIT_DEPRECATION_MESSAGE
# Referenced credit: refund of a settled transaction
- perform_reference_credit(money, identification_or_credit_card, options)
+ refund(money, identification_or_credit_card, options)
else # must be a credit card or card reference
perform_non_referenced_credit(money, identification_or_credit_card, options)
end
end
+ # Refund of a settled transaction
+ def refund(money, reference, options = {})
+ perform_reference_credit(money, reference, options)
+ end
+
def test?
@options[:test] || super
end
private
@@ -281,6 +287,6 @@
end
response_hash
end
end
end
-end
\ No newline at end of file
+end