lib/active_merchant/billing/gateways/nexio.rb in nexio_activemerchant-0.2.7 vs lib/active_merchant/billing/gateways/nexio.rb in nexio_activemerchant-0.2.8

- old
+ new

@@ -174,10 +174,10 @@ { AddressOne: :address1, AddressTwo: :address2, City: :city, Country: :country, Phone: :phone, Postal: :zip, State: :state }.each do |suffix, key| - post[:data][:customer]["#{prefix}#{suffix}"] = data[key] if data[key].present? + post[:data][:customer]["#{prefix}#{suffix}"] = data[key].to_s end end def add_payment(post, payment, options) post[:tokenex] = token_from(payment)