stripe_smart_checkout 0.1.0 copy "stripe_smart_checkout: ^0.1.0" to clipboard
stripe_smart_checkout: ^0.1.0 copied to clipboard

Modern Flutter package for Stripe Checkout integration with support for one-time payments and subscriptions. Clean architecture, type-safe, cross-platform.

0.1.0 #

Initial Release 🎉 #

Complete Stripe Checkout integration for Flutter with support for both one-time payments and recurring subscriptions.

Features

  • One-Time Payments - Single transaction checkout for products and services
  • Subscriptions - Recurring payments with flexible billing intervals
  • Billing Intervals - Support for daily, weekly, monthly, and yearly billing
  • Free Trials - Optional trial periods for subscriptions
  • Custom Intervals - Bill every N intervals (e.g., quarterly, bi-weekly)
  • Named Constructors - CheckoutItem.payment() and CheckoutItem.subscription()
  • WebView Integration - Embedded Stripe Checkout experience
  • External Browser - Option to open checkout in default browser
  • Comprehensive Error Handling - Specific exception types for different error scenarios
  • Type Safety - Full type safety with proper enums and models
  • Clean Architecture - Separation of concerns with clear layer boundaries
  • Cross-Platform - Works on iOS, Android, Web, macOS, Windows, and Linux
  • Zero Native Code - Pure Dart implementation
  • Test Mode - Easy switching between test and production environments

API

Core Classes
  • StripeCheckoutWidget - Main widget for displaying checkout
  • StripeCheckoutConfig - Configuration for Stripe API keys
  • CheckoutItem - Item class with payment and subscription constructors
  • CheckoutSession - Represents a completed checkout session
  • StripeCheckoutRepository - Repository interface for advanced usage
Enums
  • CheckoutMode - Payment modes (payment, subscription)
  • BillingInterval - Billing frequencies (day, week, month, year)
Exceptions
  • StripeCheckoutException - Base exception class
  • StripePaymentException - Payment-specific errors
  • StripeNetworkException - Network-related errors

Example App

Comprehensive example demonstrating:

  • One-time payment products
  • Subscription plans with trials
  • Dynamic mode detection
  • Success/error handling
  • Clean Architecture with Riverpod

Documentation

  • Complete README with integration guides
  • API reference documentation
  • Usage examples for both payment types
  • Testing guide with test cards
  • Architecture documentation

Breaking Changes: None (initial release)

Migration Guide: N/A (initial release)

1
likes
130
points
149
downloads

Publisher

verified publishersnippetcoder.com

Weekly Downloads

Modern Flutter package for Stripe Checkout integration with support for one-time payments and subscriptions. Clean architecture, type-safe, cross-platform.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

dio, flutter, flutter_riverpod, freezed_annotation, json_annotation, url_launcher, webview_flutter

More

Packages that depend on stripe_smart_checkout