Skip to content
Create account
or
Sign in
The Stripe Docs logo
/
Ask AI
Create account
Sign in
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Developer tools
Get started
Payments
Finance automation
Get started
Payments
Finance automation
Platforms and marketplaces
Money management
Overview
Start an integration
Products
Global Payouts
Capital
Issuing cards
    Overview
    How Issuing works
    Global availability
    Manage fraud
    Cards
    Choose your card type
    Virtual cards
    Issue virtual cards
    Physical cards
    Manage cards
    Digital wallets
    Replacement cards
    Card programs
    Program management
    Customize your card program
    Add funds to your card program
    Credit Consumer Issuing
    Controls
    Spending controls
    Advanced fraud tools
    3DS
    Fraud challenges
    Real-time authorizations
    PIN management
    Issuing Elements
    Token Management
    Funding
    Balance
    Postfund your integration with Stripe
    Postfund your integration with Dynamic Reserves
    Purchases
    Authorizations
    Transactions
    Disputes
    Testing
    Merchant categories
    ATM Usage
    Issuing with Connect
    Set up an Issuing and Connect integration
    Update terms of service acceptance
    Connect funding
    Connected accounts, cardholders, and cards
    Embed card management UI
    Credit
    Overview
    Set up connected accounts
    Manage credit terms
    Report other credit decisions and manage AANs
    Report required regulatory data for credit decisions
    Manage account obligations
    Test credit integration
    Additional information
    Choose a cardholder type
    Customer support for Issuing and Treasury
    Issuing watchlist
    Marketing guidance (Europe/UK)
    Product and marketing compliance guidance (US)
Treasury
Manage money
HomeMoney managementIssuing cards

Testing Issuing

Learn how to test your integration and simulate purchases.

Copy page

Testing payments

Learn more about testing your Stripe integration.

You can issue cards and simulate purchases using your own Stripe integration in a sandbox environment. 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 authorization endpoint, make sure that you have set the test endpoint in your Issuing settings. You can view test data by switching into your sandbox environment.

Fund your test Issuing balance

Before you create test transactions, you must add test funds to the Issuing balance on your account. These aren’t real funds, and you can only use them for simulating test purchases.

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 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 your sandbox environment, which you access from the 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 authorization details in the Dashboard.

Create a card
Dashboard

Use the API or the Dashboard to create a test cardholder and card. Visit Create virtual cards or Create physical cards for Dashboard-specific instructions.

Create a test purchase
Dashboard

Navigate to the Issuing Cards page in your sandbox environment, find your newly-created card, then click Create test purchase.

Issuing card details menu with 'Create test purchase' option

You can select to create either an Authorization or Transaction by force capture.

Create test purchase sidebar form

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 authorization and have configured your synchronous webhook, you can use it to approve or decline the authorization. The browser redirects to the page for the newly-created authorization.

Create a capture
Dashboard

To create a test capture with an authorization in the Dashboard, switch to your sandbox environment and complete the following steps:

  1. Navigate to the Authorizations page under Issued Cards.
  2. Click the authorization you want to capture, then click Capture.
    Issuing authorization details

You can capture an authorization for an amount that’s lesser, greater, or equivalent to the authorized total. You can also capture multiple times regardless of the authorization’s current state.

Capture Issuing authorization form

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.

Was this page helpful?
YesNo
Need help? Contact Support.
Join our early access program.
Check out our changelog.
Questions? Contact Sales.
LLM? Read llms.txt.
Powered by Markdoc