Capacitor community plugin for native Stripe.
Documentation: Payments · Identity · Terminal · Billing
Each package is independent. Install the integrations your app uses; installing Payment does not install Identity, Terminal, or Billing.
| Package | Use it for | Platforms | Start here |
|---|---|---|---|
@capacitor-community/stripe |
PaymentSheet, PaymentFlow, Embedded Payment Element, Apple Pay, or Google Pay | iOS, Android, web; wallet support varies | Payment setup |
@capacitor-community/stripe-identity |
Identity document collection and verification UI | iOS, Android, web | Identity setup |
@capacitor-community/stripe-terminal |
In-person payments with readers or Tap to Pay | iOS, Android; Internet readers only on web | Terminal setup |
@capacitor-community/stripe-billing |
Subscription buy buttons, Customer Portal, and entitlements | Experimental: iOS with Swift Package Manager only | Billing integration |
For an iOS or Android checkout with your own order summary and pay button, use the Embedded Payment Element. Its visibleArea option keeps the selector and its touch targets between your app bars.
Payment can confirm a PaymentIntent created by your subscription backend. Billing is the separate integration for Stripe's subscription buy buttons, portal, and entitlement APIs; it is not required just to use PaymentSheet.
| Owner | Responsibilities |
|---|---|
| Your backend | Authenticate users, choose their Stripe Customer, create Intents and short-lived SDK credentials, verify Stripe webhooks, and authorize fulfillment or feature access. |
| Your app | Initialize the selected plugin, register listeners before opening Stripe UI, request credentials from your backend, present UI, and handle results. |
| These plugins | Bridge the supported Stripe SDK operations to Capacitor. They do not supply your production authentication, server, webhook handler, or subscription catalog. |
Keep Stripe secret keys on the backend. A device's completed/presented result updates the UI; your server remains responsible for the authoritative payment or verification outcome. See Payment backend integration, Identity sessions and outcomes, Terminal connection tokens, and Billing Customer Sessions.
For a Capacitor 9 app, install version 9.0.0 of each integration you use.
| Integration | Capacitor 9 | Capacitor 8 |
|---|---|---|
| Payment setup | npm install --save-exact @capacitor-community/stripe@9.0.0 |
npm install @capacitor-community/stripe@8 |
| Identity setup | npm install --save-exact @capacitor-community/stripe-identity@9.0.0 |
npm install @capacitor-community/stripe-identity@8 |
| Terminal setup | npm install --save-exact @capacitor-community/stripe-terminal@9.0.0 |
npm install @capacitor-community/stripe-terminal@8 |
| Billing setup | npm install --save-exact @capacitor-community/stripe-billing@9.0.0 |
npm install @capacitor-community/stripe-billing@8 |
For web payments on Capacitor 9, also install stripe-pwa-elements@^5.3.0 and register its components at startup. Payment 8.4.0 uses stripe-pwa-elements@^4.1.0 and @stripe/stripe-js@^9.17.0. The React provider initializes Payment only. Web Payment setup
After installing your selected packages, run npx cap sync once for your native projects. For an iOS-only Billing app, run npx cap sync ios. Billing requires Swift Package Manager and a Stripe account with BillingSDK private preview access.
For Capacitor 8 apps, use the v8 packages. For Capacitor 7 apps, Payment, Identity, and Terminal have v7 releases. Billing starts at v8.3.0.
| Package | Android minimum | iOS minimum | Default Stripe Android SDK | Default Stripe iOS SDK | Web SDK |
|---|---|---|---|---|---|
| Payment | API 26 | 16.0 | 23.26.x | SPM 26.16.1 / CocoaPods 26.15.0 | stripe-pwa-elements 5.3.0 (Stripe.js 10.x) |
| Identity | API 26 | 16.0 | 23.26.x | SPM 26.16.1 / CocoaPods 26.15.0 | Stripe.js 10.4.x |
| Terminal | API 26 | 16.0; Tap to Pay has additional requirements | 6.0.x | SPM 6.0.0 / CocoaPods 5.8.0 | terminal-js 0.26.x |
| Billing | Unsupported | 16.0, SPM only | — | Pinned experimental revision; see integration guide | Unsupported |
The Android plugins compile against SDK 37 and require API 26 or later.
Optional Android SDK overrides are stripeAndroidVersion (Payment), identityVersion (Identity), and stripeterminalCoreVersion, stripeterminalTapToPayVersion, and stripeterminalAppOnDevicesVersion (Terminal). Keep Terminal versions aligned and check upstream compatibility before overriding them.
Payment and Identity use Stripe iOS 26.16.1 with Swift Package Manager. CocoaPods resolves 26.15.0, the last Stripe iOS release distributed through CocoaPods. Terminal uses SDK 6.0 on Android and Swift Package Manager. Existing CocoaPods integrations use Terminal 5.8.0. See the Stripe Terminal migration guide.
Payment upgrades Stripe.js from 9.x to 10.x. Stripe.js 10 removes the paymentRequestButton Element. The plugin’s Apple Pay and Google Pay flows use the underlying stripe.paymentRequest() API. The Angular demo uses a single @stripe/stripe-js@^10.4.0 installation for both Identity and the Payment web components.
If npx cap sync ios reports an outdated pod specification, run pod install --repo-update from ios/App. If the lockfile pins an older Stripe SDK, update the affected pod, for example pod update StripePaymentSheet, rather than updating every pod. This applies to Payment, Identity, and Terminal; Billing uses SPM only.
The hosted Angular demo exercises supported web flows. It cannot demonstrate native-only Billing, native wallet UI, or phone-based Tap to Pay.
For native flows, build demo/angular. Its scenario pages prepare test resources automatically and display method results under EXPECT. Green checks report the listed SDK/API calls, not fulfillment or a completed subscription purchase. Billing scenarios require iOS; its backend is configured once by the maintainer, with no credentials entered by app users.
From a fresh checkout:
npm ci
npm run build
cd demo/angular
npm ci
npm run cap
npx cap sync ios
npx cap open iosFor Android, replace the last two commands with npx cap sync android and npx cap open android. Demo builds use environment.prod.ts; local development setup and backend responsibilities are explained in the Angular demo guide and demo server guide.
Other examples: React · Apps on Devices.
| Android | iOS | Web | |
|---|---|---|---|
| PaymentSheet | ![]() |
![]() |
![]() |
| PaymentFlow | ![]() |
![]() |
Screenshot unavailable |
| ApplePay | Not supported | ![]() |
beta. |
| GooglePay | ![]() |
Not supported | ![]() |
| Android | iOS | Web | |
|---|---|---|---|
| Identity | ![]() |
![]() |
![]() |
The repository's npm workspaces are Payment, Identity, Terminal, and Billing. Candidate publishing builds and validates all four as one set.
For an open, non-draft PR, an owner or maintainer may comment /beta after Validation and Package Candidate pass. This authorizes only that head SHA; a new commit requires another successful CI run and a new /beta request. PRs changing release-gating workflows must first land on main.
Candidate versions use <base>-beta.pr<PR number>.sha<12-character SHA>. The workflow verifies the package names and versions, then posts an exact install command for the complete set. A merged PR automatically publishes that set to beta after CI succeeds for the merge commit. Direct pushes to main do not publish a candidate.
Use the root npm run release script for coordinated tagged releases. Stable vX.Y.Z tags publish every workspace to latest; prerelease tags publish every workspace to next. Candidate publishing does not change latest. Each package must have npm publishing configured, including its Trusted Publisher for GitHub Actions. See Contributing for generated documentation and local checks.
| Maintainer | GitHub | Social | Website |
|---|---|---|---|
| Hidetaka Okamoto | hideokamoto | @hide__dev | hidetaka.dev |
| Masahiko Sakakibara | rdlabo | @rdlabo | rdlabo.dev |
Made with contributors-img.











