lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.74.0 vs lib/active_merchant/billing/gateways/ebanx.rb in activemerchant-1.75.0
- old
+ new
@@ -2,11 +2,11 @@
module Billing #:nodoc:
class EbanxGateway < Gateway
self.test_url = 'https://sandbox.ebanx.com/ws/'
self.live_url = 'https://api.ebanx.com/ws/'
- self.supported_countries = ['BR', 'MX']
+ self.supported_countries = ['BR', 'MX', 'CO']
self.default_currency = 'USD'
self.supported_cardtypes = [:visa, :master, :american_express, :discover, :diners_club]
self.homepage_url = 'http://www.ebanx.com/'
self.display_name = 'Ebanx'
@@ -147,12 +147,12 @@
def add_customer_responsible_person(post, payment, options)
post[:payment][:person_type] = options[:person_type] if options[:person_type]
if options[:person_type] && options[:person_type].downcase == 'business'
post[:payment][:responsible] = {}
- post[:payment][:responsible][:name] = customer_name(payment, options)
- post[:payment][:responsible][:document] = options[:document] if options[:document]
- post[:payment][:responsible][:birth_date] = options[:birth_date] if options[:birth_date]
+ post[:payment][:responsible][:name] = options[:responsible_name] if options[:responsible_name]
+ post[:payment][:responsible][:document] = options[:responsible_document] if options[:responsible_document]
+ post[:payment][:responsible][:birth_date] = options[:responsible_birth_date] if options[:responsible_birth_date]
end
end
def add_address(post, options)
if address = options[:billing_address] || options[:address]