Releases: stripe/stripe-react-native
Releases Β· stripe/stripe-react-native
0.23.1 - 2023-01-25
Fixes
- Fixed an issue with
confirmPlatformPaySetupIntent
on iOS. #1266 - Fixed types so that Klarna accepts the
shippingDetails
property. #1272 - Both
PaymentIntent.Result
andSetupIntent.Result
types now include apaymentMethod
field. This replaces thepaymentMethodId
field, which will be removed in a later release. #1272
Please see the changelog for additional details.
0.23.0 - 2023-01-09
Breaking changes
createPlatformPayPaymentMethod
no longer returns atoken
object. #1236- If your integration depends on Stripe's Tokens API, please use
createPlatformPayToken
, which accepts identical arguments.
- If your integration depends on Stripe's Tokens API, please use
Fixes
- Fixed an issue with
createPlatformPayPaymentMethod
on iOS where a "Canceled" error could be returned in production. #1236 - Fixed an issue where the
PlatformPayButton
withtype={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
Fixes
- Fixed the
ShippingMethod
type to contain theisPending
field instead of atype
field (which previously was never correct). This reflects the inputs accepted. #1227 - Fixed the
ShippingMethod
type to contain thestartDate
andendDate
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
Breaking changes
New features
- Added the
hasPairedAppleWatch
option tocanAddCardToWallet
. #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 returnfalse
with adetails.status
ofMISSING_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 returnfalse
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 returnfalse
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
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 theparams
argument ininitPaymentSheet(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
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
andavailableNetworks
fields to theCardResult
payment method. #1176 - Added support for custom fonts to
CardForm
andCardView
on Android. #1150 - Added support for customizing the call to action button label in Payment Sheet by providing the
primaryButtonLabel
property toinitPaymentSheet()
. #1190
Fixes
- Fixed an issue on iOS where
confirmSetupIntent
would throw an error if theCard
payment method was provided with thepaymentMethodId
parameter. #1151 - Upgraded
stripe-android
to 20.15.+. #1176 - Upgraded
stripe-ios
to 23.1.+. #1190 - Fixed
FinancialConnections.Subcategory
andFinancialConnections.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
andborderRadius
for<CardField />
andCardForm />
was inconsistent across iOS and Android. #1182
Please see the changelog for additional details.
0.19.0 - 2022-09-16
Breaking changes
- To comply with Google's new branding guidelines for the Google Pay button, the
<GooglePayButton />
component'stype
prop now only acceptsstandard
orpay
(pay_shadow
,pay_dark
,standard_shadow
, andstandard_dark
were all removed). It defaults tostandard
. #1135 - Your
compileSdkVersion
(inandroid/build.gradle
) now must be at least 33. Changing yourcompileSdkVersion
does not change runtime behavior.
New features
- Add
returnURL
as an optional parameter tohandleNextAction
. 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.+. Updatedstripe-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
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
Breaking changes
- Your
compileSdkVersion
(inandroid/build.gradle
) now must be at least32
. Changing yourcompileSdkVersion
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
, andcollectFinancialConnectionsAccounts
wouldn't work with Stripe Connect accounts. #1086. - Upgraded
stripe-ios
to 22.7.+ andstripe-android
to 20.9.+.
Please see the changelog for additional details.
0.17.0 - 2022-08-11
Breaking changes
New features
- Added the
collectBankAccountToken
&collectFinancialConnectionsAccounts
functions.
Fixes
- Fixed an issue where
collectBankAccountForPayment
andcollectBankAccountForSetup
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