Inizia
Copia un prompt di configurazione con le istruzioni di installazione e la guida markdown completa per questo 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.
Installazione
Sezione intitolata “Installazione”bun add @capgo/capacitor-stripe-paybunx cap syncImportazione
Sezione intitolata “Importazione”import { Stripe } from '@capgo/capacitor-stripe-pay';Sottoscrizioni e acquisti in-app
Sezione intitolata “Sottoscrizioni e acquisti in-app”Per le sottoscrizioni e le entità di App Store / Play Store, utilizzare @capgo/native-purchases invece di questo plugin.
Flusso della scheda di pagamento
Sezione intitolata “Flusso della scheda di pagamento”await Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();Carichi diretti (Stripe Connect)
Sezione intitolata “Carichi diretti (Stripe Connect)”Passa stripeAccount su initialize() o per createPaymentSheet() quando si crea PaymentIntents su un account connesso.
Esempio di app
Sezione intitolata “Esempio di app”git clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run startFonte di verità
Sezione intitolata “Fonte di verità”Questa pagina documenta la versione pubblica corrente API di Cap-go/capacitor-stripe-pay.