내용으로 건너뛰기

시작하기

GitHub

설치

설치
터미널 창
bun add @capgo/capacitor-stripe-identity
bunx cap sync

Live Update

Cloudflare
import { StripeIdentity } from '@capgo/capacitor-stripe-identity';

Capacitor

GitHub
import { StripeIdentity } from '@capgo/capacitor-stripe-identity';
await StripeIdentity.initialize({ publishableKey: 'publishable-key-123' });

Capgo

code
import { 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();
  • 리스너: 화면이 언마운트 될 때 핸들러를 제거합니다.
  • 초기화: 앱 부트스트랩 중에 설정을 실행합니다.
  • 실제 소스: trust src/definitions.ts GitHub 저장소에서.

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.git
cd capacitor-stripe-identity/example-app
bun install
bun run start

실제 데이터

실제 데이터

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