Mulai
Copy prompt pengaturan dengan langkah instalasi dan panduan markdown lengkap untuk plugin ini.
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.
Instalasi
Bab berjudul “Instalasi”bun add @capgo/capacitor-stripe-paybunx cap syncImport
Bab berjudul “Import”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.
Alur Pembayaran Sheet
Judul bagian “Alur Pembayaran Sheet”await Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();Pembayaran Langsung (Stripe Connect)
Judul bagian “Pembayaran Langsung (Stripe Connect)”Melewati stripeAccount atau per initialize() ketika membuat PaymentIntents pada akun yang terhubung. createPaymentSheet() atau per
Aplikasi Contoh
Judul Bagian “Aplikasi Contoh”git clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run startSumber Kebenaran
Judul Bagian “Sumber Kebenaran”This page documents the current public API from Cap-go/capacitor-stripe-pay.