Test your integrationPrivate preview
Validate your automated platform funding in testing environments.
You can test your credit integration in a sandbox environment using the Credit API and following the same steps as live mode:
- Create a connected account.
- Request the
card_capability.issuing_ charge_ card - Manage the connected account’s credit terms through its
CreditUnderwritingRecordandCreditPolicy. - 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_of the platform or connected accountperiod_ interval CreditPolicytominuteto generate a newFundingObligationas 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
FundingObligationupdates 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
FundingObligationsfor as long as theCreditPolicystatus for an account remains active, so deactivate the account’sCreditPolicywhen you complete your testing. - Test retention: Stripe deletes prior test
FundingObligationsafter 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_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.notice. created
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
statusandcredit_fields of your platform’speriod_ interval_ count CreditPolicyto simulate updates that are normally set by Stripe. - Deactivate your CreditPolicy: Set your
CreditPolicy’sstatustoinactiveto stop generating newFundingObligationson your platform’s test account. - Test Post-Funding: Use the
/v1/test_endpoint or add funds using the Dashboard in testing environments to simulate ahelpers/issuing/fund_ balance FundingObligationpayment.