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

  1. Setup your rocketfuel Account

  2. Generate clientId, clientSecret and whitelist your domain

  3. For ZKP

    1. Download CryptoX app from Goole play / ios app store

    2. 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

  1. Login to your Merchant Portal

  2. Navigate to Domain Whitelisting Go to: Settings > Domain Whitelisting

  3. Add Your Domain

  4. Save Changes Click on the Save or Add button to whitelist the domain.

  5. 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.

Important Notes:

  • Only URLs from whitelisted domains can load the SDK.

  • Subdomains must be added explicitly if required, e.g., https://app.example.com.

πŸ“š 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.

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?