Pruebas de Stripe Connect
Antes de pasar a modo activo, prueba tu integración con Connect para la creación de cuentas, verificación de identidad y transferencias.
Use testing to make sure your Connect integration handles different flows correctly. You can use Sandboxes to simulate live mode while taking advantage of Stripe-provided special tokens to use in your tests. See the payments testing guide for more information on testing charges, disputes, and so on.
Testing capabilities
Sandboxes and test mode might not enforce some capabilities. In certain cases, they can allow an account to perform capability-dependent actions even when the associated capability’s status isn’t active.
Crea cuentas de prueba
You can create multiple test accounts with different account types or controller properties that you want to test.
You can create test accounts using the Accounts API or in the Stripe Dashboard.
Use 000-000 as the SMS code when prompted for test accounts.
Test the OAuth flow
You can test your OAuth integration with connected accounts that use a Stripe-hosted Dashboard using your test client_.
Your test client_ is ca_. You can find this in your Connect OAuth settings.
Your test client_ allows you to:
- Definir tu
redirect_en una URL que no es HTTPSuri - Definiri tu
redirect_en localhosturi - Force-skip the account form instead of having to fill out an entire account application (Stripe Dashboard accounts only)
- Obtén tokens de acceso de prueba para cuentas conectadas
To test the OAuth flow, create a new account after clicking the OAuth link. You can also test connecting an existing Stripe account only if the email is different from your platform account.
Identity verification
After creating a test connected account, you can use tokens to test different verification statuses to make sure you’re handling different requirements and account states. You can use the following tokens to test verification with test accounts.
Prueba de fechas de nacimiento
Usa estas fechas de nacimiento para activar ciertas condiciones de verificación.
| Fecha de nacimiento | Tipo |
|---|---|
1901-01-01 | Successful date of birth match. Any other DOB results in a no-match. |
1902-01-01 | Successful, immediate date of birth match. The verification result is returned directly in the response, not as part of a webhook event. |
1900-01-01 | This DOB triggers an Office of Foreign Assets Control (OFAC) alert. |
Prueba de direcciones
Usa esta direcciones para line1 para activar las condiciones de ciertas verificaciones. Debes especificar valores legítimos para los argumentos city, state y postal_.
| Token | Tipo |
|---|---|
address_ | Successful address match. |
address_ | Unsuccessful address match likely to trigger requirements in currently_. |
address_ | Unsuccessful address match likely to trigger requirements in currently_ |
Prueba de números de ID personales
Use these personal ID numbers for the individual.id_number attribute on the Account or the id_number attribute on the Person object to trigger certain verification conditions.
| Número | Tipo |
|---|---|
000000000 | Successful ID number match. 0000 also works for SSN last 4 verification. |
111111111 | Unsuccessful ID number match (identity mismatch) likely to trigger requirements in currently_. |
222222222 | Successful, immediate ID number match. The verification result is returned directly in the response, not as part of a webhook event. |
Test government-issued ID documents
For testing, use test images or file tokens instead of uploading your own test IDs. For details, refer to Uploading a file.
Prueba de imágenes de documentos
You can use a verified image that causes the ID number to match successfully. You can use an unverified image that causes a mismatch on the ID number, leading to currently_ requirements.
Nota
Test images take precedence over test ID numbers. If you upload a verified image, the ID number matching succeeds, even if you also provide an unsuccessful test ID value. Similarly, an unverified image automatically fails ID matching regardless of the value of other test artifacts.
Prueba de tokens de archivo
Usa estos tokens de archivo para activar ciertas condiciones de verificación de identidad.
| Token | Tipo |
|---|---|
file_ | Utiliza la imagen verificada y marca ese requisito de documento como cumplido. |
file_ | Utiliza la imagen no verificada y marca ese requisito de documento como no cumplido. |
Business information verification
Validación de la dirección comercial
En algunos países, la dirección comercial asociada con tu cuenta conectada debe validarse antes de que se habiliten los cargos, las transferencias o ambos en la cuenta conectada.
Prueba de direcciones comerciales
Usa esta direcciones para line1 para activar las condiciones de ciertas verificaciones. Debes especificar valores legítimos para los argumentos city, state y postal_.
Make sure you start with an address token that has the least permissive validation condition you want to test for. This is because you can’t use an address token that has a more restrictive validation condition than the previous token used. For example, if you provided address_ to have both charges and payouts enabled, you can’t disable payouts or charges afterward by changing the token to an invalid one. You can work around this by creating a new account with the relevant token.
| Token | Tipo |
|---|---|
address_ | Los cargos y las transferencias están habilitados en la cuenta. |
address_ | Only charges are enabled on the account. Since validation failed on the line1 attribute, it becomes listed again in the requirements hash. |
address_ | Neither charges nor payouts are enabled on the account. Since validation failed, the address attributes become listed again in the requirements hash. |
Prueba de las ID fiscales de la empresa
Use these business tax ID numbers for company.tax_id to trigger certain verification conditions. The test behavior might change depending on the Connected Account countries and the regulations in those countries. Depending on the country’s regulation, a valid tax document can mark tax ID verified in these countries.
| Número | Tipo |
|---|---|
000000000 | Successful business ID number match. |
000000001 | Successful business ID number match as a non-profit. |
111111111 | Unsuccessful business ID number match (identity mismatch). |
111111112 | Unsuccessful business ID number match (tax ID not issued). |
222222222 | Successful, immediate business ID number match. The verification result is returned directly in the response, not as part of a webhook event. |
Test directorship verification
Stripe performs directorship verification by comparing the list of directors on the Account object against a list retrieved from local registries. If the country requires it, you can trigger verification for an Account object by using these tokens for the first_name attribute on the associated Person and setting the relationship.director attribute on the Person to true.
| Token | Tipo |
|---|---|
mismatch_ | Unsuccessful match due to a mismatched name. This can trigger a verification_ verification error. |
missing_ | Unsuccessful match due to directors missing on the account. This can trigger a verification_ verification error. |
extraneous_ | Unsuccessful match due to too many directors on the account. This can trigger a verification_ verification error. |
The verification errors can trigger if multiple directors on the Account object use these magic tokens.
Test company name verification
Trigger company name verification for an Account object by using this token for the company.name attribute.
| Token | Tipo |
|---|---|
mismatch_ | Unsuccessful match due to a mismatched business name. |
disallowed_ | Unsuccessful match due to a generic or well-known business name. |
match_ | Successful match of the business name. |
match_ | Unsuccessful match due to a business name discrepancy. |
Test statement descriptor verification
Trigger statement descriptor verification for an Account object by using this token for the settings.payments.statement_descriptor attribute.
| Token | Tipo |
|---|---|
mismatch | Trigger an invalid_ verification error. |
disallowed | Trigger an invalid_ verification error. |
Trigger statement descriptor prefix verification for an Account object by using this token for the settings.card_payments.statement_descriptor_prefix attribute.
| Token | Tipo |
|---|---|
mismatch | Trigger an invalid_ verification error. |
disallowed | Trigger an invalid_ verification error. |
Test business URL verification
Trigger URL verification for an Account object by using this token for the business_profile.url attribute.
| Token | Tipo |
|---|---|
https://disallowed. | Trigger an invalid_ verification error. |
https://geoblocked. | Trigger an invalid_ verification error. |
https://problem. | Trigger an invalid_ verification error. |
https://missing. | Trigger an invalid_ verification error. |
https://mismatch. | Trigger an invalid_ verification error. |
https://passwordprotected. | Trigger an invalid_ verification error. |
https://accessible. | Trigger a successful validation of the URL. |
https://underconstruction. | Trigger an invalid_ verification error. |
https://inaccessible. | Trigger an invalid_ verification error. |
Test capability disabled reasons
Trigger assignment of a specific requirements.disabled_reason to all of an Account object’s inactive Capability objects by using this token for the account’s business_profile.url attribute.
| Token | Tipo |
|---|---|
https://inactivity. | Set an account as inactive and pause all verifications for it. Set the disabled reason for any inactive capabilities to paused. (rejected. for API versions prior to 2024-06-20). |
Test Doing Business As (DBA) verification
Trigger DBA verification for an Account object by using this token for the business_profile.name attribute.
| Token | Tipo |
|---|---|
disallowed_ | Trigger an invalid_ verification error. |
invalid_ | Trigger an invalid_ verification error. |
Test product description verification
Trigger product description verification for an Account object by using this token for the business_profile.product_description attribute.
| Token | Tipo |
|---|---|
require_ | Trigger an invalid_ verification error. |
Test phone number validation
Clear phone number validation for an Account object by using this token for the following attributes:
Clear phone number validation for a Person object by using this token for the phone attribute.
| Token | Tipo |
|---|---|
0000000000 | Successful validation |
Trigger or advance verification
Activar tarjetas
Use these card numbers to trigger various conditions when you’re testing both requirements and tiered verification. For the trigger actions to work, you must use these cards with a Connect charge by setting on_behalf_of or creating a direct charge on the connected account. The connected account must have an eventually_due requirement.
| Número | Token | Tipo |
|---|---|---|
| 4000000000004202 | tok_ | Cambia el siguiente grupo de requisitos de eventualmente vencidos a actualmente vencidos. |
| 4000000000004210 | tok_ | Activa un bloque de cargos. |
| 4000000000004236 | tok_ | Activa un bloqueo de transferencias. |
Trigger next requirements
El modo activo puede exigir información de verificación adicional cuando una cuenta conectada procesa un determinado volumen. Esta tarjeta establece la información de verificación adicional que se debe solicitar de inmediato. Si no se requiere información adicional, no aparece nada.
Trigger a charge or payout block
If required information isn’t provided by the deadline, Stripe disables the connected account’s charges or payouts. These cards disable the connected account and move any currently due requirements to overdue. These cards have no effect until an account provides the initial information that’s required to enable charges and payouts.
Trigger bank account ownership verification
Connected accounts in the United States and India are subject to Bank account ownership verification. You can complete this verification by uploading supporting documents with the Connect Dashboard or with the API through the documents[bank_account_ownership_verification] hash.
While you’re testing, you can simulate the US bank account ownership verification process. Use the following test bank account numbers to trigger the verification process. One number presumes successful verification and the other prompts you to upload test images or file tokens to complete the verification process. These test accounts are only available for US accounts.
| Ruta bancaria | Cuenta | Tipo |
|---|---|---|
110000000 | 000999999991 | Triggers and completes the bank account ownership verification process after a short delay |
110000000 | 000999999992 | Triggers the bank account ownership verification process after a short delay and requests for document upload |
Agregar fondos al saldo de Stripe
To test adding funds to your Stripe balance from a bank account in the Dashboard, create a sandbox and select the desired test bank account in the dropdown menu within the Add to balance dialog. You can simulate success or failure due to insufficient funds.
To test adding funds in the API, use the following test bank tokens as the source while you’re testing. Each token simulates a specific kind of event.
| Token | Tipo |
|---|---|
btok_ | Exitoso |
btok_ | Incorrecto con código no_ |
btok_ | Incorrecto con código account_ |
btok_ | Incorrecto con código insufficient_ |
btok_ | Incorrecto con código debit_ |
btok_ | Incorrecto con código invalid_ |
Transferencias
Utiliza los siguientes números de tarjetas de débito y de banco de pruebas para activar determinados eventos al probar las transferencias. Solo puedes utilizar estos valores mientras realizas pruebas con claves API de prueba.
Las transferencias de prueba simulan un pago real, pero no se procesan con el banco. Las cuentas de prueba con acceso al Dashboard de Stripe siempre tienen habilitadas las transferencias, mientras se cumplan los requisitos de información bancaria externa válida y otras condiciones relevantes, y nunca requieren verificación de identidad real.
Nota
No puedes utilizar números de tarjetas bancarias y de débito de prueba en el Dashboard de Stripe en una cuenta conectada en modo real. Si has introducido la información de tu cuenta bancaria en una cuenta en modo activo, puedes seguir utilizando un entorno de pruebas, y los pagos de prueba simularán un pago real sin procesar dinero real.
Números de bancos
Utiliza estos números de cuenta bancaria de prueba para probar transferencias. Solo puedes utilizarlos con claves API de prueba.
Números de tarjetas de débito
Utiliza estos números de tarjetas de débito de prueba para probar transferencias a una tarjeta de débito. Solo puedes usarlos con las claves API de prueba.