Test mode

With test keys you can run the whole online-payments flow without moving money: make a payment, pay it with a test number for the outcome you want, then refund it, dispute it or pay it out. Your test webhook endpoints get every event, marked "livemode": false. Testing guide

Test numbers

Type one of these on the test payment page (or send it to the API). Any future expiry date and any 3-digit security code work with test cards. Real payment details are refused in test mode.

Loading…

Make a test payment

Opens a test payment page with your test publishable key. Pick an outcome there, or type a number from the list.

Trigger an event

Moves a test payment on, as the payer, the payments team or a payout would, and sends the webhook.

From your code

Your tests can send the same events with a test token. Live keys get 403 test_only.

curl -X POST /api/bridgepay/v1/partner/test/trigger \  -H "Authorization: Bearer $TEST_TOKEN" -H "Content-Type: application/json" \  -d '{"event": "dispute.opened", "payment": "cs_..."}'