Skip to content

始め方

GitHub
ターミナル画面
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.