SDK · Tilopay.startPayment()
SDK v2Closes the purchase started with Tilopay.Init().
Signature#
await Tilopay.startPayment()It takes no parameters.
3DS: the SDK handles it#
The SDK handles the whole 3D Secure flow. All you have to do is make sure the
responseTilopay container is on the page: that is where the SDK inserts what 3DS needs and
drives the process.
<div id="responseTilopay"></div>See form fields.
Where the result arrives#
When it finishes, the SDK renders the response on the URL given in the redirect parameter of
Init(). That is the final purchase response: treat the redirect URL as the point where
your application decides the outcome.
On error, the method returns the description:
{
"message": "error description"
}Last verified: 2026-08-28 · Owner: equipo-integraciones