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/
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.
The best way to try out Time Travel is to use the Dev Portal and take a peek at what it's sending back and forth. You'll see the following header:
Time-Travel: 2018-06-01T09:45:59Z
Which means treat this request as though it arrived at this time.
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 Number | Card Type | Country |
---|---|---|
4242424242424242 | Visa | Australia |
4000000360000006 | Visa | Australia |
4012888888881881 | Visa | Australia |
378282246310005 | AMEX | Australia |
4111111111111111 | Visa | New Zealand |
5105105105105100 | Mastercard | New Zealand |
4000005540000008 | Mastercard | New Zealand |
371449635398431 | AMEX | New Zealand |
4000056655665556 | Visa | USA |
5200828282828210 | Mastercard | USA |
5555555555554444 | Mastercard | USA |
Live Mode
When you're ready to switch to production, just swap out your test keys for your live ones and be sure to start hitting /live.
Updated 8 months ago