Skip to content

Testing

Test mode is enabled automatically when you use a sk_test_ or pk_test_ API key. No real on-chain transfer occurs.

In test mode, pay_address returns a deterministic ParaSta-controlled address. Sending the exact expected_amount to it triggers the success path.

In test mode, ParaSta provides amount-based triggers:

ActionHow
payment.succeededSend the exact amount to the pay_address (use the dashboard “Simulate payment” button)
payment.failedUse the special amount 1 — represents a customer-side failure
payment.expiredDon’t pay; wait until expires_at
refund.failedRefund a payment with the special memo __test_refund_fail__ in metadata

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.

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.