Prise en main
Copiez un prompt de configuration incluant les étapes d'installation et le 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-identity`
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-identity/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.
Installer
Section intitulée « Installation »bun add @capgo/capacitor-stripe-identitybunx cap syncImporter
Section intitulée « Import »import { StripeIdentity } from '@capgo/capacitor-stripe-identity';Démarrage rapide
Section intitulée « Démarrage rapide »import { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.initialize({ publishableKey: 'publishable-key-123' });Exemple : créer
Section intitulée « Exemple : créer »import { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.create({ verificationId: 'verification-id-123', ephemeralKeySecret: 'ephemeral-key-secret',});Exemple : présenter
Section intitulée « Exemple : present »import { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.present();Erreurs courantes
Section intitulée « Erreurs courantes »- Écouteurs: supprimez les handles lors du démontage des écrans.
- Initialiser une seule fois: exécutez le setup lors du bootstrap de l'app.
- Source de vérité : fiez-vous
src/definitions.tsau repo GitHub.
Flux de vérification
Section intitulée « Flux de vérification »Créez une VerificationSession sur votre backend, puis passez les identifiants au plugin :
await StripeIdentity.initialize({ publishableKey: 'pk_test_...' });
await StripeIdentity.create({ verificationId: 'vs_...', ephemeralKeySecret: 'ek_...', clientSecret: 'vs_..._secret_...', // web only});
await StripeIdentity.present();App d'exemple
Section intitulée « Application d’exemple »git clone https://github.com/Cap-go/capacitor-stripe-identity.gitcd capacitor-stripe-identity/example-appbun installbun run startSource de vérité
Section intitulée « Source de vérité »Cette page documente l’API public actuel de Cap-go/capacitor-stripe-identity.