lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/linkpoint.rb in activemerchant-1.137.0

- old
+ new

@@ -261,14 +261,18 @@ # Commit the transaction by posting the XML file to the LinkPoint server def commit(money, creditcard, options = {}) response = parse(ssl_post(test? ? self.test_url : self.live_url, post_data(money, creditcard, options))) - Response.new(successful?(response), response[:message], response, + Response.new( + successful?(response), + response[:message], + response, test: test?, authorization: response[:ordernum], avs_result: { code: response[:avs].to_s[2, 1] }, - cvv_result: response[:avs].to_s[3, 1]) + cvv_result: response[:avs].to_s[3, 1] + ) end def successful?(response) response[:approved] == 'APPROVED' end