Additional and optional configurations that may be useful in different cases.
This option will allow you at the moment of creating the session declare the redirection and notification URLs without the need for requests, to use this function you must add the following fields:
payment_completed_url | URL to be taken for redirection of a successful payment. |
---|---|
payment_cancellation_url | URL to be taken for the redirection of a cancelled payment. |
payment_webhook_url | URL to be taken for the notification of payment statements. |
concat | If the path contemplates the use of parameters, it is appropriate to send that parameter to indicate the character that should be used to concatenate something to that URL. |
Each of these fields is completely optional and are not linked to each other, so if you only want to modify one URL just add that one field to the request.
Example:
{
//Basic Process Fields
"merchant_code": "your_merchant_code",
"merchant_api_token": "your_merchant_api_token",
"merchant_order_id": "your_order_id",
"order_amount": 1000,
//Dynamic Redirection Fields
"payment_completed_url": "<https://domain.com/etpay/success>",
"payment_cancellation_url": "<https://domain.com/etpay/error>",
"payment_webhook_url": "<https://domain.com/etpay/webhook>",
"concat":"&",
}