コンテンツにスキップ

はじめに

GitHub

「インストール」のセクション

ターミナル ウィンドウ
__CAPGO_KEEP_0__
bun add @capgo/capacitor-stripe-identity
bunx cap sync
import { StripeIdentity } from '@capgo/capacitor-stripe-identity';

バックエンドでVerificationSessionを作成し、IDをプラグインに渡します:

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.