Additional and optional configurations that may be useful in different cases.
This option will allow you to declare the redirection and notification URLs at the time of creating the session without the need for requests, to use this function you must add the following fields:
payment_completed_url | URL to be used 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":"&",
}
This option will allow you at create session to declare the user_bank_code field. The value of this field configures the session to be initialized with the bank already selected.
The values that user_bank_code can take are the following:
Code | Bank |
---|---|
cl_estado | To initialize with Banco Estado |
cl_santander | To initialize with Banco Santander |
cl_bch | To initialize with Banco de Chile/Edwards |
cl_bci | To initialize with BCI |
cl_itau | To initialize with Banco Itaú |
cl_scotiabank | To initialize with Banco Scotiabank |
cl_falabella | To initialize with Banco Falabella |
cl_test | To initialize with the banco de pruebas (only on sandbox) |
cl_itau_bt | To initialize with Banco Itaú Empresa |
cl_bch_bt | To initialize with Banco de Chile/Edwards Empresa |
cl_santander_bt | To initialize with Banco Santander Empresa |
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,
//PRE-SELECTED BANK FIELDS
"**user_bank_code**": "cl_estado"
}
<aside> ⚠️ This is only available for the People Payment flow.
</aside>
This option will allow you to declare the user_rut and is_rut_block fields when creating the session. The value of this field configures the session so that it is initialized with the already selected rut.
code | bank |
---|---|
user_rut | Payer's RUT unformatted |
is_rut_block | Use true or false to lock the payer's RUT and not allow it to be modified during payment |
EXAMPLE: