CyberSource / cybersource-rest-client-ruby

Ruby client library for the CyberSource REST API
Other
6 stars 36 forks source link

ProcessPayment with 80 USD #32

Closed sokmesakhiev closed 4 years ago

sokmesakhiev commented 4 years ago

I tried to create payment with amount 80 USD with option capture false and got a response as below {:code=>500, :response_headers=>{"Content-Type"=>"application/json", "Content-Length"=>"228", "X-Cnection"=>"close", "x-response-time"=>"424ms", "Strict-Transport-Secu rity"=>"max-age=31536000", "v-c-correlation-id"=>"2ec7171a-2d40-4d75-85cc-738081ce282c"}, :response_body=>"{\"id\":\"5737252152476664403002\",\"submitTimeUtc\":\"2019- 11-14T09:53:35Z\",\"status\":\"500\",\"errorInformation\":{\"reason\":\"SYSTEM_ERROR\",\"message\":\"Request failed due to system error.\",\"details\":[{\"field\":\"re asonCode\",\"reason\":\"120\"}]}}"}

But if i create payment with amount 80 USD with option capture true, the amount in transactions dashboard turned to 64 USD

Screen Shot 2019-11-14 at 4 57 29 PM

I am not pretty sure if there is something wrong with number 80 ?