スタート
このプラグインのインストール手順とフルマークダウンガイドのセットアッププロンプトをコピーする
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.
Install
「Install」を選択bun add @capgo/capacitor-stripe-paybunx cap syncImport
「Import」を選択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.