Accéder directement au contenu
Créez un compte ou connecter-vous
Logo de la documentation Stripe
/
Demander à l'assistant IA
Créez un compteConnectez-vous
Démarrer
Paiements
Revenus
Plateformes et marketplaces
Gestion de fonds
Ressources pour les développeurs
API et SDKAide
Aperçu
Gestion des versions
Journal des modifications
Mettre à niveau votre version de l'API
Actualiser votre version du SDK
Essentials
SDK
API
Tests
CLI Stripe
Exemples de projets
Outils
Dashboard Stripe
Workbench
Dashboard des développeurs
Stripe pour Visual Studio Code
Terraform
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
    Présentation
    Démarrer
    Créer une application
    Fonctionnement de Stripe Apps
    Cas d'usage fréquents
      Back-end app example
      Front-end app example
      Full-stack app example
    Exemples d'application
    Créer une application
    Enregistrer des clés secrètes
    Méthodes d'authentification de l'API
    Flux d'autorisation
    Logique côté serveur
    Écouter les événements
    Gérer différents modes
    Activer la prise en charge de l'environnement de test
    Activer l’accès au réseau local
    Page des paramètres d'application
    Concevoir une interface utilisateur
    Inscription des utilisateurs
    Distribuer votre application
    Options de distribution
    Charger votre application
    Versions
    Tester votre application
    Publier votre application
    Faire la promotion de votre application
    Ajouter des liens profonds
    Créer des liens d'installation
    Assigner des rôles dans les extensions d'interface utilisateur
    Actions post-installation
    Analyses de l'application
    Composants intégrés
    Intégrer des applications tierces conçues pour Stripe
    Migrer vers Stripe Apps
    Migrer ou développer une extension
    Migrer un plugin vers Stripe Apps ou Stripe Connect
    Référence
    Manifeste de l'application
    Interface de ligne de commande
    SDK d'extension
    Autorisations
    Fenêtres d'affichage
    Modèles de conception
    Composants
Utiliser les applications de Stripe
Partenaires
Partner ecosystem
Certification des partenaires
États-Unis
Français (France)
  1. Accueil/
  2. Ressources pour les développeurs/
  3. Build Stripe apps/
  4. Common use cases

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.

Full-stack app example

Build a Stripe app with both a user interface and back-end functionality.

This guide shows you how to build a Stripe app that both renders a user interface in the Stripe Dashboard and performs back-end processing.

Select the authentication type that you want to use. If you want to build a private app, you can’t use OAuth authentication.

The following example shows how to build a Stripe app that uses platform key authentication.

Create a Stripe account

Avant d’intégrer Stripe, vous devez créer un compte Stripe.

  1. Créez un compte en saisissant votre adresse e-mail, votre nom complet, votre pays et en créant un mot de passe.
  2. Renseignez le profil de votre entreprise.
  3. Dans le Dashboard, cliquez sur Vérifier votre e-mail. Stripe envoie un e-mail de vérification à votre adresse e-mail.
  4. Vérifiez votre adresse e-mail.

Remarque

You can continue building your app in a sandbox as you follow the steps in this guide. You need a live Stripe account to publish your app.

Install Stripe CLI and Apps CLI Plugin

# Install Homebrew to run this command: https://brew.sh/ brew install stripe/stripe-cli/stripe
# Connect the CLI to your dashboard stripe login
# Install Apps CLI Plugin stripe plugin install apps

See the additional instructions to verify that you’re using CLI v1.12.4 and that node.js is up to date.

Create your app

stripe apps create {my-app-name}

After you run this command, it prompts you for the following:

  • An app ID, which must be globally unique and can change
  • An app display name, which doesn’t need to be unique and that you can change

Configure your app

In your new directory, find the stripe-app.json app manifest file, and update it as follows:

{ "id": "com.example.example-app", // unique app ID "version": "0.0.1", // app version "name": "Example App", // app display name "icon": "./[YOUR_APP]_icon_32.png", // app icon; put the file in the same directory for ease of distribution "stripe_api_access_type": "platform", "distribution_type": "public", // for a private app, set to "private" "allowed_redirect_uris": ["https://example.com/installed/callback"], // optional redirect URLs "sandbox_install_compatible": "true", "permissions": [] }

Configure installation redirect URLs (optional)

In the allowed_redirect_uris array, add the URLs to return your app users to after they install your app from an install link. The first entry becomes the default. If you don’t want to create an install link, you don’t have to include this array in your app manifest.

Configure app permissions

In the permissions array, include the necessary object and event permissions for your use case. For example, accessing the Customers API needs the customer_read permission.

  • Enter each permission as an object with both a permission and a purpose. Stripe uses the purpose string during app review.
  • Include only the permissions that your app needs.

Implement server-side logic

You can implement back-end functionality such as:

  • Integrating securely with external systems
  • Handling Stripe events with webhooks
  • Making signed Stripe API calls
  • Scheduling actions

For detailed instructions, see Add server-side logic.

Implement your user interface

To add a user interface to your Stripe app, define its UI extension. A UI extension contains:

  • One or more views, which configure the interface
  • A Content Security Policy (CSP), which controls the URLs that the interface can access

Add views

Each view includes two elements:

  • A React component that defines a custom interface element
  • A viewport representing the Dashboard context that displays the component

Adding a view to your app project automatically updates your app manifest by adding an entry to the views array in the ui_extension section. For example, an app that customizes the app settings page, the customer detail page, and the customer list page has the following entries:

{ ... "ui_extension": { "views": [ { "viewport": "app.settings", "component": "AppSettings" }, { "viewport": "stripe.dashboard.customer.detail", "component": "CustomerDetailsView" }, { "viewport": "stripe.dashboard.customer.list", "component": "CustomerListView" } ] } }

For information about how to create your own views, see Design your app and How UI extensions work.

Configure the Content Security Policy (CSP)

The Content Security Policy uses Cross-Origin Resource Sharing to protect against cross-site scripting attacks. If your app doesn’t access any APIs or data outside of Stripe, then you don’t need to define the CSP.

Upload, test, and publish your app

The process for uploading, testing, and publishing your app depends on whether you want to publish your app to the Stripe App Marketplace or keep it private to your own account.

Upload your app

  1. In the Stripe CLI, run stripe login to confirm that you’re logged into the correct Stripe account. Then run stripe apps upload to upload the app to your Stripe account.
  2. In your Stripe Dashboard, open the Developers menu and select Created apps.
  3. Click your app to open its details page, then select the External test tab.
  4. Click Get started to set up an external test.
  5. Copy the sandbox link.
  6. In a new browser tab, load the sandbox link. It opens the app install page, which lists your app’s permissions.

Enable sandbox testing

After you upload an app into your live account, Stripe auto-generates a managed sandbox account for testing. Your managed sandbox has its own API keys.

To test your app in the sandbox, enable it for sandbox installation.

Publish your app

After Stripe completes the app review and approves the app for publication, you can publish it:

  1. In your Stripe Dashboard, open the Developers menu and select Created apps.
  2. Click your app to open its details page.
  3. Under Publish app, click Review and publish.

Make sure to test your app completely before publishing it.

After you publish your app, it becomes discoverable on marketplace.stripe.com.

Cette page vous a-t-elle été utile ?
OuiNon
  • Besoin d'aide ? Contactez le service Support.
  • Discutez par chat sur Discord avec les développeurs de Stripe.
  • Consultez notre log des modifications.
  • Des questions ? Contactez l'équipe commerciale.
  • LLM ? Lire llms.txt.
  • Propulsé par Markdoc