시작하기
이 플러그인의 설치 단계와 전체 마크다운 가이드가 포함된 설정 프롬프트를 복사하세요.
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.
bun add @capgo/capacitor-stripe-paybunx cap sync가져오기
“Import” 섹션import { Stripe } from '@capgo/capacitor-stripe-pay';빠른 시작
“빠른 시작” 섹션import { Stripe } from '@capgo/capacitor-stripe-pay';
await Stripe.initialize({ publishableKey: 'publishable-key-123' });예시: handleURLCallback
“Example: handleURLCallback” 섹션import { Stripe } from '@capgo/capacitor-stripe-pay';
await Stripe.handleURLCallback({ url: 'https://example.com' });자주 하는 실수
“흔한 실수” 섹션- 한 번만 초기화: 앱 부트스트랩 시 setup을 실행하세요.
- 네이티브 동기화: 실행
bunx cap sync플러그인 업그레이드 후. - 신뢰할 수 있는 소스: 신뢰
src/definitions.tsGitHub 레포지토리에서.
구독 및 인앱 구매
“구독 및 인앱 구매” 섹션App Store / Play Store 구독 및 권한에는 다음을 사용하세요: @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();Direct Charges (Stripe Connect)
“Direct Charges (Stripe Connect)” 섹션전달하세요: stripeAccount 켜짐 initialize() 또는 건당 createPaymentSheet() connected account에서 PaymentIntents를 생성할 때
예제 앱
“예제 앱” 섹션git clone https://github.com/Cap-go/capacitor-stripe-pay.gitcd capacitor-stripe-pay/example-appbun installbun run startSource of Truth
“Source Of Truth” 섹션이 페이지는 다음 저장소의 현재 공개 API을 다룹니다: Capgo/capacitor-stripe-pay.