flutter_stripe_web
9.0.0, released 8 days ago by flutterstripe.io
Stripe SDK bindings for the Flutter web platform.
What it does
Provides the web implementation of Stripe's platform interface for Flutter. Allows you to create payment intents, handle payment methods, and use Stripe UI components on web builds.
AI-written summary of version 9.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Stripe payment integration in a Flutter web app
- You want a single package that works with the flutter_stripe platform interface on web
Skip it when
- You require a production‑ready, fully‑stable solution
- You need support for mobile platforms (iOS/Android)
Strengths
- Web‑specific implementation of Stripe SDK
- Keeps API parity with flutter_stripe
- Integrates with Material UI for consistent styling
Weaknesses
- Early‑stage package, may have breaking changes
- Limited to web platform only
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- Yes (build_runner)
- Direct dependencies
- 5
Add flutter_stripe and flutter_stripe_web to pubspec, ensure Flutter 3.47+ and run flutter pub get; configure Stripe publishable key as per flutter_stripe docs
import 'package:flutter_stripe/flutter_stripe.dart';
void main() async {
WidgetsFlutterBinding.ensureInitialized();
Stripe.publishableKey = 'pk_test_...';
await Stripe.instance.applySettings();
runApp(MyApp());
}Alternatives
Packages that do the same job and could replace flutter_stripe_web.
- razorpay_web
Flutter plugin for integrating the Razorpay payment gateway across multiple platforms.
52Compare - phonepe_payment_sdk
A Flutter plugin for PhonePe Payment SDK to integrate payments.
56Compare
Works with
Packages commonly used together with flutter_stripe_web: ones it builds on, ones built on it, and its own family.
- webflutter_stripe_web depends on itLightweight bindings for browser APIs via JS interop
- freezed_annotationflutter_stripe_web depends on itAnnotations for the freezed code-generator.
- material_uiflutter_stripe_web depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- flutter_stripeSame familyFlutter plugin for Stripe payments with native UI and Payment Sheet support.
- stripe_androidSame familyAndroid platform implementation of stripe_platform_interface for Flutter.