Prerequisites
Requirements:
- Modern web browser with ES6 support
- API token from your Payviox dashboard
- Node.js 14+ (for npm installation)
Installation methods
You can integrate the Payviox SDK using different methods depending on your project setup.- CDN
- NPM
- Download
Include the SDK directly in your HTML file using a CDN link.
index.html
Get your API token
To use the SDK, you need an API token from your Payviox dashboard.Log in to your dashboard
Navigate to https://dash.payviox.com and sign in with your credentials.
Initialize the SDK
Once installed, initialize the SDK with your API token:Verify installation
Test your installation by fetching available payment methods:test.js
If you see a list of payment methods in the console, your SDK is correctly installed and configured.
Environment configuration
Development vs Production
Use different API tokens for development and production environments:config.js
Base URL configuration
The SDK automatically uses the correct base URLs:- API endpoint:
https://api.payviox.com - Secure redirect:
https://secure.payviox.com
These URLs are managed internally by the SDK and cannot be modified in standard configurations.
Next steps
Quickstart
Create your first payment session
Redirect integration
Implement redirect mode
Iframe integration
Implement iframe mode
API reference
Explore all SDK methods