lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.32.1 vs lib/active_merchant/billing/gateways/net_registry.rb in activemerchant-1.33.0
- old
+ new
@@ -39,11 +39,11 @@
TRANSACTIONS = {
:authorization => 'preauth',
:purchase => 'purchase',
:capture => 'completion',
:status => 'status',
- :credit => 'refund'
+ :refund => 'refund'
}
# Create a new NetRegistry gateway.
#
# Options :login and :password must be given.
@@ -92,16 +92,21 @@
}
add_request_details(params, options)
commit(:purchase, params)
end
- def credit(money, identification, options = {})
+ def refund(money, identification, options = {})
params = {
'AMOUNT' => amount(money),
'TXNREF' => identification
}
add_request_details(params, options)
- commit(:credit, params)
+ commit(:refund, params)
+ end
+
+ def credit(money, identification, options = {})
+ deprecated CREDIT_DEPRECATION_MESSAGE
+ refund(money, identification, options)
end
# Specific to NetRegistry.
#
# Run a 'status' command. This lets you view the status of a