Skip to content
pubscout

flutter_stripe

15.0.0, released 7 days ago by flutterstripe.io

Flutter plugin for Stripe payments with native UI and Payment Sheet support.

WASM-readyUses material_ui
$ flutter pub add flutter_stripe
Source repository

What it does

Provides a Flutter interface to Stripe’s payment platform, including pre‑built UI for card entry, Apple Pay, Google Pay, and 3‑D Secure. Works on Android, iOS, and experimental web builds.

AI-written summary of version 15.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to accept card payments, Apple Pay or Google Pay via Stripe.
  • You want native‑look‑and‑feel payment screens like Payment Sheet.
  • You target Android, iOS and optionally web with a single package.

Skip it when

  • You only need in‑app purchases through App Store/Play Store APIs.
  • You prefer a different payment gateway (e.g., Adyen, PayPal).
  • You need full web‑only Stripe integration without native code.

Strengths

  • Native UI components for Android & iOS
  • Built‑in support for Apple Pay, Google Pay and SCA
  • Handles PCI‑compliant tokenisation automatically
  • Supports web (experimental)

Weaknesses

  • Requires extensive native setup (Android themes, iOS Podfile, proguard)
  • Minimum Flutter 3.47, may be too new for some projects
  • Web support is limited to a subset of features

Setup

Kind
Plugin (native code)
Effort
High
Code generation
No
Direct dependencies
5

Android: use Kotlin 1.8+, AGP 8, AppCompat theme, FlutterFragmentActivity, proguard rules. iOS: set deployment target ≥13, update Podfile, add camera usage keys for card scanning. Web: add flutter_stripe_web dependency and serve with CORS headers (dhttpd).

import 'package:flutter_stripe/flutter_stripe.dart';

Future<void> initStripe() async {
  Stripe.publishableKey = 'pk_test_...';
  await Stripe.instance.applySettings();
}

Future<void> presentPaymentSheet() async {
  await Stripe.instance.initPaymentSheet(
    paymentIntentClientSecret: 'client_secret',
    merchantDisplayName: 'Demo Shop',
  );
  await Stripe.instance.presentPaymentSheet();
}

Alternatives

Packages that do the same job and could replace flutter_stripe.

  • adyen_checkout

    When you prefer the Adyen payment gateway over Stripe.

  • pay

    For a lightweight Google/Apple Pay integration without full Stripe SDK.

Works with

Packages commonly used together with flutter_stripe: ones it builds on, ones built on it, and its own family.