메뉴로 이동

시작하기

GitHub
터미널 창
bun add @capgo/capacitor-stripe-pay
bunx 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();

직접 요금 (Stripe Connect)

직접 요금 (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

이 페이지는 현재 공개 API의 문서입니다. Cap-go/capacitor-stripe-pay.