lib/active_merchant/billing/gateways/allied_wallet.rb in activemerchant-1.54.0 vs lib/active_merchant/billing/gateways/allied_wallet.rb in activemerchant-1.55.0
- old
+ new
@@ -105,10 +105,10 @@
def add_customer_data(post, options)
post[:email] = options[:email] || "unspecified@example.com"
post[:iPAddress] = options[:ip]
if (billing_address = options[:billing_address])
- post[:firstName], post[:lastName] = billing_address[:name].split
+ post[:firstName], post[:lastName] = split_names(billing_address[:name])
post[:addressLine1] = billing_address[:address1]
post[:addressLine2] = billing_address[:address2]
post[:city] = billing_address[:city]
post[:state] = billing_address[:state]
post[:countryId] = billing_address[:country]