GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - eventOneHQ/capacitor-stripe-terminal: 💳 Capacitor plugin for Stripe Terminal (credit card readers)

BranchesTags
Open more actions menu

Latest commit

 

History

235 Commits
235 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.husky
.husky
 
 
android
android
 
 
docs
docs
 
 
example
example
 
 
ios
ios
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.java-version
.java-version
 
 
.prettierrc
.prettierrc
 
 
.tool-versions
.tool-versions
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
Package.swift
Package.swift
 
 
README.md
README.md
 
 
docmd.config.json
docmd.config.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation


Capacitor Stripe Terminal

capacitor-stripe-terminal

Accept in-person card payments in your Capacitor app with Stripe Terminal (unofficial)


Documentation · Quickstart · API Reference · Migration Guides

Features

  • 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 both mode.
  • Payments, refunds, SetupIntents, offline payments, on-reader forms and printing.
  • Consistent across platforms.

Requirements

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+)

Install

npm install capacitor-stripe-terminal
npx cap sync

Then follow the installation guide to configure iOS, Android and location permissions.

Usage

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.

Coming from Stripe's SDKs?

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.

Upgrading

See the migration guides: v5 to v6 and v3 to v5.

Contributing

Issues and pull requests are welcome. See CONTRIBUTING.md. Docs live in docs/ and preview with npm run docs:dev.

Maintainers

Maintainer GitHub Social
Noah Prail nprail @NoahPrail

Sponsors

Acknowledgements

  • Thanks Stripe for creating such an amazing product
  • Thanks react-native-stripe-terminal for quite a few borrowed concepts

About

💳 Capacitor plugin for Stripe Terminal (credit card readers)

eventonehq.github.io/capacitor-stripe-terminal/

Topics

capacitorcapacitor-pluginhacktoberfestpluginstripestripe-terminal

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing
Activity
Custom properties

Stars

31 stars

Watchers

5 watching

Forks

18 forks
Report repository

Releases

Sponsor this project

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.