lib/active_merchant/billing/gateways/mercado_pago.rb in activemerchant-1.119.0 vs lib/active_merchant/billing/gateways/mercado_pago.rb in activemerchant-1.120.0
- old
+ new
@@ -2,11 +2,11 @@
module Billing #:nodoc:
class MercadoPagoGateway < Gateway
self.live_url = self.test_url = 'https://api.mercadopago.com/v1'
self.supported_countries = %w[AR BR CL CO MX PE UY]
- self.supported_cardtypes = %i[visa master american_express elo cabal naranja]
+ self.supported_cardtypes = %i[visa master american_express elo cabal naranja creditel]
self.homepage_url = 'https://www.mercadopago.com/'
self.display_name = 'Mercado Pago'
self.money_format = :dollars
@@ -103,10 +103,10 @@
post
end
def authorize_request(money, payment, options = {})
post = purchase_request(money, payment, options)
- post[:capture] = false
+ post[:capture] = options[:capture] || false
post
end
def add_processing_mode(post, options)
return unless options[:processing_mode]