スタート
__CAPGO_KEEP_0__
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/native-purchases このプラグインの代わりに.
支払いシートの流れ
支払いシートの流れawait Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({ paymentIntentClientSecret: 'pi_..._secret_...', merchantDisplayName: 'My Store',});
const result = await Stripe.presentPaymentSheet();ストリップ コネクトによる直接請求
ストリップ コネクトによる直接請求Pass stripeAccount on initialize() または createPaymentSheet() アカウントに接続されたときにPaymentIntentsを作成するときに
サンプルアプリ
サンプルアプリgit clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run start真実の源
「真実の源」というセクションこのページでは現在の公開バージョン API を Cap-go/capacitor-stripe-pay.