Getting Started
Copy a setup prompt with the install steps and the full markdown guide for this 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.
Install
Section titled “Install”bun add @capgo/capacitor-stripe-paybunx cap syncImport
Section titled “Import”import { Stripe } from '@capgo/capacitor-stripe-pay';Subscriptions and in-app purchases
Section titled “Subscriptions and in-app purchases”For App Store / Play Store subscriptions and entitlements, use @capgo/native-purchases instead of this plugin.
Payment Sheet flow
Section titled “Payment Sheet flow”await Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();Direct Charges (Stripe Connect)
Section titled “Direct Charges (Stripe Connect)”Pass stripeAccount on initialize() or per createPaymentSheet() when creating PaymentIntents on a connected account.
Example app
Section titled “Example app”git clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run startSource Of Truth
Section titled “Source Of Truth”This page documents the current public API from Cap-go/capacitor-stripe-pay.