GETTRX.js Overview
GETTRX.js is a JavaScript library that allows you to collect and tokenize sensitive payment details like credit card, Apple Pay, Google Pay, and US bank account information, and customer information using pre-built, customizable, and secure web elements.
Our SDK currently features 2 types of pre-built Web Elements that you can use in your checkout flows:
- Payment Web Element
- Express Checkout Web Element
Payment Web Element
This element renders a secure, embeddable UI component that allows you to collect payment methods and tokenize them without the actual card and bank account data ever going through your servers. This helps you keep your servers outside of PCI compliance scope.
The element will render as shown below:

Note: In the picture above, Apple Pay and Google Pay are not being shown. When the SDK is configured for apple pay/google pay, and the wallets are available, they will be rendered as additional tabs.
This web element currently supports 4 payment methods types:
- Cards
- US Bank Accounts
- Apple Pay Wallet
- Google Pay Wallet
Express Checkout Web Element
This element renders one-click payment buttons that streamline your customer's checkout flow by allowing your customer to pay with their existing payment wallets (e.g. Apple Pay and Google Pay). This web element can automatically collect your customers' related checkout information (e.g. email, billing address, shipping address, and phone number) directly from their wallets, which you can then pass to your servers allowing you to provide a one-click checkout experience.
The web element will render as shown below:

This web element currently supports the following Wallets:
- Apple Pay (on Mac & Windows)
- Google Pay
Get Started with GETTRX.js
Getting started with our SDK is very simple:
- Add our SDK into your site and initialize it with your public key
- Create a WebElement Group and apply your basic configurations
- Configure and initialize your desired Web Elements (Payment Web Element and/or Checkout Web Element) and mount them on the desired locations in you UI
- Start Tokenizing payment methods
Updated 3 months ago