CyberSource / cybersource-rest-client-php

PHP client library for the CyberSource REST API
29 stars 65 forks source link

[Resolved]Reason code not present in the return[RESOLVED] #110

Closed D41196829 closed 2 years ago

D41196829 commented 2 years ago

Hello, this is not a issue, is more like a support request(i really tried to research but didn't find anything), im creating a payment using the method createPayment() from the paymentsApi, i need the "reason code" number in the response, but i didn't find it, i got the $response->getErrorInformation()->getReason() that gives me a text, but i need the reason code number.

The payment is created correctly, i can see it in cybersource,and i can see reason code there too, but i cant find it in the API return, did you guys know where the reason code will be in the response? thanks :)

D41196829 commented 2 years ago

For those who are looking for this information, the getTransaction() in TransactionDetailsApi do the trick and provide much more information including the reason code.