lib/active_merchant/billing/gateways/mercado_pago.rb in activemerchant-1.124.0 vs lib/active_merchant/billing/gateways/mercado_pago.rb in activemerchant-1.125.0
- old
+ new
@@ -51,11 +51,13 @@
post = { status: 'cancelled' }
commit('void', "payments/#{authorization}", post)
end
def verify(credit_card, options = {})
+ verify_amount = 100
+ verify_amount = options[:amount].to_i if options[:amount]
MultiResponse.run(:use_first_response) do |r|
- r.process { authorize(100, credit_card, options) }
+ r.process { authorize(verify_amount, credit_card, options) }
r.process(:ignore_result) { void(r.authorization, options) }
end
end
def supports_scrubbing?