Démarrage
Copiez une commande de configuration avec les étapes d'installation et la guide markdown complet pour ce plugin.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-stripe-terminal`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/stripe-terminal/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
Section intitulée « Installez »
Fenêtre de terminalbun add @capgo/capacitor-stripe-terminalbunx cap syncImporter
Section intitulée « Importer »import { StripeTerminal } from '@capgo/capacitor-stripe-terminal';Exigence de backend
Section intitulée « Exigence de backend »Stripe Terminal nécessite un endpoint backend sécurisé qui crée des jetons de connexion. Transmettez l'URL à initialize().
await StripeTerminal.initialize({ tokenProviderEndpoint: 'https://api.example.com/stripe/terminal/connection-token', isTest: true,});
await StripeTerminal.discoverReaders({ type: 'tap-to-pay' });Exemple d'application
Section intitulée « Exemple d'application »git clone https://github.com/Cap-go/capacitor-stripe-terminal.gitcd capacitor-stripe-terminal/example-appbun installbun run startSource Of Truth
Section intitulée « Source Of Truth »Cette page documente la version publique actuelle de API Cap-go/capacitor-stripe-terminal.