Skip to content

Getting Started

GitHub
Terminal window
bun add @capgo/capacitor-stripe-pay
bunx cap sync
import { Stripe } from '@capgo/capacitor-stripe-pay';

For App Store / Play Store subscriptions and entitlements, use @capgo/native-purchases instead of this plugin.

await Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({
paymentIntentClientSecret: 'pi_..._secret_...',
merchantDisplayName: 'My Store',
});
const result = await Stripe.presentPaymentSheet();

Pass stripeAccount on initialize() or per createPaymentSheet() when creating PaymentIntents on a connected account.

Terminal window
git clone https://github.com/Cap-go/capacitor-stripe-pay.git
cd capacitor-stripe-pay/example-app
bun install
bun run start

This page documents the current public API from Cap-go/capacitor-stripe-pay.