__CAPGO_KEEP_3__

시작하기

GitHub

설치

설치
Terminal 창
bun add @capgo/capacitor-stripe-pay
bunx cap sync

Import

Import
import { Stripe } from '@capgo/capacitor-stripe-pay';

구독 및 앱 내 구매

구독 및 앱 내 구매

애플 스토어/플레이 스토어 구독 및 권한을 사용하려면 @capgo/native-purchases 이 플러그인 대신 사용하세요.

결제 시트 흐름

결제 시트 흐름
await Stripe.initialize({ publishableKey: 'pk_test_...' });
await Stripe.createPaymentSheet({
paymentIntentClientSecret: 'pi_..._secret_...',
merchantDisplayName: 'My Store',
});
const result = await Stripe.presentPaymentSheet();

직접 요금 (Stripe Connect)

Direct Charges (Stripe Connect) 섹션

Pass stripeAccount on initialize() or per createPaymentSheet() 연결된 계정에서 PaymentIntents를 생성할 때.

터미널 창
git clone https://github.com/Cap-go/capacitor-stripe-pay.git
cd capacitor-stripe-pay/example-app
bun install
bun run start

진실의 근원

Source Of Truth

이 페이지는 현재 공개 API를 문서화합니다. Cap-go/ capacitor - Stripe 결제.