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

- old
+ new

@@ -62,14 +62,19 @@ request = build_capture_or_credit_request(money, identification, options) commit(:capture, request) end # Refund funds to the card holder - def credit(money, identification, options = {}) + def refund(money, identification, options = {}) requires!(options, :description) request = build_capture_or_credit_request(money, identification, options) commit(:credit, request) + end + + def credit(money, identification, options = {}) + deprecated CREDIT_DEPRECATION_MESSAGE + refund(money, identification, options) end # token based billing # initiates a "Validate" transcation to store card data on payment express servers \ No newline at end of file