Mulai
Pengaturan siap dicopy dengan langkah instalasi dan panduan markdown lengkap untuk plugin ini.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-stripe-terminal`
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-terminal/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.
Instal
Installbun add @capgo/capacitor-stripe-terminalbunx cap syncImport
Importimport { StripeTerminal } from '@capgo/capacitor-stripe-terminal';Persyaratan Backend
Persyaratan BackendStripe Terminal memerlukan endpoint backend yang aman untuk membuat token koneksi. Kirim URL tersebut ke initialize().
await StripeTerminal.initialize({ tokenProviderEndpoint: 'https://api.example.com/stripe/terminal/connection-token', isTest: true,});
await StripeTerminal.discoverReaders({ type: 'tap-to-pay' });Aplikasi Contoh
Persyaratan Backendgit clone https://github.com/Cap-go/capacitor-stripe-terminal.gitcd capacitor-stripe-terminal/example-appbun installbun run startSumber Kebenaran
Bab berjudul βSumber KebenaranβThis page documents the current public API from Cap-go/capacitor-terminal-stripe.