1. Dashboard Setup
Before integrating the SDK, you must register your company and obtain API keys.- Sign Up: Create an account on the TapRails Dashboard.
- Verify Email: Activate your account via the link sent to your email.
- Company Profile: Complete your profile by selecting between Custodial (POOL) or Non-Custodial (Session Key) mode.
- Get API Keys: Navigate to Settings > API Keys to find your Public and Secret keys.
2. Environment Configuration
TapRails provides two environments. Use the appropriate Base URL and API keys for your stage of development.| Environment | Base URL | Public Key Prefix |
|---|---|---|
| Sandbox (Test) | https://test.taprails.com/api/v1 | pk_test_... |
| Production (Live) | https://api.taprails.com/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.

