Tilopay.InitTokenize()
SDK 2.1.1Starts saving a card without a purchase. It uses the same
form fields as Init() and is closed with
Tilopay.startPayment().
Validation charge. To validate the card, Tilopay makes a USD 1 charge (or its equivalent in the currency) that is reversed immediately; the customer sees it refunded within minutes.
Store the token you receive and associate it with the customer's email to use it later.
Signature#
await Tilopay.InitTokenize({ /* parameters */ })Parameters#
SDK token, obtained with POST /api/v1/loginSdk.
Currency, ISO 4217.
Language: es or en.
Customer email.
Customer first name.
Customer last name.
Customer address line 1.
Customer address line 2.
City.
State or province.
Postal code.
Country, ISO 3166-1 alpha-2.
Customer phone.
URL where the SDK renders the final response.
Call#
const init = await Tilopay.InitTokenize({
token: "<token_del_sdk>",
currency: "USD",
language: "es",
billToEmail: "cliente@ejemplo.com",
billToFirstName: "Ana",
billToLastName: "Rojas",
redirect: "https://ejemplo.com/respuesta",
});Response#
{
"message": "Success",
"environment": "PROD",
"methods": [
{ "id": "<id_del_metodo_tarjeta>", "name": "Tarjeta", "type": "card" }
]
}On error:
{
"message": "<error description>",
"methods": []
}Last verified: 2026-10-21