LIB JS
info
We have released a brand new Web SDK! Check it out here and give it try!
How does EBANX JS works?
Customer Data
The customer will inform their creditcard data through your store page. This data will be used by EBANX to generate a token.
Using LIB js, the request will be made directly from customerās browser to EBANX server. Meaning that customerās credit card information will not be stored in Merchantās server.
Request Token
A request will be made from customerās browser to EBANX server, sending the customer creditcard data to generate a token that represents the customer credit card information. The token will be returned to the customer to continue the request.
Request Payment
Once the token is received, the form with the payment details will be submitted to our API, which will create the payment.
The diagram below show the flow of the operation.
Why use LIB JS
According to PCI DSS requirements, you must restrict access and protect stored cardholder data.
Through LIB JS, the customer will inform their creditcard data and our servers will generate a token for this creditcard, so you donāt have to store any sensitive data. This token will be used for the whole request.
How to use EBANX JS
Script
Add this script to your page:
<script type="text/javascript" src="https://js.ebanx.com/ebanx-libjs-latest.min.js"></script>
Config
card.createToken
The following is an example of action to create a single use token, used to pass credit-card information to your server in a safe way.
Contact
If you have any doubts or need help, you can send and email to: EBANX Integration