시작하기
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 명령어를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-stripe-identity`
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-identity/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-identitybunx cap syncLive Update
Cloudflareimport { StripeIdentity } from '@capgo/capacitor-stripe-identity';Capacitor
GitHubimport { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.initialize({ publishableKey: 'publishable-key-123' });Capgo
codeimport { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.create({ verificationId: 'verification-id-123', ephemeralKeySecret: 'ephemeral-key-secret',});import { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.present();일반적인 문제점
Section titled “일반적인 문제점”- 리스너: 화면이 언마운트 될 때 핸들러를 제거합니다.
- 초기화: 앱 부트스트랩 중에 설정을 실행합니다.
- 실제 소스: trust
src/definitions.tsGitHub 저장소에서.
Copy to clipboard
인증 흐름백엔드에서 VerificationSession을 생성하고, IDs를 플러그인에 전달하세요:
await StripeIdentity.initialize({ publishableKey: 'pk_test_...' });
await StripeIdentity.create({ verificationId: 'vs_...', ephemeralKeySecret: 'ek_...', clientSecret: 'vs_..._secret_...', // web only});
await StripeIdentity.present();예제 앱
예제 앱git clone https://github.com/Cap-go/capacitor-stripe-identity.gitcd capacitor-stripe-identity/example-appbun installbun run start실제 데이터
실제 데이터이 페이지는 현재 공개 API를 문서화합니다. Cap-go/ capacitor - Stripe-identity.