lib/active_merchant/billing/gateways/openpay.rb in activemerchant-1.60.0 vs lib/active_merchant/billing/gateways/openpay.rb in activemerchant-1.61.0

- old
+ new

@@ -50,9 +50,16 @@ post[:description] = options[:description] post[:amount] = amount(money) commit(:post, "charges/#{CGI.escape(identification)}/refund", post, options) end + def verify(credit_card, options = {}) + MultiResponse.run(:use_first_response) do |r| + r.process { authorize(100, credit_card, options) } + r.process(:ignore_result) { void(r.authorization, options) } + end + end + def store(creditcard, options = {}) card_params = {} add_creditcard(card_params, creditcard, options) card = card_params[:card]