Testing
Test mode is enabled automatically when you use a sk_test_ or pk_test_ API key. No real on-chain transfer occurs.
Test addresses
Section titled “Test addresses”In test mode, pay_address returns a deterministic ParaSta-controlled address. Sending the exact expected_amount to it triggers the success path.
Simulating outcomes
Section titled “Simulating outcomes”In test mode, ParaSta provides amount-based triggers:
| Action | How |
|---|---|
payment.succeeded | Send the exact amount to the pay_address (use the dashboard “Simulate payment” button) |
payment.failed | Use the special amount 1 — represents a customer-side failure |
payment.expired | Don’t pay; wait until expires_at |
refund.failed | Refund a payment with the special memo __test_refund_fail__ in metadata |
Webhook test events
Section titled “Webhook test events”Send arbitrary test events from the dashboard: Developers → Webhooks → Send test event. This calls your endpoint with a synthetic payload and lets you verify signature handling.
Idempotency in test mode
Section titled “Idempotency in test mode”Test mode honors the Idempotency-Key header for 24 hours, just like live mode. Use unique keys per test run if you want fresh objects.