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

- old
+ new

@@ -22,13 +22,18 @@ requires!(options, :token, :payer_id) request = build_sale_or_authorization_request('Sale', money, options) commit(request) end - def credit(money, identification, options = {}) + def refund(money, identification, options = {}) request = build_reference_request(:credit, money, identification, options) commit(request) end + + def credit(money, identification, options = {}) + deprecated CREDIT_DEPRECATION_MESSAGE + refund(money, identification, options) + end def setup_authorization(money, options = {}) requires!(options, :return_url, :cancel_return_url) request = build_setup_express_sale_or_authorization_request('Authorization', money, options)