Test and Live Mode

Get to know your environment

The Pinch platform offers an advanced testing platform, custom built into our production systems. As a developer, this means you get bespoke behaviour for the test environment, and no dodgy sandbox environment with separate logins.

API Base URLs

  • Test: https://api.getpinch.com.au/test/
  • Live: https://api.getpinch.com.au/live/

Credentials

Your Merchant ID and Secret Key (or Application ID and Secret) from the Pinch Developer Portal work in both environments; the base URL is what determines test vs live. No separate sandbox account is needed.

Test Mode

Test Mode allows you to perform every single action that you can in production, without actually going to the bank. Better yet, we've implemented Time Travel to let you pretend it's whatever time/date you want. Very useful for instantly testing what would normally take a week in real-time.

Time Travel

Direct debit payments are processed overnight and take several business days to clear, which makes manual testing slow. Time Travel lets you simulate the passage of time by adding a Time-Travel header to any test request:

Time-Travel: 2026-08-01T09:45:59Z

This tells Pinch to treat the request as if it arrived at that date and time, triggering any scheduled payments or settlement logic that would normally run overnight.

The best way to explore Time Travel is to use the Dev Portal and watch what headers it sends back and forth.

Testing a direct debit end-to-end

  1. Create a payer with a test bank account (see below)
  2. Schedule a payment for today's date
  3. Add a Time-Travel header set to a time after the scheduled processing window (e.g. the next morning)
  4. The payment will be processed and a bank-results event will fire with the result
  5. Advance the date further to trigger settlement and a transfer event

Valid Test Cards

These card numbers can be used with the Sandbox environment with any expiry date in the future and any CVC value.

Card NumberCard TypeCountry
4242424242424242VisaAustralia
4000000360000006VisaAustralia
4012888888881881VisaAustralia
378282246310005AMEXAustralia
4111111111111111VisaNew Zealand
5105105105105100MastercardNew Zealand
4000005540000008MastercardNew Zealand
371449635398431AMEXNew Zealand
4000056655665556VisaUSA
5200828282828210MastercardUSA
5555555555554444MastercardUSA

Valid Test Bank Accounts

Use any of the following Australian bank account details when tokenising a bank account source in test mode. These will be accepted by the test environment without going to a real bank.

BSBAccount NumberDescription
000-0000000000000Generic test bank account
000-0011234567890Alternate test bank account

Any BSB / account number combination will be accepted in test mode; the values above are provided for convenience. Use realistic-looking values (6-digit BSB, 5–9 digit account number) to test your UI validation.

Triggering Dishonour Codes in Tests

To test specific failure scenarios, add a dishonour code (prefixed with #) anywhere in the payment description field, or in the payer's firstName:

description: "Monthly membership #insufficient-funds"

This will cause the payment to fail with that specific dishonour code. See Dishonour Codes for all available codes.

Live Mode

When you're ready to switch to production, swap your test API base URL for the live one:

https://api.getpinch.com.au/live/

Your credentials remain the same; just update the base URL. Real payments will be processed against real bank accounts and cards.

📘

Double-check that Time-Travel headers are not being sent in production requests. They will be ignored in live mode, but it is good practice to remove them entirely before go-live.


Did this page help you?