capacitor-stripe-terminal
Accept in-person card payments in your Capacitor app with Stripe Terminal (unofficial)
Documentation · Quickstart · API Reference · Migration Guides
- iOS, Android and web from one TypeScript API, built on the native Stripe Terminal SDKs and
@stripe/terminal-js. - Every reader type: Bluetooth, internet (WisePOS E, Stripe S700), USB, Tap to Pay and Apps on Devices.
- Bluetooth + internet discovery at once with the plugin-only
bothmode. - Payments, refunds, SetupIntents, offline payments, on-reader forms and printing.
- Consistent across platforms.
| Component | Version |
|---|---|
| Capacitor | 8.x |
| Stripe Terminal iOS SDK | 6.0.0 (iOS 16.0+) |
| Stripe Terminal Android SDK | 6.0.0 (API 23+, compileSdk 35+) |
npm install capacitor-stripe-terminal npx cap sync
Then follow the installation guide to configure iOS, Android and location permissions.
import { StripeTerminalPlugin } from 'capacitor-stripe-terminal' const terminal = await StripeTerminalPlugin.create({ fetchConnectionToken: async () => { const resp = await fetch('https://your-backend.dev/token', { method: 'POST', }) return (await resp.json()).secret }, onUnexpectedReaderDisconnect: () => { // the reader disconnected unexpectedly }, }) // discover and connect to a reader first, see the quickstart await terminal.retrievePaymentIntent('{CLIENT_SECRET}') await terminal.collectPaymentMethod() await terminal.confirmPaymentIntent()
The quickstart walks through reader discovery, connection and error handling.
The plugin follows Stripe's API closely, so the Stripe Terminal docs still apply. The docs here only cover what's different, starting with Differences from Stripe's SDKs and the platform support matrix.
See the migration guides: v5 to v6 and v3 to v5.
Issues and pull requests are welcome. See CONTRIBUTING.md. Docs live in docs/ and preview with npm run docs:dev.
| Maintainer | GitHub | Social |
|---|---|---|
| Noah Prail | nprail | @NoahPrail |
- Thanks Stripe for creating such an amazing product
- Thanks react-native-stripe-terminal for quite a few borrowed concepts
