Create a Pay callback URL
When creating a webpage for callbacks, note that Queye will append ?tr_id=ABCD12345678 to the end of the URL. Make sure the URL does not have any parameters in it.
On your callback page, you may check if the payment was successful by sending a request to https://api.queye.co/pay/status/?trid=TRANSACTION_ID&vendor=VENDOR_KEY. The response will be in JSON format and will look something like this;
{
"ABCD12345678": {
"status": "successful",
"product": "Chocolate",
"vendor": "Company",
"amount": 12.95,
"currency": "USD",
"datetime": "2024-08-01 11:26:35"
}
}
Check that the status is either successful or failed and act accordingly.
Error codes
Not Authorized
The vendor key is incorrect and is invalid. Double-check your vendor key.
Invalid parameters
One or both parameters are missing.
Transaction not found or vendor mismatch
The transaction ID either doesn't exist at all or is not assigned to that vendor key. Double-check the transaction ID and the vendor key.