Changes in error codes in the new API

Monday, 14 December 2009 09:39

The new version of our API now returns all error messages directly in the result variable, which means that you do not have to use the function strerror to connect an error code to an error message.

Instead of returning "-2, pno", we will return "2201, The personal identification number you have given was not accepted. Please check for misspellings and try again, or choose another payment method."

We hope this will make it easier to integrate our services and that the error messages will always be up to date in all stores. 

If you want to update your old error code handling to the new one, in PHP/ASP or Java we recommend you to remove the strerror references. In asp.net, you only need to update the API to a new version for it to work.