This document serves as a complete guide for redirects after final statuses. we provide the ability to return users to the URL you specify in several cases.
separate URLs for:
When creating a transaction via the API, you can pass additional attributes that will be checked by us and assigned to this particular transaction. Currently, you can provide only 3 links for 3 different transaction results:
successes - only for finished transactions.
canceled - if the customer himself canceled the transaction.
filed - for failed transactions, expired transactions, or refunded transactions.
"redirects": {
"successful": "<https://guardarian.com/successful>",
"cancelled": "<https://guardarian.com/cancelled>",
"failed": "<https://guardarian.com/failed>"
}
All objects are optional and you can provide any combination of them, all at once, or none of them.
3 seconds after the transition of the transaction to one of the final statuses, the user will be redirected to the corresponding page.
Once you have dedicated pages for each transaction using Guardarian transaction ID, you can add $$ symbols to be replaced with Guardarian TX ID. Example usage:
"redirects": {
"successful": "<https://payments.guardarian.com/checkout?tid=$$>",
"cancelled": "<https://payments.guardarian.com/checkout?tid=$$>",
"failed": "<https://payments.guardarian.com/checkout?tid=$$>"
}