stripe_sdk 4.0.0-rc.1 stripe_sdk: ^4.0.0-rc.1 copied to clipboard
The only native Stripe library for Flutter. Has complete support for SCA/PSD2, payment intents and the newest Stripe features.
Stripe SDK Changelog #
4.0.0-rc.1 #
- Refactor, simplify and improve credit card validation in
StripeCard
- Add support for postal code in
AddPaymentMethodScreen
andStripeCard
- Removed experimental status of
AddPaymentMethodScreen
andPaymentMethodsScreen
- List up to 100 payment methods in
PaymentMethodsScreen
, up from 10 - Add support for additional request parameters in
CustomerSession.listPaymentMethods
- Misc UI improvements on
AddPaymentMethodScreen
, e.g proper autofill hints and more. - Add new optional parameter
webReturnPath
to all SCA-capable methods. This allow specifying a custom return_url when compiled for web.
Breaking changes #
This update removes many utility methods that were public, but not strictly related to Stripe or this library. In most cases this will not affect you, but if you relied on any of the removed methods I recommend you copy the methods into your project, or find other replacements.
- Removed many unused and unnecessary methods and constants on
StripeCard
- Removed file
card_utils.dart
and all it's contents.
3.2.0 #
- Add new method:
StripeApi.createSource()
3.1.0 #
CustomerSession
now implementsChangeNotifier
, notifying listeners when the session is ended.CustomerSession
will throw an error if attempted used after the session has ended.- Added
CustomerSession.endSession()
instance method. PaymentMethodStore
will now be cleared, listeners notified and finally disposed when the relatedCustomerSession
is ended.
Deprecated #
CustomerSession.endCustomerSession()
has been deprecated and replaced byCustomerSession.instance.endSession
.
3.0.1+2 #
- Update dependencies
- Fix misc warnings and lint issues
3.0.1+1 #
- Fix lint issues
3.0.1 #
- Fix unhandled exception due to unknown parameter: exp_mont
3.0.0 #
- Added Support for custom decorations in card form
- Updated default stripe api version to
2020-03-02
Breaking changes #
- Removed
Card.toMap()
- Removed support for non-card properties on Card (billing details)
- Rename
confirmSetupIntentWithPaymentMethod
toconfirmSetupIntent
as this is the default, general case. - Rename
confirmSetupIntent
toauthenticateSetupIntent
so it aligns more withauthenticatePaymentIntent
, as they share similar behavior. - Make
returnUrlForSca
a required parameter for Stripe
Removed following deprecated functions and classes
- class: CardNumberFormatter
- constructor: CustomerSession
- Stripe.getReturnUrl
- Stripe.handlePaymentIntent
- Stripe.handleSetupIntent
2.8.2 #
- Updated readme
- Updated uni_links
- Added additional API documentation
- Fixed validation for expiration month
2.8.1 #
Please provide feedback on experimental features and examples.
- Fix misc minor bugs
- Fix misc lint issues
Experimental: PaymentMethodsScreen #
- Major improvements to UI and functionality
- Use a shared cache to avoid loading all payment methods repeatedly
- Create setup intent immediately upon entering add PM screen
Experimental: CheckoutScreen #
- Basic implementation of a checkout screen
Example #
- Misc changes related to PaymentMethodsScreen
- Started example implementation of CheckoutScreen
2.8.0 #
-
Expose StripeApiException and StripeApiError
-
Deprecated Stripe.handlePaymentIntent. Contact me if you used this.
-
Deprecated Stripe.handleSetupIntent. Contact me if you used this.
-
Deprecated
CustomerSession()
constructor. 3.0 will enforce the singleton pattern. -
Removed experimental parameter
nextAction
fromStripe.authenticatePayment()
-
Added
Stripe.authenticatePaymentWithNextAction()
Experimental: PaymentMethodsScreen #
A complete UI screen that lets a user view, delete and add stripe payment methods.
- Slide right to display delete option
- Press
+
to openAddPaymentMethodScreen
Example #
- Re-organize example code
2.7.0 #
-
Use explicit type for CreateSetupIntent return.
-
Added optional [nextAction] parameter to Stripe.authenticatePayment.
-
Make [paymentMethodId] of
Stripe.confirmPayment
optional -
Fix bug which prevented ephemeral keys from refreshing correctly.
Example #
- Add [Customer Details]
- Add [Payments] with automatic and manual confirmation
2.6.0 #
-
Add visual card widget in CardForm
-
Fix misc bugs in CardForm
2.5.3 #
- Add focus handling for CardForm.
- Give card number focus by default.
- Enable tapping "next/arrow" on keyboard to move to next field.
2.5.2 #
-
Added a complete demo application, available in /examples/app.
- Display, add and remove payment methods.
- Add payment methods with and without Setup Intent.
- Quickly test pre-made Stripe test cards, with SCA and more.
-
Made the
StripeApi
instance onStripe
objects public. This avoids having to create a separate StripeApi instance. -
Fixed bug which prevented ephemeral keys from refreshing correctly.
Experimental: #
- Added "AddPaymentMethod" screen, which handles the complete flow of adding a payment card.
- This is still WIP and in beta stage, meaning the API might change.
2.5.1 #
Minor breaking change.
- Rename returnUrlForSCA to returnUrlForSca.
2.5.0 #
- Add support for custom return url scheme
- Update documentation
2.4.5 #
- Add links to complete examples of the stripe SDK and supporting backend.
2.4.4 #
- Fix bug which caused initial expiry date not to be set
- Add runnable example in example/app
2.4.3 #
- Add support for custom text style on card form and form fields
- Added examples for card form and form fields
2.4.2 #
- Allow custom form field error text
- Fix bug where card number input field would allow more than 16 digits
2.4.1 #
- Add support for custom input decorators on card form and form fields
2.4.0 #
-
Minor breaking change: Split package into two separate sub-libraries:
- stripe_sdk: API related functionality
- stripe_sdk_ui: UI widgets and utilities
-
Replaced ListView with Column inside the CardForm
-
Updated dependencies
2.3.0 #
- Add CardForm widget, which can be used to add or edit credit cards.
- Complete validation for card number, expiration date and CVC
- Individual FormField widgets can be used to create a custom form
- Fix bug in Stripe.authenticatePayment
2.2.0 #
- Add support for connected accounts
- Add optional constructor parameter
stripeAccount
for all APIs
- Add optional constructor parameter
2.1.1 #
- Remove unused stripeAccount property on
StripeApi
2.1.0 #
- Add Stripe.confirmSetupIntentWithPaymentMethod
2.0.0 #
- Rewrite of internal API
- Fixed several issues and bugs
- Restructured public API with breaking changes
- Split
Stripe
intoStripeApi
andStripe
- SCA related features moved to
Stripe
- Moved basic Stripe API requests to
StripeApi
- Split
See README and examples for further details details.
1.1.1 #
- Misc minor updates and fixes
1.1.0 #
- Complete support for SetupIntent with SCA
- Fix bug with confirmPayment
- Internal refactoring
1.0.1 #
- Support multiple simultaneous authentication flows
- Improve documentation and examples
- Allow specifying apiVersion for CustomerSession
- Allow multiple instances of Stripe and CustomerSession
1.0.0+1 #
- Improve examples
1.0.0 #
- Improve API for SCA-related features
- Improve examples
0.0.2 #
- Remove typed models
- Add some support for payment intents
- Complete support for payment methods
- Complete support for tokens
- Add examples
- Major cleanup
0.0.1+2 #
- Add analysis_options.yaml
- Fix dartanalyzer issues
- Fix other misc packaging issues
0.0.1+1 #
- Initial release