lib/active_merchant/billing/gateways/mercado_pago.rb in activemerchant-1.77.0 vs lib/active_merchant/billing/gateways/mercado_pago.rb in activemerchant-1.78.0
- old
+ new
@@ -100,11 +100,11 @@
add_invoice(post, money, options)
add_payment(post, options)
add_additional_data(post, options)
add_customer_data(post, payment, options)
add_address(post, options)
- post[:binary_mode] = true
+ post[:binary_mode] = (options[:binary_mode].nil? ? true : options[:binary_mode])
post
end
def authorize_request(money, payment, options = {})
post = purchase_request(money, payment, options)
@@ -208,10 +208,10 @@
def success_from(action, response)
if action == "refund"
response["error"].nil?
else
- ["active", "approved", "authorized", "cancelled"].include?(response["status"])
+ ["active", "approved", "authorized", "cancelled", "in_process"].include?(response["status"])
end
end
def message_from(response)
(response["status_detail"]) || (response["message"])