Stripe
Stripe Mobile SDK wrapper for Capacitor
Install / Use
/learn @capacitor-community/StripeREADME
packages
| package name | description | path | |--------------------------------------|-------------|--------------------------------------------------------------------------------------------------------| | @capacitor-community/stripe | Support for non-personal payments using Stripe | /packages/payment | | @capacitor-community/stripe-identity | Supports identity verification using Stripe | /packages/identity | | @capacitor-community/stripe-terminal | Support for in-person payments using Stripe | /packages/terminal |
Hint
Versions
Users of Capacitor v7 should use version v7 of the Plugin.
% npm install @capacitor-community/stripe@7
% npm install @capacitor-community/stripe-identity@7
% npm install @capacitor-community/stripe-terminal@7
How to use Stripe Android currently package
Capacitor Android 7's default settings is here:
ext {
minSdkVersion = 24
compileSdkVersion = 36
targetSdkVersion = 36
To use the latest Stripe Android, you need to version these up. To use the latest features, follow these steps.
- Open
android/variables.gradleand change sdkVersion version, if need. - Add
stripeAndroidVersion,identityVersionorstripeterminalCoreVersionand set required version. Release information is here:
- https://github.com/stripe/stripe-android/releases
- https://github.com/stripe/stripe-terminal-android/releases
ext {
- minSdkVersio = 24
+ minSdkVersion = 26
compileSdkVersion = 36
targetSdkVersion = 36
androidxActivityVersion = '1.11.0'
androidxAppCompatVersion = '1.7.1'
androidxCoordinatorLayoutVersion = '1.3.0'
androidxCoreVersion = '1.17.0'
androidxFragmentVersion = '1.8.9'
coreSplashScreenVersion = '1.2.0'
androidxWebkitVersion = '1.14.0'
junitVersion = '4.13.2'
androidxJunitVersion = '1.3.0'
androidxEspressoCoreVersion = '3.7.0'
cordovaAndroidVersion = '14.0.1'
// If you will set @capacitor-community/stripe:
+ stripeAndroidVersion = 【Your version】
// If you will set @capacitor-community/stripe-identity:
+ identityVersion = 【Your version】
// If you will set @capacitor-community/stripe-terminal:
+ stripeterminalCoreVersion =【Your version】
+ stripeterminalTapToPayVersion =【Your version】
+ stripeterminalAppOnDevicesVersion =【Your version】
}
Note: @capacitor-community/stripe-terminal does not work with the default sdkVersion, so these updates are mandatory. See /packages/terminal for more information.
Error when running cap update ios
[!] CocoaPods could not find compatible versions for pod "StripePaymentSheet":
In snapshot (Podfile.lock):
..
You have either:
* out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
* changed the constraints of dependency `StripePaymentSheet` inside your development pod `CapacitorCommunityStripe`.
You should run `pod update StripePaymentSheet` to apply changes you've made.
You will see this error often when using Capacitor iOS. The solution is simple: do the following:
% cd ios/App && pod install --repo-update
or
% cd ios/App && pod update
Maintainers
| Maintainer | GitHub | Social | | ------------------- | ----------------------------------- | ------------------------------------- | | Hidetaka Okamoto | hideokamoto | @hide__dev | | Masahiko Sakakibara | rdlabo | @rdlabo |
Contributors ✨
<a href="https://github.com/capacitor-community/stripe/graphs/contributors"> <img src="https://contrib.rocks/image?repo=capacitor-community/stripe" /> </a>Made with contributors-img.
Demo
- Demo code is here. Please check these code before ask at issues.
- Demo of Web is hosting here.
Screenshots
@capacitor-community/stripe
| | Android | iOS | Web |
|:------------:|:-----------------------------------------------:|:-------------------------------------------:|:-------------------------------------------:|
| PaymentSheet |
|
|
|
| PaymentFlow |
|
|
|
| ApplePay | Not supported |
| beta. |
| GooglePay |
| Not supported |
|
@capacitor-community/stripe-identity
| | Android | iOS | Web |
|:------------:|:-----------------------------------------------:|:-------------------------------------------:|:--------------------------------------:|
| Identity |
|
|
|
How to use Demo
% git clone git@github.com:capacitor-community/stripe.git
% cd npm install && npm run build
% cd demo && npm install && npm run cap && npx cap update
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
