lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.13.0 vs lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.14.0

- old
+ new

@@ -231,15 +231,20 @@ # # Refund an order # # identification must be a valid order id previously submitted by SALE # - def credit(money, identification, options = {}) + def refund(money, identification, options = {}) options.update( :ordertype => "CREDIT", :order_id => identification ) commit(money, nil, options) + end + + def credit(money, identification, options = {}) + deprecated CREDIT_DEPRECATION_MESSAGE + refund(money, identification, options) end def test? @options[:test] || super end