Inizia
Copia una riga di configurazione con i passaggi di installazione e la guida markdown completa per questo plugin.
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.
bun add @capgo/capacitor-stripe-terminalbunx cap syncImporta
Sezione intitolata “Importa”import { StripeTerminal } from '@capgo/capacitor-stripe-terminal';Requisito del backend
Sezione intitolata “Requisito del backend”Stripe Terminal richiede un endpoint backend sicuro che crea token di connessione. Passa l'URL a initialize().
await StripeTerminal.initialize({ tokenProviderEndpoint: 'https://api.example.com/stripe/terminal/connection-token', isTest: true,});
await StripeTerminal.discoverReaders({ type: 'tap-to-pay' });Esempio di applicazione
Sezione intitolata “Esempio di applicazione”git clone https://github.com/Cap-go/capacitor-stripe-terminal.gitcd capacitor-stripe-terminal/example-appbun installbun run startFonte di Verità
Sezione intitolata “Fonte di Verità”Questa pagina documenta la versione pubblica corrente di API Cap-go/capacitor-stripe-terminal.