Testing Issuing
Learn how to test your integration and simulate purchases.
You can issue cards and simulate purchases using your own Stripe integration in test mode. This allows you to test your integration before you go live without having to make real purchases. You can only use these cards for testing within your Stripe account and not for external purchases.
Caution
When testing your authorisation endpoint, make sure that you have set the endpoint for test mode in your Issuing settings. Toggle View test data to switch between test and live mode data and settings.
Fund your test mode Issuing balance
Before you create test mode transactions, you must add test mode funds to the Issuing balance on your account. These aren’t real funds, and you can only use them for simulating purchases in test mode.
Issuing users in the US
Issuing users in the US use “pull” funding, and use Top-ups to fund their Issuing balance. You can create test mode top-ups in the Dashboard, or with the Top-ups API. Learn more about funding Issuing balances for US users.
Issuing users in the UK and euro area
To top up their balance, Issuing users in the UK and Europe “push” funds using Funding Instructions. You can do this in the test mode Dashboard, or with the Funding Instructions API. Learn more about funding Issuing balances for UK and euro area users.
You can simulate a card purchase by specifying authorisation details in the Dashboard.
Create a test purchaseDashboard
Navigate to the Issuing Cards page in test mode, find your newly-created card, then click Create test purchase.
You can select to create either an Authorisation or Transaction by force capture.
Depending on your selection, you can provide a number of properties, such as amount, business data, and so on.
Click Submit to create the purchase. If you selected authorisation and have configured your synchronous webhook, you can use it to approve or decline the authorisation. The browser redirects to the page for the newly-created authorisation.
Create a captureDashboard
To create a test capture with an authorisation in the Dashboard, enter test mode and complete the following steps:
- Navigate to the Authorisations page under Issued Cards.
- Click the authorisation you want to capture, then click Capture.
You can capture an authorisation for an amount that’s lesser, greater, or equivalent to the authorised total. You can also capture multiple times regardless of the authorisation’s current state.
Enter the amount you want to capture, then click Submit to create the capture. The browser redirects you to the Transactions page and selects the newly created transaction.