Pasar al contenido

Inicio

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

Para suscripciones y derechos de App Store / Play Store, utilice @capgo/native-purchases en lugar de este plugin.

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

Pass stripeAccount en initialize() o por createPaymentSheet() cuando se crean PaymentIntents en una cuenta conectada.

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

Esta página documenta la versión pública actual del API Cap-go/capacitor-stripe-pay.