lib/active_merchant/billing/gateways/netbanx.rb in activemerchant-1.103.0 vs lib/active_merchant/billing/gateways/netbanx.rb in activemerchant-1.104.0
- old
+ new
@@ -166,10 +166,11 @@
post[:merchantRefNum] = (options[:order_id] || SecureRandom.uuid)
end
def map_address(address)
return {} if address.nil?
+
country = Country.find(address[:country]) if address[:country]
mapped = {
:street => address[:address1],
:city => address[:city],
:zip => address[:zip],
@@ -201,10 +202,11 @@
params = parameters.to_json unless parameters.nil?
response =
begin
parse(ssl_request(method, get_url(uri), params, headers))
rescue ResponseError => e
- return Response.new(false, 'Invalid Login') if(e.response.code == '401')
+ return Response.new(false, 'Invalid Login') if e.response.code == '401'
+
parse(e.response.body)
end
success = success_from(response)
Response.new(