Additional and Optional Configurations that can be useful in different scenarios.

Redirección dinámica

This option allows you to declare dynamic redirection URLs when creating a session without the need for additional requests. To use this function, you need to add the following fields:

Nombre del campo Descripción
subscription_completed_url URL to be used for redirection upon successful subscription.
subscription_canceation_url URL to be used for redirection upon subscription cancellation.

Each of these fields is entirely optional and not linked to each other. Therefore, if you only want to modify one URL, simply add that single field to your request.

Example:

{

	//CAMPOS DEL PROCESO BASE
	"merchant_code": "your_merchant_code",
	"merchant_api_token": "your_merchant_api_token",
	"merchant_order_id": "your_order_id",
	//CAMPOS DE REDIRECCIÓN DINÁMICA
	"*subscription*_completed_url": "[<https://domain.com/etpay/success>](<https://domain.com/etpay/success>)",
	"*subscription*_cancelation_url": "[<https://domain.com/etpay/error>](<https://domain.com/etpay/error>)",

}