Skip to content
402pay Support
Browse topics

Test your integration

There's no test mode, so check webhooks with test events and rehearse with a small real payment before you go live.

On this page

402pay has one mode. Every key is live and every payment is a real transfer on its network, so there are no test keys and no sandbox. You test against the live system: webhooks with test events that move no money, and payments with small real amounts you send yourself.

Check your webhooks first

Send a test event to your endpoint from its menu under Developers → Webhooks. It's signed like a real delivery and marked as a test, so your handler can verify it and then skip it. Each delivery is listed in Recent deliveries with your server's answer. See webhook deliveries.

Rehearse a payment

  1. Create a payment link with a small price, at least $1.00, or a small payment through the API. See accept your first payment.
  2. Pay it from your own wallet with a stablecoin on a network with low fees, such as Solana or Tron.
  3. Check it shows as Succeeded in Payments, and that your endpoint received payment.succeeded and answered it in Recent deliveries.
  4. Cancel any API payment you created and won't pay, so it doesn't sit pending.

The money lands in your own wallet, so a rehearsal costs only the network fee and 402pay's fee for the payment type, from 1% + 10¢, on each successful payment.

Then work through the going-live checklist before you take real orders.

Before you go live

Work through the going live checklist: restricted keys, a verified webhook, two-step verification on, and your recovery phrase backed up. Creating keys and endpoints asks you to confirm it's you if you haven't in the last 15 minutes.

Was this article helpful?