1. Dashboard Setup
Before integrating the SDK, you must register your company and obtain API keys. TapRails uses a strictly isolated architecture with two completely separate dashboards for Production and Sandbox testing.- Sign Up on Production: Create your account on the Live Partner Dashboard. (Note: You must register here first; Sandbox registrations are disabled to ensure your identity remains secure and synchronized.)
- Verify Email: Activate your account via the link sent to your email.
- Access the Sandbox: Once registered on Live, your credentials are automatically securely synced. You can immediately log into the Sandbox Partner Dashboard using the exact same email and password to begin testing safely.
- Company Profile: Complete your profile by selecting between Custodial (POOL) or Non-Custodial (Session Key) mode.
- Get API Keys: Navigate to Settings > API Keys in either dashboard to find your Public and Secret keys.
2. Environment Configuration
TapRails provides two completely isolated environments to ensure your live data is never mixed with test data. Use the appropriate Dashboard, API Base URL, and API keys for your stage of development.| Environment | Dashboard URL | API Base URL | Public Key Prefix |
|---|---|---|---|
| Sandbox (Test) | https://sandbox.partner.taprails.xyz | https://sandbox.api.taprails.xyz/api/v1 | pk_test_... |
| Production (Live) | https://partner.taprails.xyz | https://api.taprails.xyz/api/v1 | pk_live_... |
3. Pre-fund Your Treasury (POOL mode)
If you are using POOL (Custodial) mode, you must deposit USDC into your treasury wallet before processing payments.- Go to the Dashboard > Treasury section.
- Copy your deposit address.
- Send USDC on the Base network to this address.
- Funds typically appear in your dashboard within 60 seconds.
4. Create your first Merchant
Before you can use the SDK, you must create a merchant. This provisions a dedicated wallet for the merchant and returns amerchant_id required for SDK initialization.
Use your Secret Key (sk_...) to call the Management API:
merchant_id (e.g., mch_abc123). Keep this handy for the next step.
5. Configure Webhooks
To receive real-time updates for payment confirmations or pool events, configure your webhook endpoint in Settings > Webhooks.- Enter your server’s endpoint URL (e.g.,
https://api.yourcompany.com/webhooks/taprails). - Select the events you wish to subscribe to (e.g.,
payment.confirmed,pool.low_balance). - Save the Webhook Secret to verify incoming requests.
Next Steps
Now that your account is set up and you have amerchant_id, you are ready to integrate the SDK into your application.
React Native SDK
Install the package and start accepting payments in your React Native app.
Management API
Explore the full Management API to manage merchants and payments.

