Errors
The errors fall into three categories, missing parameters when creating a button object in the page, mismatched types when the parameter type is not sent or passed correctly and errors associated with the Paylink Processing. The errors, reporting number and messages are listed below.
Error | Message | Description |
---|---|---|
100 | Not defined | API key is incorrect or does not exist |
101 | Amount and currency is required | Triggered when amount or currency not passed in setAmount function |
201 | Order number should be string type | Triggered when payment reference is not a string passed to setPaymentReference function |
202 | Amount should be number type | Triggered when amount is not a number passed to setAmount function |
203 | Currency should be string type | Triggered when currency is not a string passed to setAmount function |
204 | Should be boolean value | Triggered when value is not a boolean passed to setEnabled function |
301 | Failed to create paylink | Triggered if failed to initiate payment |
302 | Not defined | Triggered if failed to initiate payment according to server error |
302 | Payment cancelled | Triggered if payment cancelled on payer side |
303 | Not defined | Triggered if failed to initiate payment according to server not responding |
304 | Limit reached | Triggered if limit reached for particular account |