lib/active_merchant/billing/gateways/mundipagg.rb in activemerchant-1.126.0 vs lib/active_merchant/billing/gateways/mundipagg.rb in activemerchant-1.129.0
- old
+ new
@@ -58,15 +58,17 @@
def capture(money, authorization, options = {})
post = {}
post[:code] = authorization
add_invoice(post, money, options)
+ add_auth_key(post, options)
commit('capture', post, authorization)
end
def refund(money, authorization, options = {})
add_invoice(post = {}, money, options)
+ add_auth_key(post, options)
commit('refund', post, authorization)
end
def void(authorization, options = {})
commit('void', nil, authorization)
@@ -75,9 +77,10 @@
def store(payment, options = {})
post = {}
options.update(name: payment.name)
options = add_customer(options) unless options[:customer_id]
add_payment(post, payment, options)
+ add_auth_key(post, options)
commit('store', post, options[:customer_id])
end
def verify(credit_card, options = {})
MultiResponse.run(:use_first_response) do |r|