lib/active_merchant/billing/gateways/optimal_payment.rb in activemerchant-1.54.0 vs lib/active_merchant/billing/gateways/optimal_payment.rb in activemerchant-1.55.0

- old
+ new

@@ -281,11 +281,12 @@ end if opts[:shipping_address].present? end def build_address(xml, addr) if addr[:name] - xml.tag! 'firstName', addr[:name].split(' ').first - xml.tag! 'lastName' , addr[:name].split(' ').last + first_name, last_name = split_names(addr[:name]) + xml.tag! 'firstName', first_name + xml.tag! 'lastName' , last_name end xml.tag! 'street' , addr[:address1] if addr[:address1].present? xml.tag! 'street2', addr[:address2] if addr[:address2].present? xml.tag! 'city' , addr[:city] if addr[:city].present? if addr[:state].present?