Getting started with JavaScript Library

  Before proceeding, please ensure you have met all requirements
Click here to open this information in a new tab

 

Our JavaScript Library is used to process e-commerce payments from your website, providing a seamless and secure checkout experience for your customers. This solution offers full support for Secure Customer Authentication (SCA) (required by PSD2 mandate). It can be integrated with single or multi-page applications that have been tested with AngularJS, React, Vue.js, React Native.

Please follow the steps below to configure your e-commerce solution to accept payments using our JavaScript Library:

 

             

 

1. Configure the payment form and initialise the Library

CP68-EN.png

You will need to update your server-side payment form to include our “st.js” JavaScript Library. The JavaScript Library will process requests and handle the responses returned. When the customer enters their payment details into your form and submits, our st.js will contact the card issuer to determine if the card is enrolled. If the card issuer determines that there is an elevated risk of fraud, an overlay will automatically be displayed to the customer where they will be prompted for authentication.

 

             

 

2. Construct the JSON Web Token

CP70-EN.png

JSON Web Tokens are an open, industry standard RFC 7519 method for securely transmitting data between two parties.

 

             

 

3. Configure webhooks

CJ26-EN.png

We recommend you configure webhooks to ensure you are notified of transactions processed on your account.

 

             

 

4. Process your first transaction

CJ27-EN.png

Once you have updated your payment form and configured the library, you can process a test card payment through our sandbox.

CP72-EN.png

  Once you have completed the steps above, we recommend returning to the Getting started page to learn more about enabling add-ons, testing your solution and going live.

Click here to open the Getting started page.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request