スタートガイド
このプラグインのインストール手順と完全なマークダウンガイドを含む設定の質問をコピーする
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/ネイティブ購入 このプラグインの代わりに
Payment Sheet フロー
Payment Sheet フローのセクションawait Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();ストリップ コネクトによる直接請求
ストリップ コネクトによる直接請求のセクションPass stripeAccount on initialize() または per createPaymentSheet() ストリップ コネクトアカウントに PaymentIntents を作成するときに
サンプル アプリ
Section titled “サンプルアプリ”git clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run startこのページでは、現在の公開バージョン API を Cap-go/ capacitor - ストライプ・ペイ.