stripe_sdk
5.0.0, released 3 years ago by an unverified publisher
Access Stripe API directly in Flutter with support for SCA/PSD2 and payment intents.
What it does
Provides a native Dart interface to the Stripe REST API, handling payment intents, setup intents, customer management, and SCA/PSD2 authentication flows via web browsers.
AI-written summary of version 5.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need direct access to the Stripe API without wrapping official native Stripe SDKs.
- You require full support for SCA/PSD2 authentication flows on iOS, Android, and web.
- You want to manage Stripe payment intents and customer sessions.
Skip it when
- You want a fully packaged pre-built UI for adding payment methods (consider flutter_stripe instead).
- You are using backend-only flows that do not require mobile payment gateway integrations.
Strengths
- Complete support for SCA, 3DS, 3DS2, and BankID authentication.
- Direct REST API access with web support.
- Supports Google Pay and Apple Pay through the pay library.
Weaknesses
- Most UI components and screens have been removed in version 5.0.
- Adding payment methods directly through this library may require completing a PCI SAQ-D form.
Setup
- Kind
- Flutter widgets
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 4
Requires intent filters for deep links in AndroidManifest.xml and URL schemes in Info.plist for SCA return URLs.
Stripe.init('pk_xxx', returnUrlForSca: 'stripesdk://3ds.stripesdk.io');
final clientSecret = await server.createPaymentIntent(Stripe.instance.getReturnUrlForSca());
final paymentIntent = await Stripe.instance.confirmPayment(clientSecret, paymentMethodId: 'pm_card_visa');Alternatives
Packages that do the same job and could replace stripe_sdk.
- flutter_stripe
Recommended for adding payment methods to benefit from Stripe's PCI compliance and official bindings.
92Compare - adyen_checkout
If you are using Adyen as your payment gateway instead of Stripe.
86Compare - pay
If you only need standard Apple Pay and Google Pay integration without Stripe-specific SDK logic.
92Compare
Works with
Packages commonly used together with stripe_sdk: ones it builds on, ones built on it, and its own family.
- url_launcherstripe_sdk depends on itFlutter plugin for launching URLs across mobile, desktop, and web platforms.
- webview_flutterstripe_sdk depends on itFlutter plugin that embeds a native WebView widget.
- universal_htmlstripe_sdk depends on itCross‑platform replacement for dart:html with DOM parsing, XML support, and EventSource.