Zum Inhalt springen

Anfangen

GitHub
Terminal-Fenster
bun add @capgo/capacitor-stripe-identity
bunx cap sync
import { StripeIdentity } from '@capgo/capacitor-stripe-identity';

Erstellen Sie auf Ihrem Backend eine VerificationSession und geben Sie dann die IDs an den Plugin weiter:

await StripeIdentity.initialize({ publishableKey: 'pk_test_...' });
await StripeIdentity.create({
verificationId: 'vs_...',
ephemeralKeySecret: 'ek_...',
clientSecret: 'vs_..._secret_...', // web only
});
await StripeIdentity.present();
Terminalfenster
git clone https://github.com/Cap-go/capacitor-stripe-identity.git
cd capacitor-stripe-identity/example-app
bun install
bun run start

Diese Seite dokumentiert die derzeitige öffentliche API Cap-go/capacitor-stripe-identity.