はじめに
このプラグインのインストール手順と全マークダウンガイドを含む設定プロンプトをコピーする。
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.
インストール
「インストール」のセクションbun add @capgo/capacitor-stripe-paybunx cap syncインポート
「インポート」のセクションimport { Stripe } from '@capgo/capacitor-stripe-pay';サブスクリプションとインアプリ購入
「サブスクリプションとインアプリ購入」のセクションApp Store / Play Store のサブスクリプションとエンタイトメントの場合、@__CAPGO_KEEP_0__/native-purchases を使用します。 @capgo/native-purchases をこのプラグインの代わりに使用します。 Payment Sheet フロー
Payment Sheet フローのセクション
コピーawait Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();直接請求 (Stripe Connect) のセクション
パスオン stripeAccount または initialize() 当時 createPaymentSheet() PaymentIntents を接続アカウント上で作成する際に、パス、オン、または当時を指定します。
サンプルアプリ
サンプルアプリのセクションgit clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run start真実の源
真実の源のセクションThis page documents the current public API from Cap-go/capacitor-stripe-pay.