コンテンツにジャンプ

はじめに

GitHub
ターミナルウィンドウ
bun add @capgo/capacitor-stripe-pay
bunx 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();

セクション「ストリップ コネクトによる直接請求」

パス

オン stripeAccount または initialize() パー createPaymentSheet() ストリップ コネクトアカウントに PaymentIntents を作成する際に、パス、オン、またはパーを指定します。

サンプルアプリ

サンプルアプリ
ターミナルウィンドウ
git clone https://github.com/Cap-go/capacitor-stripe-pay.git
cd capacitor-stripe-pay/example-app
bun install
bun run start

真実の源

真実の源

This page documents the current public API from Cap-go/capacitor-stripe-pay.