Javascript(JS)
π Rocketfuel SDK Overview
The Rocketfuel SDK simplifies the integration of age verification and payment (PayIn) features into your web and mobile applications. It provides both server-side and client-side SDKs, ensuring secure and seamless integration across environments.
Pre-Requisites
Setup your rocketfuel Account
Generate clientId, clientSecret and whitelist your domain
For ZKP
Download CryptoX app from Goole play / ios app store
OR download chrome extension
Domain Whitelisting
Domain whitelisting ensures that your SDK can only be accessed from approved domains. This helps protect your merchant account from unauthorized usage.

Steps to Whitelist a Domain
Login to your Merchant Portal
Navigate to Domain Whitelisting Go to:
Settings > Domain Whitelisting
Add Your Domain
Enter the URL of the domain where you will be using the SDK.
Supported URL formats:
http://localhost:3000 (for local development)
http://localhost:3000 (for local development)
Note: Do not include trailing slashes (
/
) in your URLs.
Save Changes Click on the Save or Add button to whitelist the domain.
Verify Once added, your domain should appear in the list of approved domains. Only requests originating from these domains will be allowed to use the SDK.
π Documentation
Server SDK (Node.js) Use the server SDK for secure operations, including order creation, token management, and backend verification. π Rocketfuel Server SDK (Node.js)
Client SDK (JavaScript) Use the client SDK to embed age verification widgets and payment buttons into your website or app. π Rocketfuel Client SDK
π Key Features
Age Verification (
AGE_VERIFICATION
): Ensure compliance by verifying user age before restricted actions.Payment Collection (
PAYIN
): Collect payments securely using BTC, ETH and other supported currencies.Cross-environment support: Sandbox and production environments for smooth testing and deployment.
Modular integration: Use via CDN, npm package, or with popular frameworks (React, Vue, Angular).
Wallets That Can Be Used for Age Verification
Our system supports two environments: Sandbox and Production.
Important: If you are using the Sandbox environment, you must connect via Testnet wallets (mobile apps or browser extensions). Production wallets will not work with Sandbox.
1. Android
Sandbox (Testnet App): Download Android Testnet App
Production (Mainnet App): Download Android Production App
2. iOS
Sandbox (Testnet App via TestFlight): Download iOS Testnet App
Production (Mainnet App - App Store): Download iOS Production App
3. Browser Wallet Chrome Extension
Extension Download (same for Sandbox & Production): Download Chrome Wallet Extension
Switching Network in Browser Wallet
Open the wallet extension in your browser.
Click on the Network dropdown (usually at the top).
Select the correct network:
Testnet β for Sandbox
Mainnet β for Production

Last updated
Was this helpful?