stripe_smart_checkout 0.1.0
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()andCheckoutItem.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 checkoutStripeCheckoutConfig- Configuration for Stripe API keysCheckoutItem- Item class with payment and subscription constructorsCheckoutSession- Represents a completed checkout sessionStripeCheckoutRepository- Repository interface for advanced usage
Enums
CheckoutMode- Payment modes (payment, subscription)BillingInterval- Billing frequencies (day, week, month, year)
Exceptions
StripeCheckoutException- Base exception classStripePaymentException- Payment-specific errorsStripeNetworkException- 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)