Prerequisites
Before installing the Tonder JS SDK, you need to configure your project to support secure payment processing. This involves adding the required third-party scripts for PCI DSS compliance and ensuring proper HTML structure for the SDK integration. The Tonder JS SDK relies on third-party scripts for PCI DSS compliance and connecting to payment processors. You must include these scripts in your HTML file for the SDK to function correctly. Add the following script tags to the<head> of your HTML file:
index.html
Installation
To install the Tonder JS SDK, you can choose between two approaches depending on your project setup: using the npm package for modern web applications or including a script tag directly in your HTML file for simpler integrations.NPM Package
NPM Package
For projects using a package manager like npm or yarn, run the following command:This is the recommended approach for modern web applications.
Script Tag
Script Tag
To use the SDK without a package manager, add the following script tag to your HTML file, preferably before the closing </body> tag.
Next Steps
Now that you’ve successfully installed the Tonder JS SDK, you’re ready to start integrating payments into your web application. Follow these guides to complete your payment integration:- Learn how to make a payment using the JS Inline SDK.
- Explore the available SDK methods for payment processing.
- Customize the SDK appearance and behavior to match your website’s design.

