This guide helps you test and gracefully handle errors returned by the libraries to build a great user experience.
int- An error code
string- Error message. Messages can be parametrized
int- Error log id generated after error occurs.
bool- True when error is generated from library/api. False if error is generated on payment gateway
bool- True when transaction definitely failed and user was not charged