lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.125.0 vs lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.126.0

- old
+ new

@@ -40,12 +40,12 @@ VERIFY_AMOUNT_PER_COUNTRY = { 'br' => 100, 'ar' => 100, 'co' => 100, 'pe' => 300, - 'mx' => 300, - 'cl' => 5000 + 'mx' => 2000, + 'cl' => 80000 } def initialize(options = {}) requires!(options, :integration_key) super @@ -181,9 +181,10 @@ def add_invoice(post, money, options) post[:payment][:amount_total] = amount(money) post[:payment][:currency_code] = (options[:currency] || currency(money)) post[:payment][:merchant_payment_code] = Digest::MD5.hexdigest(options[:order_id]) post[:payment][:instalments] = options[:instalments] || 1 + post[:payment][:order_number] = options[:order_id][0..39] if options[:order_id] end def add_card_or_token(post, payment) payment, brand = payment.split('|') if payment.is_a?(String) post[:payment][:payment_type_code] = payment.is_a?(String) ? brand : CARD_BRAND[payment.brand.to_sym]