Integrating the authentication script
Warning
We do not offer support for the development and implementation of this SDK.
The 3DS 2.2 authentication protocol is available in a browser-based version, meaning the merchant must include the 3DS script in the checkout page HTML file. The 3DS protocol, when processing the script, allows data exchange between the merchant and the issuer to authenticate the cardholder.
Integrating the authentication protocol script consists of the following steps:
- Getting the credentials: get the
ClientId
andClientSecret
credentials in Cielo website, and use them to create theaccess_token
in the next step. - Creating the access token: the access token must be inserted into the script (JavaScript) and in the HTML in the
bpmpi_accesstoken
class. See the class mapping tables for more information. - Class mapping: here you should prepare your environment to collect the shopper’s data and execute the script in the shopper’s browser.
- Implementing the script: insert the classes in the HTML (body tag) and reference the JavaScript file with the mapped classes.
- Implementing the authentication event call: using the data returned in the authentication result, send the transaction for authorization.
Updated 25 days ago