Skip to content

Releases: stripe/stripe-react-native

0.23.1 - 2023-01-25

25 Jan 22:12
Compare
Choose a tag to compare

Fixes

  • Fixed an issue with confirmPlatformPaySetupIntent on iOS. #1266
  • Fixed types so that Klarna accepts the shippingDetails property. #1272
  • 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. #1272

Please see the changelog for additional details.

0.23.0 - 2023-01-09

09 Jan 21:42
Compare
Choose a tag to compare

Breaking changes

  • createPlatformPayPaymentMethod no longer returns a token object. #1236
    • If your integration depends on Stripe's Tokens API, please use createPlatformPayToken, which accepts identical arguments.

Fixes

  • Fixed an issue with createPlatformPayPaymentMethod on iOS where a "Canceled" error could be returned in production. #1236
  • Fixed an issue where the PlatformPayButton with type={PlatformPay.ButtonType.GooglePayMark} would be unclickable. #1236
  • 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. #1252

Please see the changelog for additional details.

0.22.1 - 2022-12-07

07 Dec 22:26
Compare
Choose a tag to compare

Fixes

  • Fixed the ShippingMethod type to contain the isPending field instead of a type field (which previously was never correct). This reflects the inputs accepted. #1227
  • Fixed the ShippingMethod type to contain the startDate and endDate keys, if applicable. #1227
  • Fixed instances of the "duplicate registered views" error. #1233
  • Fixed extra margin that was being added to <CardForm /> on Android. #1234

Please see the changelog for additional details.

0.22.0 - 2022-12-02

02 Dec 18:34
Compare
Choose a tag to compare

Breaking changes

New features

  • Added the hasPairedAppleWatch option to canAddCardToWallet. #1219
  • 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 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. #1215
  • Fixed an issue on Android where, for certain countries, the postal code would not be enabled but would still be required. #1213
  • 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. #1219

Please see the changelog for additional details.

0.21.0 - 2022-11-15

15 Nov 18:17
Compare
Choose a tag to compare

Breaking changes

New features

  • Added the <AddressSheet /> component, which enables you to collect local and international shipping or billing addresses from your customers with address autocomplete. #1169
  • Added the defaultShippingDetails field to the params argument in initPaymentSheet(params). This will allow you to collect shipping details (either in your own UI or using the new <AddressSheet /> component) for payments in the Payment Sheet. #1169

Fixes

  • Fixed a build error on Android when using Kotlin version 1.7.10. #1195

Please see the changelog for additional details.

0.20.0 - 2022-11-03

03 Nov 18:14
Compare
Choose a tag to compare

Breaking changes

  • This library now supports iOS 13 and up, due to stripe-ios increasing the deployment target. If you would like to build for iOS 12, please continue to use @stripe/[email protected]. #1190

New features

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

Fixes

  • Fixed an issue on iOS where confirmSetupIntent would throw an error if the Card payment method was provided with the paymentMethodId parameter. #1151
  • Upgraded stripe-android to 20.15.+. #1176
  • Upgraded stripe-ios to 23.1.+. #1190
  • Fixed FinancialConnections.Subcategory and FinancialConnections.Permission types to be camel-case instead of snake case. #1176
  • Fixed an issue with Financial Connections on iOS where the app wouldn't properly redirect back after authentication. #1178
  • Fixed borderWidth and borderRadius for <CardField /> and CardForm /> was inconsistent across iOS and Android. #1182

Please see the changelog for additional details.

0.19.0 - 2022-09-16

16 Sep 18:35
Compare
Choose a tag to compare

Breaking changes

  • To comply with Google's new branding guidelines for the Google Pay button, the <GooglePayButton /> component's type prop now only accepts standard or pay (pay_shadow, pay_dark, standard_shadow, and standard_dark were all removed). It defaults to standard. #1135
  • Your compileSdkVersion (in android/build.gradle) now must be at least 33. Changing your compileSdkVersion does not change runtime behavior.

New features

  • Add returnURL as an optional parameter to handleNextAction. Use this so the Stripe SDK can redirect back to your app after authentication. #1104

Fixes

  • Fixed an issue where the error resolved on iOS wasn't the root error. #1105
  • Fix Expo Config Plugin support on SDK 46. #1111
  • Updated stripe-ios from 22.7.+ to 22.8.+. Updated stripe-android from 20.9.+ to 20.12.+. This updates the Google Pay button to match the new brand guidelines. #1135

Please see the changelog for additional details.

0.18.1 - 2022-08-19

19 Aug 17:56
Compare
Choose a tag to compare

Breaking changes

New features

Fixes

  • Fixed an issue where some promises on Android would never resolve when using React Native 0.65.x or under. #1089.

Please see the changelog for additional details.

0.18.0 - 2022-08-17

17 Aug 18:32
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.

New features

  • 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. #1084
  • Payment Sheet now supports Link on iOS. #1086.

Fixes

  • Fixed a bug on Android where collectBankAccountForPayment, collectBankAccountForSetup, collectBankAccountToken, and collectFinancialConnectionsAccounts wouldn't work with Stripe Connect accounts. #1086.
  • Upgraded stripe-ios to 22.7.+ and stripe-android to 20.9.+.

Please see the changelog for additional details.

0.17.0 - 2022-08-11

11 Aug 17:32
Compare
Choose a tag to compare

Breaking changes

New features

Fixes

  • Fixed an issue where collectBankAccountForPayment and collectBankAccountForSetup would fail on Android when using React Native 0.65.x or under. #1059
  • Fixed an issue where Android apps could crash with the error IllegalStateException: Cannot remove Fragment attached to a different FragmentManager. #1054
  • Bumped Gradle from 4.2.2 to 7.1.1. #1058