lib/active_merchant/billing/gateways/swipe_checkout.rb in activemerchant-1.133.0 vs lib/active_merchant/billing/gateways/swipe_checkout.rb in activemerchant-1.137.0
- old
+ new
@@ -102,15 +102,17 @@
if code == 200
result = response['data']['result']
success = (result == 'accepted' || (test? && result == 'test-accepted'))
- Response.new(success,
+ Response.new(
+ success,
success ?
TRANSACTION_APPROVED_MSG :
TRANSACTION_DECLINED_MSG,
response,
- test: test?)
+ test: test?
+ )
else
build_error_response(message, response)
end
rescue ResponseError => e
build_error_response("ssl_post() with url #{url} raised ResponseError: #{e}")