QBitFlow Documentation

    Complete guide to integrating cryptocurrency payments with QBitFlow

    Test Your Integration

    Learn how to test your QBitFlow integration safely using test networks before going live with real transactions.

    ⚡ Important: Always Test First!

    Never skip testing. Use test networks and test API keys to ensure everything works correctly before processing real funds. This guide will walk you through the complete testing process.

    Step-by-Step Testing Guide

    1. 1

      Create Test API Key

      Create a Test API Key from the QBitFlow dashboard. This ensures that all transactions use test networks and no real funds are involved.

      How to Create Test API Key:

      1. 1.Log in to your QBitFlow dashboard
      2. 2.Navigate to Settings → API Keys
      3. 4.Create a new API Key, and select "Test" mode
      4. 5.Copy and securely store the key

      Test keys only work with test networks

      Any transactions created with test API keys will automatically use test networks (testnet), ensuring no real money is spent.

    2. 2

      Set Up Test Wallets

      You need two wallets to simulate real-world transactions: one for the merchant (you) and one for the customer.

      Required Wallets:
      Merchant

      Your Wallet (Receives Payments)

      Set up a wallet on each test network you want to support. This wallet will receive test payments.

      Customer

      Test Customer Wallet (Sends Payments)

      Create a separate wallet to simulate customer behavior and test the payment flow.

      💡 Wallet Recommendation:

      For Ethereum testnets: Use MetaMask or any Web3 wallet
      For Solana testnets: Use Phantom or Solflare

    3. 3

      Fund Test Wallets with Faucets

      Use test network faucets to get free test tokens. You'll need tokens for each currency you want to support.

      Ethereum Test Networks

      Sepolia Testnet (Recommended)

      Solana Test Networks

      Devnet

      Test tokens

      Get test USDC on Circle (Sepolia or Solana Devnet)

      🌐 More Networks Coming Soon

      QBitFlow is constantly adding support for more blockchain networks. Check the dashboard for the latest supported test networks.

    4. 4

      Configure Test Merchant Wallets

      Add your merchant test wallets to the QBitFlow dashboard so you can receive test payments.

      Steps:

      1. 1.Go to QBitFlow dashboard → Wallets
      2. 2.Toggle to "Test Mode" environment
      3. 4.For each currency you want to support, add a wallet:
      4. Select the test network (e.g., Ethereum Sepolia)
      5. Enter your wallet's public address
      6. Click "Add Wallet"

      Easy Currency Support

      Supporting a new currency is simple: just add a wallet for that currency in the dashboard. For native currencies, add the wallet directly. For tokens, wallets are automatically handled from your main wallet and initialized if needed.

    5. 5

      Simulate Transactions

      Test all transaction types using your test API key and test wallets.

      Test Scenarios:

      One-Time Payments

      Create a payment session and complete the payment flow with your test customer wallet.

      Create Subscription

      Set up a recurring subscription and verify the allowance approval process.

      Subscription Billing

      Test automatic billing cycles and status changes.

      Cancel Subscription

      Verify that cancellations work correctly and are free for users.

      PAYG Subscriptions

      Test pay-as-you-go billing with usage tracking.

      Increase Allowance

      Test the flow when customers need to increase their subscription allowance.

      Update Max Amount

      Test max amount updates when crypto prices fluctuate.

    6. 6

      Test Webhooks & URLs

      Verify that your webhook endpoints and success URLs are working correctly.

      Testing Webhooks Locally:

      • Use ngrok or similar tools to expose your local server: ngrok http 3000
      • Use the ngrok URL as your webhook endpoint
      • Monitor webhook requests in real-time

    Going Live: Production Checklist

    Ready for Production

    Once you've thoroughly tested your integration, follow these steps to go live with real transactions.

  1. 1
    Set Up Real Wallets
  2. Create production wallets for each currency you want to support. These will receive real payments.

    ⚠️ Security First:

    • Use hardware wallets or secure multi-sig setups
    • Never share private keys or seed phrases
    • Enable all available security features
    • Backup your wallet securely
  3. 2
    Add Production Wallets to Dashboard
  4. Add your production wallet addresses to the QBitFlow dashboard in Live mode.

    Steps:

    1. 1.Switch dashboard to "Live Mode"
    2. 2.Navigate to Settings → Wallets
    3. 3.Add wallet for each supported currency

    One Wallet Per Currency

    You only need one wallet per native currency. Token wallets are automatically handled and initialized from your main wallet when needed.

  5. 3
    Generate Live API Key
  6. Create a production API key and update your integration to use it.

    Steps:

    1. 1.Go to Settings → API Keys in Live Mode
    2. 2.Click "Generate New Live API Key"
    3. 3.Copy the key and store it securely
    4. 4.Update your environment variables with the live key
    5. 5.Deploy your application with the new key

    Never Commit API Keys

    Always use environment variables for API keys. Never commit them to version control or expose them in client-side code.

  7. 4
    Verify Production Webhooks
  8. Ensure your production webhook endpoints are accessible and working correctly.

    Checklist:

    • Webhook URL is publicly accessible (HTTPS)
    • Signature verification is implemented
    • Error handling is in place
    • Webhook logs are being monitored
  9. 5
    Start Processing Real Transactions
  10. You're now ready to accept real cryptocurrency payments!

    🎉 You're Live!

    Your integration is now processing real transactions. Monitor your dashboard and logs closely during the first few transactions.

    • Monitor the first few transactions closely
    • Verify funds are being received correctly
    • Check webhook notifications are working
    • Keep test mode available for debugging

    💡 Pro Tip: Keep your test environment active even after going live. Use it for testing new features, debugging issues, and training new team members without risking real funds.

    Adding New Currencies

    Supporting additional currencies is simple and requires no code changes:

    1. 1.Create a wallet for the new currency you want to support
    2. 2.Copy the wallet's public address
    3. 3.Go to QBitFlow dashboard → Wallets (in Test or Live mode)
    4. 4.Add the new wallet for the desired currency
    5. 5.Users can now pay in this new currency!

    ✨ That's It!

    For native currencies, add the wallet directly. For tokens, they're automatically handled from your main wallet and initialized when needed. No code changes required!