paytrack docs
Testing
Use test keys and controlled failures before connecting live payment operations.
Live test requests
The playground sends live browser requests only when you paste a copied test key. Existing raw keys cannot be recovered, and the playground does not generate fake request IDs.
Test checklist
- Create a test key and call
/account. - Revoke a test key and confirm the API returns
401. - Send a malformed key and confirm the invalid key response.
- Remove a required scope and confirm the API returns
403. - Test plan-restricted endpoints such as reports, reminders, or webhooks.
- Send a test webhook and verify your endpoint signature check.
- Review request IDs in Developer Logs after every test.
Playground usage
Example
// Paste a ptrk_test_ key only when you want to test live API behavior. // Never paste ptrk_live_ keys into browser tooling.
Live keys
Live keys should run only from backend services, serverless functions, or secure job workers.