Sandbox

The CoverPay sandbox lets you test your integration without making real charges. All cp_test_ API keys automatically use the sandbox environment.

Base URLs

EnvironmentBase URLAPI Key Prefix
Sandboxhttps://sandbox.coverpayme.com/v1cp_test_...
Productionhttps://api.coverpayme.com/v1cp_live_...

Test Credentials

Use these test values in sandbox to simulate different scenarios.

Test Users

EmailScenario
user_approved@test.coverpay.comAll eligibility checks pass, all providers approve
user_underage@test.coverpay.comFails age check (UNDER_18)
user_nokyc@test.coverpay.comFails KYC check (KYC_NOT_STARTED)
user_sanctioned@test.coverpay.comFails sanctions screening (SANCTIONS_FLAGGED)
user_declined@test.coverpay.comEligible but all providers decline
user_partial@test.coverpay.comOnly Klarna and CoverPay approve

Test Amounts

Amount (cents)Scenario
Any (100–1750000)Normal flow — providers available based on their min/max
99AMOUNT_TOO_LOW — below all provider minimums
9999999AMOUNT_TOO_HIGH — exceeds all provider maximums
66600Simulated provider timeout (503 response)
66601Simulated network error

Simulated Providers

In sandbox, all 7 providers are simulated. Checkouts complete instantly without redirecting to real provider pages. The smart router still scores and ranks providers based on your configuration.

CoverPay
Klarna
Affirm
Afterpay
PayPal
Sezzle
Zip

Webhook Testing

Sandbox webhooks fire the same events as production. You can also trigger test events manually from the Dashboard or via the API.

bash
# Send a test webhook event
curl -X POST https://sandbox.coverpayme.com/v1/business/webhooks/{endpointId}/test \
  -H "Authorization: Bearer cp_test_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"eventType": "checkout.completed"}'

Going Live

When you're ready to go live, swap your API key prefix from cp_test_ to cp_live_ and update your base URL to production. No other code changes needed.

!
Launch Checklist
  • Replace test API keys with live keys
  • Configure webhook endpoints for production URLs
  • Verify signature checking is enabled on your webhook handler
  • Test the full checkout flow end-to-end
  • Ensure error handling covers all error codes