lib/active_merchant/billing/gateways/ct_payment.rb in activemerchant-1.82.0 vs lib/active_merchant/billing/gateways/ct_payment.rb in activemerchant-1.83.0

- old
+ new

@@ -118,10 +118,11 @@ post = {} add_terminal_number(post, options) add_operator_id(post, options) add_invoice(post,0, options) add_payment(post, credit_card) + add_address(post, credit_card, options) add_customer_data(post, options) commit('verifyAccount', post) end @@ -169,11 +170,11 @@ post[:CustomerNumber] = options[:customer_number] || '0' * 8 end def add_address(post, creditcard, options) if address = options[:billing_address] || options[:address] - post[:CardHolderAddress] = ("#{address[:address1]} #{address[:address2]}").rjust(20, ' ') + post[:CardHolderAddress] = ("#{address[:address1]} #{address[:address2]} #{address[:city]} #{address[:state]}").rjust(20, ' ') post[:CardHolderPostalCode] = address[:zip].gsub(/\s+/, '').rjust(9, ' ') end end def add_invoice(post, money, options) @@ -204,10 +205,10 @@ def commit_raw(action, parameters) url = (test? ? test_url : live_url) + action response = parse(ssl_post(url, post_data(action, parameters))) - final_response = Response.new( + Response.new( success_from(response), message_from(response), response, authorization: authorization_from(response), avs_result: AVSResult.new(code: response['avsStatus']),