Accepting a Bank Payment on your Website
Accepting Bank Payments on Your Website with Stax.js
Accepting a payment using a card is identical to tokenizing a card but will also take payment from the tokenized card. You can also include additional details within the call to take advantage of Level 2 processing.
Setting Up Stax.js on Your Website
Add Script Tag
Add the Stax.js script to the head of your HTML file for secure payment processing.
Get Your Token
Navigate to Apps > API Keys in Stax Pay to find your Web Payments Token (public key).
Adding the Stax.js Script
<script src="https://staxjs.staxpayments.com/staxjs-captcha.js"></script>Initializing Your Payment Instance
Before you can process payments, you need to initialize Stax.js with your credentials:
Security Note
Passing the number and CVV into the instance of Stax.js generates the secure iframe around these two fields, keeping sensitive card information from touching your servers.
Initialization Code Example
// Initialize Stax.js with your public token
var staxjs = new StaxJs("your_website_payments_token", {});Updated 11 days ago
