Prerequisites
Before testing, make sure you have:- Created your first product
- Configured pricing plans during product creation
- Chosen your integration path (Managed MCP or SDK)
npx solvapay init first so your
project is connected before endpoint testing.
What is sandbox mode?
In sandbox mode:- No real charges are processed
- Stripe test mode is used for all payment flows
- You can create test customers and purchases freely
- All data is separate from production
Testing your integration
For Managed MCP
- Add your proxy URL to an MCP client Copy the proxy URL from the Managed MCP section and add it to your MCP client (e.g., Cursor, Claude Desktop).
- Complete the OAuth flow When you first use a tool, you’ll be prompted to sign in. Use your Google or GitHub account.
- Test tool access Call a protected tool and verify it succeeds. Check the Console to see the usage recorded.
- Test plan restrictions Try calling a tool that requires a paid plan. You should receive an access denied response with upgrade information.
For SDK integration
-
Run the CLI setup
From your project root, run
npx solvapay initif you have not already. - Use your sandbox API key Your sandbox API key is available in Settings > API Keys. Use this in your development environment.
- Create a test customer Use the SDK or console to create a customer for testing.
- Test paywall protection Call a protected endpoint and verify the paywall check runs correctly.
- Test the checkout flow Trigger a checkout and use Stripe test card numbers to complete the payment.
Live MCP client testing
For live authentication and paywall validation in Claude or Cursor, use Test MCP server auth and paywall.Stripe test cards
Use these card numbers for testing payments:
Use any future expiration date and any 3-digit CVC.
Testing checklist
Before or after going live, verify:- Users can authenticate (OAuth for Managed MCP, your auth for SDK)
- Free plan users can access free tools/endpoints
- Paid tools are blocked for free users
- Checkout flow completes successfully
- After payment, users gain access to paid features
- Usage is tracked correctly in the Console
- Quota limits are enforced when exceeded
Next steps
Once you’ve verified your integration works correctly:- Go live - Complete onboarding and switch to production