Skip to content

Releases: flutter-stripe/flutter_stripe

9.2.1

14 Aug 19:41
dcb5856
Compare
Choose a tag to compare

Fixes

  • Move amount value to GooglePayPaymentMethodParams #1255
  • iOS: Apple Pay updatePlatformSheet now pass the errors #1230
  • iOS: Fixes styling parameter for ApplePayButton #1231
  • Android: Fixes bug that to display image in card form #1254
  • Sync with Stripe 0.27.1.

9.2.0

14 Aug 19:39
d114816
Compare
Choose a tag to compare

Features

  • Add BillingDetailsCollectionConfiguration to payment sheet for collecting addresses.
  • Sync with Stripe 0.27.

Fixes

  • Make project compatible with Android gradle plugin 8.0.
  • New google pay button assets in order to comply with Google's new branding guidelines.
  • #1219 use correct value for enum PaymentConfirmationRedirect.ifRequired.
  • Add setting to render the cardfield using the standard AndroidView instead as alternative to the default ExpensiveAndroid view.

9.1.1

14 Aug 19:38
deddf04
Compare
Choose a tag to compare

9.1.1

This release brings a lot of improvments to the web plugin, like later payments using SetupIntents or using tokens.
It also fixes the Apple Pay plugin that comes with new native features like order tracking and discount codes

Deprecated fields

  • The field createdDateTime in TokenData has changed to
    created. It will be removed in later versions

Features

  • Web: Adds support for token endpoints ref
  • Web: Adds support SetupIntents ref
  • Web: Adds possibility to change stripeAccountId for stripe web` ref
  • Web: Fix enum PaymentConfirmationRedirect parsing ref
  • iOS: Fixes Apple Pay flow ref
  • Sync with Stripe 0.26

9.0.0

14 Aug 19:36
Compare
Choose a tag to compare

9.0.0

This release is based on version 0.25.0 of Stripe React Native:

Breaking Changes

  • Renamed the paymentSummaryItems field in initPaymentSheet()'s applePay params to cartItems.

Features

  • Added the supportsTapToPay option to canAddCardToWallet. reference
  • Added the setOrderTracking property to the PlatformPayButton component and the initPaymentSheet method. Use this callback for setting the order details to give users the ability to track and manage their purchases in Wallet. To learn more about order tracking, see Apple’s Wallet Orders documentation. reference
  • Added the buttonType field to initPaymentSheet()'s applePay params. Use this to set the text displayed by the call to action button in the Apple Pay sheet.reference
  • Added the request field to initPaymentSheet()'s, confirmPlatformPayPayment()'s, and confirmPlatformPaySetupIntent's applePay params. Use this to support different types of payment requests, like RecurringPaymentRequest, AutomaticReloadPaymentRequest, and MultiMerchantRequest.reference
  • Added an options argument to presentPaymentSheet which includes a timeout property. reference
  • Added the hasPairedAppleWatch option to canAddCardToWallet. reference
  • Added new functions and a new component to streamline integrating with Apple and Google Pay and add more feature support. See the Migrating to Platform Pay guide for more details. The old Apple and Google Pay APIs are marked as deprecated and will be removed in a future release, but are still supported in this version.

Fixes

  • Fixed an issue on iOS where canAddCardToWallet would always return a details.status of UNSUPPORTED_DEVICE on iPads. reference
  • Fixed an issue on iOS where canAddCardToWallet would always return a {canAddCard: false} if the card in question had been provsioned on the current device, but had not yet been provisioned on a paired Watch. ref
  • Fixed an issue on iOS where the deprecated onDidSetShippingMethod & onDidSetShippingContact events wouldn't be triggered if you were using the useApplePay hook without using the ApplePayButton component. ref
  • Fixed an issue on Android where canAddCardToWallet could result in a null pointer exception on devices without NFC compatibility. ref
  • Fixes a build failure on Android when using stripe-android v20.19.2. ref
  • Fixed a bug on Android where canAddCardToWallet wouldn't correctly return the details.token object. ref
  • Fixed an issue with confirmPlatformPaySetupIntent on iOS. ref
  • Fixed types so that Klarna accepts the shippingDetails property. ref
  • Both PaymentIntent.Result and SetupIntent.Result types now include a paymentMethod field. This replaces the paymentMethodId field, which will be removed in a later release. ref
  • Fixed an issue with createPlatformPayPaymentMethod on iOS where a "Canceled" error could be returned in production. ref
  • Fixed an issue where the PlatformPayButton with type={PlatformPay.ButtonType.GooglePayMark} would be unclickable. ref
  • Fixed an issue on Android where CardField would render without the necessary padding. 48debb2
  • Fixed an issue on iOS where providing a null value to certain method parameters would result in a crash. ref
  • Fixed the ShippingMethod type to contain the isPending field instead of a type field (which previously was never correct). This reflects the inputs accepted. ref
  • Fixed the ShippingMethod type to contain the startDate and endDate keys, if applicable. ref
  • Fixed instances of the "duplicate registered views" error. ref
  • Fixed extra margin that was being added to <CardForm /> on Android. ref
  • Fixed an issue where builds would error with the message 'const' enums are not supported. see commit
  • Fixed an issue where the canAddCardToWallet method would sometimes wrongly return false with a details.status of MISSING_CONFIGURATION in production builds. ref
  • Fixed an issue on Android where, for certain countries, the postal code would not be enabled but would still be required. ref
  • Fixed an issue on iOS where canAddCardToWallet would return false if the card had already been provisioned on a paired device like an Apple Watch, but had not yet been provisioned on the current device, and would also return false if the card had been provisioned on the current device, but not on a paired Apple Watch. ref

Note
This version pulls in a new version of stripe-android that now requires v1.8.0 of the Kotlin Gradle plugin. Refer to this issue for a limited workaround.

8.0.0

23 Feb 19:25
6cdf95e
Compare
Choose a tag to compare

Breaking Changes

  • This library now supports the new Stripe platform pay methods. See: migration guide for more details.

Fixes

  • Fix for #955 and #1081, enable automatic webview closing.
  • Fix #1083 use correct method channel for dangerouslyupdateCard.
  • Several fixes by the Stripe sdk v.0.21.0 , v.0.22.0 and v.0.23.0.
  • FIX: #1083 use correct method channel for dangerouslyupdateCard (#1094).
  • FEAT: scroll to keep card field visible (#1061).

v7.0.0

17 Nov 12:09
7866c4d
Compare
Choose a tag to compare

7.0.0

Breaking Changes

  • This library now supports iOS 13 and up, due to stripe-ios increasing the deployment target

Features

  • Added Link support in Payment Sheet.
  • Added the resetPaymentSheetCustomer method to clear persisted authentication state in the PaymentSheet.
  • Added preferredNetwork and availableNetworks fields to the CardResult payment method.
  • Added support for custom fonts to CardForm and CardView on Android.
  • Added support for customizing the call to action button label in Payment Sheet by providing the primaryButtonLabel property to initPaymentSheet().

Fixes

  • Several fixes by the Stripe sdk v.0.20.0.

v5.0.0

04 Sep 16:52
Compare
Choose a tag to compare

Breaking changes

  • Your compileSdkVersion (in android/build.gradle) now must be at least 32. Changing your compileSdkVersion does not change runtime behavior.

Features

  • Added support for pay_dark and standard_dark to the GooglePayButton component. This allows you to display the dark Google Pay button.
  • Added support for borderColor, borderRadius, and cursorColor to CardForm's cardStyle prop on iOS (already exists on Android).
  • Added the collectBankAccountToken & collectFinancialConnectionsAccounts functions.
  • confirmPayment can now be called with just a client secret (e.g. await confirmPayment("payment-intent-id")), in other words the payment method can be excluded. If the payment method is excluded, it is assumed by the SDK that you have attached the payment method on the server-side during payment intent creation.
  • Payment Sheet now supports Link on iOS. #1086.

Other changes

  • Several fixes by the Stripe sdk v.0.16.0.
  • Several fixes by the Stripe sdk v.0.17.0.
  • Several fixes by the Stripe sdk v.0.18.0.

4.0.0

22 Jul 07:46
6e26f1c
Compare
Choose a tag to compare

4.0.0

** Breaking changes **

  • Added support for iOS 15 paymentSummaryItems: PKDeferredPaymentSummaryItem and PKRecurringPaymentSummaryItem.
    Adding a summary item before was:
 ApplePayCartSummaryItem(
    label: 'Product Test',
    amount: '0.01',
);

Becomes

ApplePayCartSummaryItem.immediate(
  label: 'Product Test',
  amount: '0.01',
);
  • Changed paymentsheet parameters to make it more clear which settings are used for Google Pay and Apple Pay. Changes: merchantCountryCode is now moved into both PaymentSheetApplePayand PaymentSheetGooglePay, currencyCode and testEnv is now part of the PaymentSheetGooglePay object.

  • Added possibility to add ApplePayCartSummaryItem to the paymensheet.

Other changes

  • Support for affirm payment method.
  • Several fixes by the Stripe sdk v.0.15.0.

v3.3.0

11 Jul 09:25
Compare
Choose a tag to compare

What's Changed

  • Added the canAddCardToWallet method.
  • Several fixes by the Stripe sdk v.0.14.0.

Full Changelog: 3.2.0...3.3.0

v3.2.0

30 Jun 16:46
630b439
Compare
Choose a tag to compare
  • Added possibility to create a PII token.
  • Support country code in Cardfield.
  • Added default values to CardformField.
  • Several fixes by the Stripe sdk v.0.13.0.