v8.2.0
Upgrade notes
After updating the packages, run npx cap sync.
iOS build requirement
The Payment and Identity packages now use Stripe iOS SDK 26.6.x. Build iOS applications with Xcode 26 or newer. The minimum iOS deployment target remains iOS 15.
Register result listeners during application bootstrap
On Android, an Activity and its JavaScript runtime can be recreated while PaymentSheet, PaymentFlow, Google Pay, or Stripe Identity is open. The original Promise cannot be restored. Register the corresponding result listeners once per JavaScript application startup, as early as possible during bootstrap and before presenting Stripe UI.
When Stripe delivers the result to the recreated Activity, the plugin can retain the native result event in memory until the new listener is available. This does not persist results across OS process death. See the Payment and Identity READMEs for examples.
Apple Pay shipping contact handlers
Applications that listen for ApplePayEventsEnum.DidSelectShippingContact should respond by calling Stripe.updateApplePaySheet(...) with the event's updateId and the updated paymentSummaryItems. If no update is supplied, the plugin waits up to 25 seconds and then continues with the original items.
Tap to Pay on iPhone
isTapToPayAccountLinked() is now available on iOS 16.4 and later. Call it after StripeTerminal.initialize() and handle Promise rejection. It is not implemented on Android or Web.
Native SDK and behavior updates
- Stripe-owned native dependencies were updated across Payment, Identity, and Terminal. This also fixes the Android shared Terminal initialization conflict that could cause reader connection to use a publishable key when Payment and Terminal were installed together; no application code change is required for that fix.
- PaymentSheet failures on Android now emit a single failure event instead of a duplicate event.
- A successful PaymentFlow confirmation no longer emits a spurious canceled event.
cancelDiscoverReaders()now settles reliably, including when no discovery is active.
What's Changed
- chore(demo): test update to jsdom by @rdlabo in #476
- Standardize validation workflow configuration by @rdlabo in #477
- fix(terminal): wrong annotation for discoverReaders on android by @DoctorMcKay in #478
- feat(terminal): add isTapToPayAccountLinked for iOS, bump iOS SDK to 5.7.0 by @mthwJsmith in #479
- feat(apple-pay): add updateApplePaySheet to update payment items on shipping contact selection by @agomezmart in #473
- fix(payment): ignore completed flow option reset by @rdlabo in #486
- fix(terminal): settle reader discovery cancellation by @rdlabo in #480
- fix(payment): modernize Android registration and failure events by @rdlabo in #487
- fix(android): retain results when saved calls are missing by @rdlabo in #488
- chore: update Stripe native SDKs by @rdlabo in #489
New Contributors
- @mthwJsmith made their first contribution in #479
- @agomezmart made their first contribution in #473
Commits
- Merge branch 'main' of github.com:capacitor-community/stripe 6d235e3
- chore: update Stripe native SDKs (#489) 7c22e93
- fix(android): recover results without saved calls (#488) 7bbe150
- fix(payment): modernize Android registration and failure events (#487) c5cf1fb
- Merge branch 'main' of github.com:capacitor-community/stripe 73169fc
- fix(terminal): settle reader discovery cancellation (#480) 2c217fb
- fix(payment): ignore completed flow option reset (#486) edf62fe
- feat(apple-pay): add updateApplePaySheet to update payment items on shipping contact selection (#473) 2890dd4
- Merge branch 'main' of github.com:capacitor-community/stripe d74e247
- chore(ci): update to setup-node@5 a56fcd0
- feat(terminal): add isTapToPayAccountLinked for iOS, bump iOS SDK to 5.7.0 (#479) dce054c
- fix(terminal): wrong PluginMethod annotation for discoverReaders on android (#478) 7beb803
- Standardize validation workflow configuration (#477) 07577f5
- chore(demo): test update to jsdom (#476) c554649
- Merge branch 'main' of github.com:capacitor-community/stripe 502bd1c
- chore(terminal): update readme 41d7634
- chore: update workspace versions to 8.1.1 c7c5a4c