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

- old
+ new

@@ -134,14 +134,18 @@ parameters[:amount] = amount(money) parameters[:transaction_type] = self.actions[action] response = parse(ssl_post(test? ? self.test_url : self.live_url, post_data(parameters))) - Response.new(response['result'] == APPROVED, message_from(response), response, + Response.new( + response['result'] == APPROVED, + message_from(response), + response, test: @options[:test] || test?, authorization: authorization_from(response), avs_result: { code: response['avs_response'] }, - cvv_result: response['cvv2_response']) + cvv_result: response['cvv2_response'] + ) end def authorization_from(response) response['txn_id'] end