__CAPGO_KEEP_2__

はじめに

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();

直接請求 (Stripe Connect) のセクション

パス

オン 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.