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

Test your integrationPrivate preview

Validate your automated platform funding in testing environments.

Copy page

You can test your credit integration in a sandbox environment using the Credit API and following the same steps as live mode:

  1. Create a connected account.
  2. Request the card_issuing_charge_card capability.
  3. Manage the connected account’s credit terms through its CreditUnderwritingRecord and CreditPolicy.
  4. Pay off the connected account’s FundingObligation.

Test the Credit APIs on connected accounts

As you test the Credit APIs on connected accounts, consider the following:

  • Minute interval support: In testing environments, you can set the credit_period_interval of the platform or connected account CreditPolicy to minute to generate a new FundingObligation as often as once every minute and streamline your testing cycle.
  • Simulate Issuing transactions: Use the Dashboard or Issuing API in testing environments to simulate issuing spend and disputes. The applicable FundingObligation updates asynchronously in a few seconds to reflect the activity, allowing you to test the webhook event and your handling of it.
  • Deactivate after testing: Stripe continues to generate new FundingObligations for as long as the CreditPolicy status for an account remains active, so deactivate the account’s CreditPolicy when you complete your testing.
  • Test retention: Stripe deletes prior test FundingObligations after 7 days.
  • When you report credit underwriting decisions on test connect accounts, account notices will be created. If you let Stripe send regulated emails on your behalf, an email will be sent to the test connected account. If you send regulated emails yourself, then you can listen to the account_notice.created webhook to know when to send a new notice. Credit underwriting decisions made in testing environments on real connected accounts will not generate any notices.

Test post-funding your platform

You can also simulate your platform’s daily payment of your FundingObligation using the following test capabilities (not applicable in live mode):

  • Update Stripe-controlled fields: Update the status and credit_period_interval_count fields of your platform’s CreditPolicy to simulate updates that are normally set by Stripe.
  • Deactivate your CreditPolicy: Set your CreditPolicy’s status to inactive to stop generating new FundingObligations on your platform’s test account.
  • Test Post-Funding: Use the /v1/test_helpers/issuing/fund_balance endpoint or add funds using the Dashboard in testing environments to simulate a FundingObligation payment.
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