Accéder directement au contenu
Créez un compte
ou
connecter-vous
Logo de la documentation Stripe
/
Demander à l'assistant IA
Créez un compte
Connectez-vous
Démarrer
Paiements
Revenus
Plateformes et places de marché
Gestion de fonds
Ressources pour les développeurs
Aperçu
Gestion des versions
Journal des modifications
Mettre à niveau votre version de l'API
Actualiser votre version du SDK
Essentials
SDK
    Présentation
    SDK côté serveur
    Web
    Module ES Stripe.js
    React Stripe.js
    Assistant du mode test Stripe.js
    Appareils mobiles
    SDK iOS
    SDK Android
    SDK React Native
    Migrer vers le SDK iOS 24
    Migrer vers le SDK Android 21
    Terminal
    SDK iOS
    SDK Android
    SDK React Native
    Communauté
    SDK de la communauté
API
Tests
CLI Stripe
Exemples de projets
Outils
Dashboard Stripe
Workbench
Dashboard des développeurs
Shell Stripe
Stripe pour Visual Studio Code
Fonctionnalités
Workflows
Destinations d'événements
Alertes d'intégrité de StripeChargements de fichiers
Solutions d'IA
Boîte à outils des agents
Modèle de protocole contextuelCréer des flux de facturation SaaS avec l’IA agentique
Sécurité et confidentialité
Sécurité
Robot d'exploration Web Stripebot
Confidentialité
Extensions Stripe
Créer des applications Stripe
Utiliser les applications de Stripe
Partenaires
Partner ecosystem
Certification des partenaires
AccueilRessources pour les développeursSDKs

Remarque

Cette page n'est pas encore disponible dans cette langue. Nous faisons tout notre possible pour proposer notre documentation dans davantage de langues et nous vous fournirons la version traduite dès qu'elle sera disponible.

Stripe.js test mode assistant

Test and debug your Elements integration directly on your website using your browser.

You can use the Stripe.js test mode assistant to set up your integration.

The test mode assistant in the browser

The test mode assistant appears on the bottom right of the page.

The test mode assistant appears on your website on any page with Elements loaded in test mode and doesn’t appear in live mode. The test mode assistant provides tools that allow you to:

  • Provide autofill shortcuts for payment methods and payment scenarios
  • Highlight integration errors, warnings, and optimizations
  • Simulate your customer’s location to see which payment methods you display to customers around the world

Elements autofill

The test mode assistant automatically shows payment method presets for the payment methods included in your integration. You can use these presets to autofill the Payment Element for different payment scenarios.

The test mode assistant autofill tab

Use the payment method presets to autofill Elements.

For example, you can select Magic Fill to autofill all Elements present on the page at the same time.

Integration insights

The test mode assistant highlights integration errors and warnings to help you follow best practices. It also suggests optimization techniques to help manage your integration’s effectiveness, such as using dynamic payment methods if you aren’t already doing so.

The test mode assistant insights tab

View integration errors and warnings

Customer location simulation

The test mode assistant simulates your customer’s location to view what payment methods display to your customers around the world.

The customer location simulation tab in the test mode assistant

Simulate your customer’s location to view your integration in various countries

If you use the Currency Selector Element, you can also simulate the customer’s location to view which payment methods display based on the customer’s chosen currency.

Hide the test mode assistant

By default, Stripe automatically enables the test mode assistant for integrations using Elements with the Checkout Sessions API or for those using Elements with the Payment Intents API on Clover version or later.

To hide the test mode assistant, set the developerTools.assistant.enabled option to false when you set up Elements.

index.js
const stripe = new Stripe(publicKey, { developerTools: { assistant: { enabled: false, }, }, });
Cette page vous a-t-elle été utile ?
OuiNon
  • Besoin d'aide ? Contactez le service Support.
  • Rejoignez notre programme d'accès anticipé.
  • Consultez notre log des modifications.
  • Des questions ? Contactez l'équipe commerciale.
  • LLM ? Lire llms.txt.
  • Propulsé par Markdoc