Skip to content

Sandbox & Testing

Is there a sandbox?

v1.2 does not ship a separate sandbox. Use your real account in production with small test amounts.

ItemValue
Production base URLhttps://api.coinepay.net
Sandbox base URLNone
Local devhttp://localhost:8801 (your machine only)

1. Create dedicated test credentials

Don't test with production credentials. Generate independent AppID/Secret in the dashboard for testing.

2. Receive webhooks via webhook.site

https://webhook.site provides free temporary receiver URLs that show full request headers/body.

bash
# Open webhook.site in browser, copy the unique URL, e.g.:
WEBHOOK_URL="https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

# Configure via dashboard or set_webhook endpoint

3. Walk through "list headers → list configs → apply → webhook → info"

The most complete happy path. See Quick Start.

4. Test amount tips

ItemRecommendation
Initial depositPick the cheapest package (typically $5-10)
Test rechargeUse the package's min_recharge
Multiple iterationsOpen new cards each time — closing has fees

Available card_types

card_typeDescription
virtual_lVirtual card class L
virtual_pVirtual card class P
virtual_vVirtual card class V (VISA)
virtual_rVirtual card class R
virtual_gVirtual card class G
virtual_aVirtual card class A

Account-dependent

Not every account has every card_type enabled. The header_id values returned from card_headers/list are your actual range — don't hardcode.

Credential Lifecycle

ItemValue
ValidityIndefinite (until reset / disabled)
Per-user limit1 active credential pair (v1)
After resetOld SECRET immediately invalid; AppID unchanged
After disable401 invalid_credentials; can re-enable any time

Verify a Captured Webhook

Copy the request from webhook.site, run it through the verification snippet locally, and confirm verify_ok = true.

When to Contact Support

SymptomSelf-check first
Persistent 401See Auth — handling 401
No webhook receivedVerify URL is public HTTPS, firewall, 5s response, check webhook_events/list
Card stuck in pendingIt's async; wait for webhook. Contact if > 30 min.
No recharge responseCheck webhook_events/list; query by transaction_id

Support email: [email protected]

Released under MIT-equivalent terms.