Lompat ke Konten

Mulai

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

Pengaturan langganan dan pembelian dalam aplikasi

Bab berjudul “Pengaturan Langganan dan Pembelian Dalam Aplikasi”

Untuk langganan dan hak akses App Store / Play Store, gunakan @capgo/native-purchases sebaliknya dari plugin ini.

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

Melewati stripeAccount atau per initialize() ketika membuat PaymentIntents pada akun yang terhubung. createPaymentSheet() atau per

Jendela 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-stripe-pay.