Passer à la navigation

Prise en main

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

Pour les abonnements et les droits de l'App Store / Play Store, utilisez @capgo/achats-natifs au lieu de ce plugin.

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

Passer stripeAccount sur initialize() ou par createPaymentSheet() Lors de la création d'Intent de paiement sur un compte connecté.

Fenêtre de terminal
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-paiement-par-stripe.