Démarrage
Copiez un prompt de configuration avec 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-pay`
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-pay/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 « Installer »bun add @capgo/capacitor-stripe-paybunx cap syncImporter
Section intitulée « Importer »import { Stripe } from '@capgo/capacitor-stripe-pay';Abonnements et achats en application
Section intitulée « Abonnements et achats en application »Pour les abonnements et les droits de l'App Store / Play Store, utilisez @capgo/native-purchases au lieu de ce plugin.
Flux de feuille de paiement
Section intitulée “Flux de feuille de paiement”await Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();Charges directes (Stripe Connect)
Section intitulée “Charges directes (Stripe Connect)”Passer stripeAccount sur initialize() ou par createPaymentSheet() lors de la création d'intentions de paiement sur un compte connecté.
Application d'exemple
Section intitulée “Application d'exemple”git clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run startSource De Vérité
Section intitulée “Source De Vérité”Cette page documente la version publique actuelle API de Cap-go/capacitor-stripe-pay.