@stripe/stripe-react-native 0.52.0 → 0.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/android/.idea/caches/deviceStreaming.xml +835 -0
  2. package/android/.idea/compiler.xml +6 -0
  3. package/android/.idea/gradle.xml +19 -0
  4. package/android/.idea/migrations.xml +10 -0
  5. package/android/.idea/misc.xml +10 -0
  6. package/android/.idea/runConfigurations.xml +17 -0
  7. package/android/.idea/vcs.xml +6 -0
  8. package/android/gradle.properties +1 -1
  9. package/android/local.properties +8 -0
  10. package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementView.kt +48 -25
  11. package/android/src/main/java/com/reactnativestripesdk/EmbeddedPaymentElementViewManager.kt +2 -0
  12. package/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +1 -0
  13. package/android/src/main/java/com/reactnativestripesdk/StripeSdkModule.kt +8 -0
  14. package/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +1 -0
  15. package/android/src/oldarch/java/com/reactnativestripesdk/NativeStripeSdkModuleSpec.java +4 -0
  16. package/ios/StripeSdk.mm +7 -0
  17. package/ios/StripeSdkImpl.swift +11 -0
  18. package/lib/commonjs/components/AddToWalletButton.js +1 -1
  19. package/lib/commonjs/components/AddToWalletButton.js.map +1 -1
  20. package/lib/commonjs/components/AddressSheet.js +1 -1
  21. package/lib/commonjs/components/AddressSheet.js.map +1 -1
  22. package/lib/commonjs/components/AuBECSDebitForm.js +1 -1
  23. package/lib/commonjs/components/AuBECSDebitForm.js.map +1 -1
  24. package/lib/commonjs/components/CardField.js +1 -1
  25. package/lib/commonjs/components/CardField.js.map +1 -1
  26. package/lib/commonjs/components/CardForm.js +1 -1
  27. package/lib/commonjs/components/CardForm.js.map +1 -1
  28. package/lib/commonjs/components/PlatformPayButton.js +1 -1
  29. package/lib/commonjs/components/PlatformPayButton.js.map +1 -1
  30. package/lib/commonjs/components/StripeContainer.js +1 -1
  31. package/lib/commonjs/components/StripeContainer.js.map +1 -1
  32. package/lib/commonjs/components/StripeProvider.js +1 -1
  33. package/lib/commonjs/components/StripeProvider.js.map +1 -1
  34. package/lib/commonjs/functions.js +1 -1
  35. package/lib/commonjs/functions.js.map +1 -1
  36. package/lib/commonjs/specs/NativeStripeSdkModule.js.map +1 -1
  37. package/lib/commonjs/types/EmbeddedPaymentElement.js +1 -1
  38. package/lib/commonjs/types/EmbeddedPaymentElement.js.map +1 -1
  39. package/lib/commonjs/types/PlatformPay.js.map +1 -1
  40. package/lib/module/components/AddToWalletButton.js +1 -1
  41. package/lib/module/components/AddToWalletButton.js.map +1 -1
  42. package/lib/module/components/AddressSheet.js +1 -1
  43. package/lib/module/components/AddressSheet.js.map +1 -1
  44. package/lib/module/components/AuBECSDebitForm.js +1 -1
  45. package/lib/module/components/AuBECSDebitForm.js.map +1 -1
  46. package/lib/module/components/CardField.js +1 -1
  47. package/lib/module/components/CardField.js.map +1 -1
  48. package/lib/module/components/CardForm.js +1 -1
  49. package/lib/module/components/CardForm.js.map +1 -1
  50. package/lib/module/components/PlatformPayButton.js +1 -1
  51. package/lib/module/components/PlatformPayButton.js.map +1 -1
  52. package/lib/module/components/StripeContainer.js +1 -1
  53. package/lib/module/components/StripeContainer.js.map +1 -1
  54. package/lib/module/components/StripeProvider.js +1 -1
  55. package/lib/module/components/StripeProvider.js.map +1 -1
  56. package/lib/module/functions.js +1 -1
  57. package/lib/module/functions.js.map +1 -1
  58. package/lib/module/specs/NativeStripeSdkModule.js.map +1 -1
  59. package/lib/module/types/EmbeddedPaymentElement.js +1 -1
  60. package/lib/module/types/EmbeddedPaymentElement.js.map +1 -1
  61. package/lib/module/types/PlatformPay.js.map +1 -1
  62. package/lib/typescript/src/components/StripeProvider.d.ts.map +1 -1
  63. package/lib/typescript/src/functions.d.ts +1 -0
  64. package/lib/typescript/src/functions.d.ts.map +1 -1
  65. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts +1 -0
  66. package/lib/typescript/src/specs/NativeStripeSdkModule.d.ts.map +1 -1
  67. package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts +1 -0
  68. package/lib/typescript/src/types/EmbeddedPaymentElement.d.ts.map +1 -1
  69. package/lib/typescript/src/types/PlatformPay.d.ts +7 -1
  70. package/lib/typescript/src/types/PlatformPay.d.ts.map +1 -1
  71. package/package.json +20 -1
  72. package/src/components/StripeProvider.tsx +24 -20
  73. package/src/functions.ts +11 -0
  74. package/src/specs/NativeStripeSdkModule.ts +2 -0
  75. package/src/types/EmbeddedPaymentElement.tsx +7 -0
  76. package/src/types/PlatformPay.ts +7 -1
  77. package/.clang-format +0 -90
  78. package/.editorconfig +0 -18
  79. package/.husky/pre-commit +0 -1
  80. package/CHANGELOG.md +0 -931
  81. package/CLAUDE.md +0 -148
  82. package/package-lock.json +0 -14114
  83. package/patches/README.md +0 -55
  84. package/patches/old-arch-codegen-fix.patch +0 -91
package/CHANGELOG.md DELETED
@@ -1,931 +0,0 @@
1
- # CHANGELOG
2
-
3
- ## 0.52.0 - 2025-09-08
4
- **Features**
5
- - [#2079](https://github.com/stripe/stripe-react-native/pull/2079) Added support to differentiate between a user closing FlowController and selecting a payment option
6
-
7
- **Fixes**
8
- - [#2092](https://github.com/stripe/stripe-react-native/pull/2092) Fix Android crash in release mode when using the new architecture.
9
-
10
- ## 0.51.0 - 2025-08-20
11
-
12
- **Features**
13
- - [#1956](https://github.com/stripe/stripe-react-native/pull/1956) Added support for the Billie payment method
14
- - Added `image` and `mandateHTML` to `EmbeddedPaymentElement.PaymentOptionDisplayData`
15
- - Added `embeddedViewDisplaysMandateText` to `EmbeddedPaymentElementConfiguration`
16
-
17
- **Changes**
18
- - Klarna: Made `billingDetails.email` and `billingDetails.address.country` optional when creating Klarna payment methods. See Stripe docs: [Migrate Klarna from Sources – Field mapping reference](https://docs.stripe.com/payments/klarna/migrate) ("Not required when using the Payment Element. It’s collected automatically.").
19
-
20
- **Fixes**
21
- - Fixed iOS crash "Stripe SDK confirmPayment must not be null" when calling `confirmPayment` with optional parameters. Updated native bridge to properly handle nullable params argument. [#2048](https://github.com/stripe/stripe-react-native/issues/2048)
22
-
23
- ## 0.50.3 - 2025-08-07
24
-
25
- **Fixed**
26
- - Fixed Android crash when using `RowSelectionBehavior.ImmediateAction` with `FormSheetAction.Confirm` in EmbeddedPaymentElement.
27
-
28
- ## 0.50.2 - 2025-08-06
29
-
30
- **Changes**
31
- - Renamed `RowStyle.FlatWithChevron` to `RowStyle.FlatWithDisclosure` and updated related interfaces (`ChevronConfig` → `DisclosureConfig`).
32
- - Updated `stripe-ios` to 24.19.0
33
- - Updated `stripe-android` to 21.22.+
34
- - Added `successBackgroundColor` and `successTextColor` properties to `PrimaryButtonColorConfig` for customizing the primary button appearance in success states.
35
-
36
- **Fixes**
37
- - Fixed missing `onCustomPaymentMethodConfirmHandlerCallback` in old architecture codegen patch. This resolves pod install failures when using React Native 0.74+ with old architecture and custom payment methods.
38
- - Fixes an issue where saved payment methods weren't auto selected when using `EmbeddedPaymentElement` on Android.
39
-
40
- ## 0.50.1 - 2025-07-22
41
-
42
- **Fixes**
43
- - Fixed embedded payment element color support to accept both single color strings and light/dark color objects for `ThemedColor` properties (separatorColor, selectedColor, unselectedColor, checkmark color, chevron color).
44
- - Fixed Android crash when providing partial `billingDetailsCollectionConfiguration` objects. Now gracefully handles missing fields like `attachDefaultsToPaymentMethod` by using safe accessor methods with default values.
45
- - Fixed Android Kotlin compilation errors where nullable `ReadableMap?` was passed to functions expecting non-nullable `ReadableMap`. Added null checks in `EmbeddedPaymentElementViewManager` and `AddToWalletButtonManager`. [#1988](https://github.com/stripe/stripe-react-native/issues/1988)
46
-
47
- ## 0.50.0 - 2025-07-17
48
-
49
- **Features**
50
- - Added support for Custom Payment Methods in PaymentSheet and Embedded Payment Element.
51
-
52
- **Fixes**
53
- - Removed Sofort from playground pages. Sofort is no longer support by Stripe.
54
- - **Patches**
55
- - Fixed codegen error when using React Native 0.74+ with old architecture by converting EventEmitter properties to callback functions in TurboModule interface. [#1977](https://github.com/stripe/stripe-react-native/issues/1977). See `patches/README.md` for more info.
56
-
57
- ## 0.49.0 - 2025-07-02
58
-
59
- **Features**
60
- - Added rowSelectionBehavior to `EmbeddedPaymentElementConfiguration` with `immediateAction` option
61
- - Added `flatWithChevron` to `AppearanceParams.embeddedPaymentElement.rowConfig.style`
62
- - Added `PaymentMethodOptions` to `PaymentMode` to enable setting payment method level setup future usage value
63
- - Added `None` to `FutureUsage`
64
-
65
- ## 0.48.0 - 2025-06-11
66
-
67
- **Feature**
68
- - Added `height` to `PrimaryButtonConfig.shapes`.
69
- - Added `formInsetValues` to `AppearanceParams`.
70
-
71
- ## 0.47.1 - 2025-05-29
72
-
73
- **Fixes**
74
- - Fixed EmbeddedPaymentElement unable to present view controllers after navigating back and forth between screens.
75
- - Fixed EmbeddedPaymentElement not sizing correctly on Android when the user has saved payment methods.
76
-
77
- ## 0.47.0 - 2025-05-21
78
-
79
- **Features**
80
- - Added `customerEphemeralKeySecret` and `customerSessionClientSecret` to EmbeddedPaymentElement
81
-
82
- ## 0.46.0 - 2025-05-08
83
-
84
- **Features**
85
- - Added support for the Embedded Payment Element. Learn more by visiting the [docs](https://docs.stripe.com/payments/mobile/embedded).
86
-
87
- ## 0.45.0 - 2025-04-29
88
-
89
- ** Features **
90
- - Support for the New Architecture in React Native v0.68 or later.
91
- - Ability to update saved cards when using CustomerSessions (private preview)
92
-
93
- **Fixes**
94
- - Updated `stripe-ios` to 24.12.\*
95
- - Updated `stripe-android` to 21.12.\*
96
-
97
- ## 0.44.0 - 2025-04-15
98
-
99
- **Features**
100
-
101
- - Added `LinkParams` to allow control over Link in PaymentSheet.
102
-
103
- **Fixes**
104
-
105
- - Updated `stripe-ios` to 24.11.\*
106
- - Updated `stripe-android` to 21.10.\*
107
- - Fixed an issue where launching a Financial Connections flow would fail on Android.
108
-
109
- ## 0.43.0 - 2025-03-11
110
-
111
- **Features**
112
-
113
- - Financial Connections now supports dark mode, and will automatically adapt to the device's theme. [Learn more](https://docs.stripe.com/financial-connections/other-data-powered-products?platform=react-native#connections-customize-react-native) about configuring appearance settings.
114
- - Added card brand filtering to PaymentSheet and CustomerSheet to specify allowed or blocked card brands. [1857](https://github.com/stripe/stripe-react-native/pull/1857)
115
-
116
- **Fixes**
117
-
118
- - Updated `stripe-ios` to 24.7.\*
119
- - Updated `stripe-android` to 21.6.\*
120
- - Supports React Native 0.78
121
- - Compatible with new architecture when bridgeless mode is disabled
122
-
123
- ## 0.42.0 - 2025-02-25
124
-
125
- **Features**
126
-
127
- - Added ability to pass an `onEvent` listener to Financial Connections methods via a `params` argument. This includes the following methods, both when used directly or via `useStripe` or `useFinancialConnectionsSheet`:
128
- - `collectBankAccountForPayment`
129
- - `collectBankAccountForSetup`
130
- - `collectBankAccountToken`
131
- - `collectFinancialConnectionsAccounts`
132
- - Added ability to pass `metadata` to `PaymentMethod.ConfirmParams` and `PaymentMethod.CreateParams`
133
-
134
- ## 0.41.0 - 2024-12-19
135
-
136
- **Fixes**
137
-
138
- - Updated `stripe-ios` to 24.2.\*
139
-
140
- ## 0.40.0 - 2024-11-19
141
-
142
- **Breaking changes**
143
-
144
- - Removed support for FPX payments via the bank picker UI. If you'd like to accept FPX payments, we recommend using [Mobile Payment Element](https://docs.stripe.com/payments/accept-a-payment?platform=react-native). Also see the [FPX Payment guide](https://docs.stripe.com/payments/fpx/accept-a-payment?web-or-mobile=mobile) for more info on how to integrate FPX specifically.
145
-
146
- **Features**
147
-
148
- - `CustomerSheet` is now generally available!
149
- - If you were using `CustomerSheetBeta`, change that to `CustomerSheet`.
150
- - If you were using `CustomerSheetBeta.CustomerSheet`, change that to `CustomerSheet.Component`
151
- - Enabled vertical mode
152
-
153
- ## 0.39.0 - 2024-10-15
154
-
155
- **Features**
156
-
157
- - Adds support for CustomerSession in private beta [1744](https://github.com/stripe/stripe-react-native/pull/1744)
158
- - Added `onBehalfOf` prop to CardField
159
-
160
- **Fixes**
161
-
162
- - Updated `stripe-ios` to 23.30.\*
163
- - Updated `stripe-android` to 20.52.\*
164
-
165
- ## 0.38.6 - 2024-09-04
166
-
167
- **Fixes**
168
-
169
- - Fixed build errors on Android when using React Native 0.75.x
170
-
171
- ## 0.38.4 - 2024-08-02
172
-
173
- **Fixes**
174
-
175
- - Fixed an issue on Android where `allowsRemovalOfLastSavedPaymentMethod` would default to `false` if not provided.
176
-
177
- ## 0.38.3 - 2024-07-22
178
-
179
- **Fixes**
180
-
181
- - Fixed an issue on Android where `CustomerSheet` could get stuck in an error state after forwarding an error to the `intentCreationCallback`.
182
-
183
- ## 0.38.2 - 2024-07-19
184
-
185
- **Fixes**
186
-
187
- - Updated `stripe-ios` to 23.28.\*
188
- - Updated `stripe-android` to 20.48.\*
189
-
190
- ## 0.38.1 - 2024-06-28
191
-
192
- **Fixes**
193
-
194
- - Fixed `preferredNetworks` prop on CardForm on iOS not always being applied
195
- - Updated `stripe-android` to 20.47.3
196
-
197
- ## 0.38.0 - 2024-05-24
198
-
199
- **Features**
200
-
201
- - Adds support for `paymentMethodOrder` in PaymentSheet, which provides client side sorting of payment methods.
202
- - Updated `stripe-android` to 20.44.\*
203
-
204
- ## 0.37.3 - 2024-04-19
205
-
206
- **Fixes**
207
-
208
- - Fixed an issue with generating App Privacy reports.
209
- - Updated `stripe-ios` to 23.27.\*
210
- - Updated `stripe-android` to 20.41.\*
211
-
212
- ## 0.37.2 - 2024-04-02
213
-
214
- **Fixes**
215
-
216
- - Updated `stripe-ios` to 23.26.\*
217
- - Updated `stripe-android` to 20.40.\*
218
-
219
- ## 0.37.1 - 2024-03-15
220
-
221
- **Fixes**
222
-
223
- - Updated `stripe-ios` to 23.25.\*
224
- - Updated `stripe-android` to 20.39.\*
225
-
226
- ## 0.37.0 - 2024-02-16
227
-
228
- **Breaking changes**
229
-
230
- - Your `compileSdkVersion` (in `android/build.gradle`) now must be at least 34. Changing your `compileSdkVersion` does not change runtime behavior.
231
-
232
- **Fixes**
233
-
234
- - Fixed an issue on Android where the SDK was unable to follow URL redirects in some cases.
235
- - Fixed an issue on Android where Google Pay & Link were not saved as default payment methods in PaymentSheet.
236
-
237
- ## 0.36.0 - 2024-02-02
238
-
239
- **Features**
240
-
241
- - Use `preferredNetworks` on `CardField`, `CardForm`, `CustomerSheet`, and `PaymentSheet` to set the list of preferred networks that should be used to process payments made with a co-branded card.
242
- - Set the Google Pay button type that is used in PaymentSheet with the `googlePay.buttonType` parameter.
243
-
244
- **Fixes**
245
-
246
- - Fixed an issue on Android where `CardField`'s `placeholderColor` wasn't being applied to the card brand icon.
247
-
248
- ## 0.35.1 - 2024-01-16 (📌 Expo SDK 50)
249
-
250
- **Fixes**
251
-
252
- - Fixed a build error on Android when using React Native 0.73.0 and higher [#1579](https://github.com/stripe/stripe-react-native/pull/1579)
253
- - Fixed the test mock for `useStripe` [#1559](https://github.com/stripe/stripe-react-native/pull/1559)
254
- - Fixed a build error on Android that would only occur when using the `nx` build tool [#1586](https://github.com/stripe/stripe-react-native/pull/1586)
255
-
256
- ## 0.35.0 - 2023-11-02
257
-
258
- **Features**
259
-
260
- - Added support for RevolutPay bindings
261
-
262
- ## 0.34.0 - 2023-10-25
263
-
264
- **Features**
265
-
266
- - Added new `presentationStyle` options for CustomerSheet and AddressSheet. [#1515](https://github.com/stripe/stripe-react-native/pull/1515)
267
- - Support `PlatformPayButton`'s `appearance` and `borderRadius` props on Android. [#1534](https://github.com/stripe/stripe-react-native/pull/1534)
268
- - PaymentSheet now supports Swish for PaymentIntents in private beta [#1542](https://github.com/stripe/stripe-react-native/pull/1542)
269
- - PaymentSheet now supports saved payment method support for SEPA family payment methods [#1542](https://github.com/stripe/stripe-react-native/pull/1542)
270
-
271
- **Fixes**
272
-
273
- - Fixed an issue on Android where apps could crash when launching Google Pay
274
- - Fixed an issue on Android where `street` in `shippingContact` for PlatformPay methods would include `null` in the string
275
- - Fixed an issue on Android where `phoneNumber` in `ShippingContact` for PlatformPay methods would be `null`
276
- - Removed XML asset files, library size reduced. [#1534](https://github.com/stripe/stripe-react-native/pull/1534)
277
-
278
- ## 0.33.0 - 2023-09-22
279
-
280
- **Features**
281
-
282
- - Added the `amount` and `label` params to `initPaymentSheet`'s `googlePay` field configuration. Use this to diplay the amount for setup intents.
283
- - Added the `amount` and `label` params `createPlatformPayPaymentMethod`, `confirmPlatformPayPayment`, and `confirmPlatformPaySetupIntent`.
284
- - PaymentSheet now supports the following payment methods on both iOS and Android (previously some of the following were iOS only) for SetupIntents and PaymentIntents with setup for future usage:
285
- - Alipay
286
- - BECS Direct Debit
287
- - Cash App Pay
288
- - iDEAL
289
- - SEPA
290
- - Sofort
291
- - Bancontact
292
- - BLIK
293
- - Boleto
294
- - Revolut Pay
295
- - OXXO (PaymentIntents only)
296
- - Konbini (PaymentIntents only)
297
- - PaymentSheet now supports the following payment methods on iOS only for SetupIntents and PaymentIntents with setup for future usage:
298
- - PayNow
299
- - PromptPay
300
-
301
- **Fixes**
302
-
303
- - Fixed an issue on iOS where the value for the `paymentMethod` field on the returned `paymentIntent` object from `confirmPlatformPayPayment` and the returned `setupIntent` object from `confirmPlatformPaySetupIntent` would be null.
304
-
305
- ## 0.32.0 - 2023-09-15
306
-
307
- **Features**
308
-
309
- - `createPlatformPayPaymentMethod` and `createPlatformPayToken` now also include an optional `shippingContact` field in their results. [#1500](https://github.com/stripe/stripe-react-native/pull/1500)
310
- - Added the `removeSavedPaymentMethodMessage` field to `initPaymentSheet` to display a custom message when a saved payment method is removed. iOS Only. [#1498](https://github.com/stripe/stripe-react-native/pull/1498)
311
-
312
- **Fixes**
313
-
314
- - Fixed an issue on iOS where recollecting the CVC wouldn't work correctly. [#1501](https://github.com/stripe/stripe-react-native/pull/1501)
315
-
316
- ## 0.31.1 - 2023-09-08
317
-
318
- **Features**
319
-
320
- - **[BETA]** Added [CustomerSheet](https://stripe.com/docs/elements/customer-sheet?platform=react-native) API, a prebuilt UI component that lets your customers manage their saved payment methods. [#1491](https://github.com/stripe/stripe-react-native/pull/1491)
321
- - [PaymentSheet] Added support for AmazonPay (private beta), BLIK (iOS only), GrabPay, and FPX with PaymentIntents. [#1491](https://github.com/stripe/stripe-react-native/pull/1491)
322
-
323
- **Fixes**
324
-
325
- - Fixed font scaling on Android PaymentSheet not respecting floating-point number values. [#1469](https://github.com/stripe/stripe-react-native/pull/1469)
326
-
327
- ## 0.30.0 - 2023-08-04
328
-
329
- **Features**
330
-
331
- - Added the `handleNextActionForSetup` method. This can be used exactly like `handleNextAction`, except with [SetupIntents](https://stripe.com/docs/api/setup_intents). [#1440](https://github.com/stripe/stripe-react-native/pull/1440)
332
- - `canAddCardToWallet` now returns the `fpanLastFour` and `dpanLastFour` in the `GooglePayCardToken` type. The `cardLastFour` field (which is now superseded by `fpanLastFour`) is deprecated.
333
-
334
- **Fixes**
335
-
336
- - Fixed an error on Android where `AddressSheet` would throw an error if submitted with the keyboard open. [#1462](https://github.com/stripe/stripe-react-native/pull/1462)
337
- - Fixed an issue where `state` was not included in the returned PaymentIntent's `shippingDetails` on iOS. [#1465](https://github.com/stripe/stripe-react-native/pull/1465)
338
- - Fixed an error where `usePaymentSheet` could cause infinite reloads. [#1439](https://github.com/stripe/stripe-react-native/pull/1439)'
339
-
340
- ## 0.29.0 - 2023-07-13
341
-
342
- **Breaking changes**
343
-
344
- - The Apple Pay and Google Pay APIs, which are deprecated and were replaced with the [Platform Pay API](https://github.com/stripe/stripe-react-native/blob/master/docs/Platform-Pay-Migration.md) last year, have been removed. [#1424](https://github.com/stripe/stripe-react-native/pull/1424)
345
-
346
- **Features**
347
-
348
- - You can now collect payment details before creating a `PaymentIntent` or `SetupIntent`. See [our docs](https://stripe.com/docs/payments/accept-a-payment-deferred?platform=react-native) for more info. This integration also allows you to [confirm the Intent on the server](https://stripe.com/docs/payments/finalize-payments-on-the-server?platform=react-native). [#1424](https://github.com/stripe/stripe-react-native/pull/1424)
349
-
350
- **Fixes**
351
-
352
- - Fixes `handleURLCallback` to only take action on iOS, no-op on Android. [#1423](https://github.com/stripe/stripe-react-native/pull/1423)
353
-
354
- ## 0.28.0 - 2023-06-16 (📌 Expo SDK 49)
355
-
356
- **Features**
357
-
358
- - Added a `disabled` prop to `CardField` and `CardForm` which applies a disabled state such that user input is not accepted. [#1403](https://github.com/stripe/stripe-react-native/pull/1403)
359
-
360
- **Fixes**
361
-
362
- - Fixed an instance on Android where `collectBankAccountToken` or `collectFinancialConnectionsAccounts` could result in a fatal error. [#1401](https://github.com/stripe/stripe-react-native/pull/1401)
363
- - Resolve with better error objects on iOS in `confirmPaymentSheetPayment`, `createTokenForCVCUpdate`, `createPaymentMethod`, `retrievePaymentIntent`, and `retrieveSetupIntent` [#1399](https://github.com/stripe/stripe-react-native/pull/1399)
364
-
365
- ## 0.27.2 - 2023-05-15
366
-
367
- **Fixes**
368
-
369
- - Updated `stripe-android` from 20.24.0 to 20.25.+ [#1384](https://github.com/stripe/stripe-react-native/pull/1384)
370
- - Updated `stripe-ios` from 23.7.+ to 23.8.+ [#1384](https://github.com/stripe/stripe-react-native/pull/1384)
371
-
372
- ## 0.27.1 - 2023-05-03
373
-
374
- > Note: [Xcode 13 is no longer supported by Apple](https://developer.apple.com/news/upcoming-requirements/). Please upgrade to Xcode 14.1 or later.
375
-
376
- **Fixes**
377
-
378
- - Fixed the type of `created` on `Token.Result` on Android (was a number, should be a string). [#1369](https://github.com/stripe/stripe-react-native/pull/1369)
379
- - Fixed `AddToWalletButton` not properly resolving the `androidAssetSource` in release mode. [#1373](https://github.com/stripe/stripe-react-native/pull/1373)
380
- - Fixed `isPlatformPaySupported` not respecting `existingPaymentMethodRequired` or `testEnv` on Android. [#1374](https://github.com/stripe/stripe-react-native/pull/1374)
381
-
382
- ## 0.27.0 - 2023-04-21
383
-
384
- **Features**
385
-
386
- - Added `billingDetailsCollectionConfiguration` to `initPaymentSheet` parameters. Use this to configure the collection of email, phone, name, or address in the Payment Sheet. [See the docs here](https://stripe.com/docs/payments/accept-a-payment?platform=react-native&ui=payment-sheet#collect-billing-details) [#1361](https://github.com/stripe/stripe-react-native/pull/1361)
387
-
388
- **Fixes**
389
-
390
- - Updated Google Pay button asset to match Google's most recent branding guidelines. [#1343](https://github.com/stripe/stripe-react-native/pull/1343)
391
- - Fixed type for `ApplePay.ShippingContact.phoneNumber`. [#1349](https://github.com/stripe/stripe-react-native/pull/1349)
392
- - Fixed `CardResult` type to include `threeDSecureUsage`. [#1347](https://github.com/stripe/stripe-react-native/pull/1347)
393
-
394
- ## 0.26.0 - 2023-03-16
395
-
396
- **Features**
397
-
398
- - Added support for PayPal and CashApp to PaymentSheet, `confirmPayment`, and `confirmSetupIntent`. [#1331](https://github.com/stripe/stripe-react-native/pull/1331)
399
-
400
- **Fixes**
401
-
402
- - Compatible with v0.1.4 of `@stripe/stripe-identity-react-native`. [8fa8a7a](https://github.com/stripe/stripe-react-native/commit/8fa8a7a0595a31d7422af6bbe26d696ba5e211f7)
403
-
404
- ## 0.25.0 - 2023-02-27
405
-
406
- **Features**
407
-
408
- - Added the `supportsTapToPay` option to `canAddCardToWallet`. [#1308](https://github.com/stripe/stripe-react-native/pull/1308)
409
-
410
- **Fixes**
411
-
412
- - Fixed an issue on iOS where `canAddCardToWallet` would always return a `details.status` of `UNSUPPORTED_DEVICE` on iPads. [#1305](https://github.com/stripe/stripe-react-native/pull/1305)
413
- - 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. [#1305](https://github.com/stripe/stripe-react-native/pull/1305)
414
- - 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. [#1298](https://github.com/stripe/stripe-react-native/pull/1298)
415
- - Fixed an issue on Android where `canAddCardToWallet` could result in a null pointer exception on devices without NFC compatibility. [#1308](https://github.com/stripe/stripe-react-native/pull/1308)
416
-
417
- ## 0.24.0 - 2023-02-17
418
-
419
- **Breaking changes**
420
-
421
- - [#1248](https://github.com/stripe/stripe-react-native/pull/1248) Renamed the `paymentSummaryItems` field in `initPaymentSheet()`'s `applePay` params to `cartItems`. So your change will look like this:
422
-
423
- ```diff
424
- initPaymentSheet({
425
- ...
426
- applePay: {
427
- - paymentSummaryItems: [
428
- + cartItems: [
429
- }
430
- ...
431
- })
432
- ```
433
-
434
- **Features**
435
-
436
- - 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](https://developer.apple.com/documentation/walletorders). [#1248](https://github.com/stripe/stripe-react-native/pull/1248)
437
- - 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.[#1248](https://github.com/stripe/stripe-react-native/pull/1248)
438
- - 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`.[#1248](https://github.com/stripe/stripe-react-native/pull/1248)
439
- - Added an `options` argument to `presentPaymentSheet` which includes a `timeout` property. [#1287](https://github.com/stripe/stripe-react-native/pull/1287)
440
-
441
- ## 0.23.3 - 2023-02-07 (📌 Expo SDK 48)
442
-
443
- **Fixes**
444
-
445
- - Fixes a build failure on Android when using `stripe-android` v20.19.2. [#1289](https://github.com/stripe/stripe-react-native/pull/1289)
446
-
447
- ## 0.23.2 - 2023-02-06
448
-
449
- **Fixes**
450
-
451
- - Fixed a bug on Android where `canAddCardToWallet` wouldn't correctly return the `details.token` object. [#1282](https://github.com/stripe/stripe-react-native/pull/1282)
452
-
453
- ## 0.23.1 - 2023-01-25
454
-
455
- > **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](https://github.com/stripe/stripe-react-native/issues/1294#issuecomment-1426150258).
456
-
457
- **Fixes**
458
-
459
- - Fixed an issue with `confirmPlatformPaySetupIntent` on iOS. [#1266](https://github.com/stripe/stripe-react-native/pull/1266)
460
- - Fixed types so that Klarna accepts the `shippingDetails` property. [#1272](https://github.com/stripe/stripe-react-native/pull/1272)
461
- - Both [`PaymentIntent.Result`](https://stripe.dev/stripe-react-native/api-reference/interfaces/PaymentIntent.Result.html) and [`SetupIntent.Result`](https://stripe.dev/stripe-react-native/api-reference/interfaces/SetupIntent.Result.html) types now include a `paymentMethod` field. This replaces the `paymentMethodId` field, which will be removed in a later release. [#1272](https://github.com/stripe/stripe-react-native/pull/1272)
462
-
463
- ## 0.23.0 - 2023-01-09
464
-
465
- **Breaking changes**
466
-
467
- - `createPlatformPayPaymentMethod` no longer returns a `token` object. [#1236](https://github.com/stripe/stripe-react-native/issues/1236)
468
- - If your integration depends on Stripe's Tokens API, please use `createPlatformPayToken`, which accepts identical arguments.
469
-
470
- **Fixes**
471
-
472
- - Fixed an issue with `createPlatformPayPaymentMethod` on iOS where a "Canceled" error could be returned in production. [#1236](https://github.com/stripe/stripe-react-native/issues/1236)
473
- - Fixed an issue where the `PlatformPayButton` with `type={PlatformPay.ButtonType.GooglePayMark}` would be unclickable. [#1236](https://github.com/stripe/stripe-react-native/issues/1236)
474
- - Fixed an issue on Android where `CardField` would render without the necessary padding. [48debb2](https://github.com/stripe/stripe-react-native/commit/48debb27de4b02d8309b4e42737be066cdf33835)
475
- - Fixed an issue on iOS where providing a `null` value to certain method parameters would result in a crash. [#1252](https://github.com/stripe/stripe-react-native/pull/1252)
476
-
477
- ## 0.22.1 - 2022-12-07
478
-
479
- **Fixes**
480
-
481
- - 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](https://github.com/stripe/stripe-react-native/pull/1227)
482
- - Fixed the `ShippingMethod` type to contain the `startDate` and `endDate` keys, if applicable. [#1227](https://github.com/stripe/stripe-react-native/pull/1227)
483
- - Fixed instances of the "duplicate registered views" error. [#1233](https://github.com/stripe/stripe-react-native/pull/1233)
484
- - Fixed extra margin that was being added to `<CardForm />` on Android. [#1234](https://github.com/stripe/stripe-react-native/pull/1234)
485
-
486
- ## 0.22.0 - 2022-12-02
487
-
488
- **Breaking changes**
489
-
490
- **Features**
491
-
492
- - Added the `hasPairedAppleWatch` option to `canAddCardToWallet`. [#1219](https://github.com/stripe/stripe-react-native/pull/1219)
493
- - 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](https://github.com/stripe/stripe-react-native/blob/master/docs/Platform-Pay-Migration.md) 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.
494
-
495
- **Fixes**
496
-
497
- - Fixed an issue where builds would error with the message `'const' enums are not supported.` [see commit](https://github.com/stripe/stripe-react-native/commit/f882bfa588aa6d23a980b4b43d2cca660ca1dd2a)
498
- - Fixed an issue where the `canAddCardToWallet` method would sometimes wrongly return `false` with a `details.status` of `MISSING_CONFIGURATION` in production builds. [#1215](https://github.com/stripe/stripe-react-native/pull/1215)
499
- - Fixed an issue on Android where, for certain countries, the postal code would not be enabled but would still be required. [#1213](https://github.com/stripe/stripe-react-native/pull/1213)
500
- - 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](https://github.com/stripe/stripe-react-native/pull/1219)
501
-
502
- ## 0.21.0 - 2022-11-15
503
-
504
- **Breaking changes**
505
-
506
- **Features**
507
-
508
- - Added the `<AddressSheet />` component, which enables you to collect local and international shipping or billing addresses from your customers _with_ address autocomplete. [#1169](https://github.com/stripe/stripe-react-native/pull/1169)
509
- - [Find the docs here](https://stripe.com/docs/elements/address-element?platform=react-native)
510
- - 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](https://github.com/stripe/stripe-react-native/pull/1169)
511
-
512
- **Fixes**
513
-
514
- - Fixed a build error on Android when using Kotlin version 1.7.10. [#1195](https://github.com/stripe/stripe-react-native/pull/1195)
515
-
516
- ## 0.20.0 - 2022-11-03
517
-
518
- **Breaking changes**
519
-
520
- - 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/stripe-react-native@0.19.0`. [#1190](https://github.com/stripe/stripe-react-native/pull/1190)
521
-
522
- **Features**
523
-
524
- - Added [Link](https://stripe.com/docs/payments/link) support in Payment Sheet. [#1176](https://github.com/stripe/stripe-react-native/pull/1176)
525
- - Added the `resetPaymentSheetCustomer` method to clear persisted authentication state in the PaymentSheet. [#1176](https://github.com/stripe/stripe-react-native/pull/1176)
526
- - Added `preferredNetwork` and `availableNetworks` fields to the `CardResult` payment method. [#1176](https://github.com/stripe/stripe-react-native/pull/1176)
527
- - Added support for custom fonts to `CardForm` and `CardView` on Android. [#1150](https://github.com/stripe/stripe-react-native/pull/1150)
528
- - Added support for customizing the call to action button label in Payment Sheet by providing the `primaryButtonLabel` property to `initPaymentSheet()`. [#1190](https://github.com/stripe/stripe-react-native/pull/1190)
529
-
530
- **Fixes**
531
-
532
- - Fixed an issue on iOS where `confirmSetupIntent` would throw an error if the `Card` payment method was provided with the `paymentMethodId` parameter. [#1151](https://github.com/stripe/stripe-react-native/pull/1151)
533
- - Upgraded `stripe-android` to 20.15.+. [#1176](https://github.com/stripe/stripe-react-native/pull/1176)
534
- - Upgraded `stripe-ios` to 23.1.+. [#1190](https://github.com/stripe/stripe-react-native/pull/1190)
535
- - Fixed `FinancialConnections.Subcategory` and `FinancialConnections.Permission` types to be camel-case instead of snake case. [#1176](https://github.com/stripe/stripe-react-native/pull/1176)
536
- - Fixed an issue with Financial Connections on iOS where the app wouldn't properly redirect back after authentication. [#1178](https://github.com/stripe/stripe-react-native/pull/1178)
537
- - Fixed `borderWidth` and `borderRadius` for `<CardField />` and `CardForm />` was inconsistent across iOS and Android. [#1182](https://github.com/stripe/stripe-react-native/pull/1182)
538
-
539
- ## 0.19.0 - 2022-09-16 (📌 Expo SDK 47)
540
-
541
- **Breaking changes**
542
-
543
- - To comply with Google's [new branding guidelines for the Google Pay button](https://developers.google.com/pay/api/android/guides/brand-guidelines), 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](https://github.com/stripe/stripe-react-native/pull/1135)
544
- - Your `compileSdkVersion` (in `android/build.gradle`) now must be at least 33. Changing your `compileSdkVersion` does not change runtime behavior.
545
-
546
- **Features**
547
-
548
- - Add `returnURL` as an optional parameter to `handleNextAction`. Use this so the Stripe SDK can redirect back to your app after authentication. [#1104](https://github.com/stripe/stripe-react-native/pull/1104)
549
-
550
- **Fixes**
551
-
552
- - Fixed an issue where the error resolved on iOS wasn't the root error. [#1105](https://github.com/stripe/stripe-react-native/pull/1105)
553
- - Fix Expo Config Plugin support on SDK 46. [#1111](https://github.com/stripe/stripe-react-native/pull/1111)
554
- - 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](https://github.com/stripe/stripe-react-native/pull/1135)
555
-
556
- ## 0.18.1 - 2022-08-19
557
-
558
- **Breaking changes**
559
-
560
- **Features**
561
-
562
- **Fixes**
563
-
564
- - Fixed an issue where some promises on Android would never resolve when using React Native 0.65.x or under. [#1089](https://github.com/stripe/stripe-react-native/pull/1089).
565
-
566
- ## 0.18.0 - 2022-08-17
567
-
568
- **Breaking changes**
569
-
570
- - Your `compileSdkVersion` (in `android/build.gradle`) now must be at least `32`. Changing your `compileSdkVersion` does not change runtime behavior.
571
-
572
- **Features**
573
-
574
- - `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](https://github.com/stripe/stripe-react-native/pull/1084)
575
- - Payment Sheet now supports Link on iOS. [#1086](https://github.com/stripe/stripe-react-native/pull/1086).
576
-
577
- **Fixes**
578
-
579
- - Fixed a bug on Android where `collectBankAccountForPayment`, `collectBankAccountForSetup`, `collectBankAccountToken`, and `collectFinancialConnectionsAccounts` wouldn't work with Stripe Connect accounts. [#1086](https://github.com/stripe/stripe-react-native/pull/1086).
580
- - Upgraded `stripe-ios` to 22.7.+ and `stripe-android` to 20.9.+.
581
-
582
- ## 0.17.0 - 2022-08-11
583
-
584
- **Breaking changes**
585
-
586
- **Features**
587
-
588
- - Added the [`collectBankAccountToken`](https://stripe.com/docs/financial-connections/connect-payouts?platform=react-native) & [`collectFinancialConnectionsAccounts`](https://stripe.com/docs/financial-connections/other-data-powered-products?platform=react-native) functions.
589
-
590
- **Fixes**
591
-
592
- - Fixed an issue where `collectBankAccountForPayment` and `collectBankAccountForSetup` would fail on Android when using React Native 0.65.x or under. [#1059](https://github.com/stripe/stripe-react-native/pull/1059)
593
- - Fixed an issue where Android apps could crash with the error `IllegalStateException: Cannot remove Fragment attached to a different FragmentManager`. [#1054](https://github.com/stripe/stripe-react-native/pull/1054)
594
- - Bumped Gradle from 4.2.2 to 7.1.1. [#1058](https://github.com/stripe/stripe-react-native/pull/1058)
595
-
596
- ## 0.16.0 - 2022-07-22
597
-
598
- **Breaking changes**
599
-
600
- - The `<GooglePayButton />` component no longer overrides the `type` to use the dark mode version when the device is in Dark Mode. If you set the `type` value, it will always be respected. If you don't set the `type` value, it will match the system's theme (`standard_shadow` when in Light Mode, and `standard_dark` when in Dark Mode). [#1051](https://github.com/stripe/stripe-react-native/pull/1051)
601
-
602
- **Features**
603
-
604
- - Added support for `pay_dark` and `standard_dark` to the `<GooglePayButton />` component's `type` prop. This allows you to display the [dark Google Pay button](https://developers.google.com/pay/api/android/guides/brand-guidelines). [#1051](https://github.com/stripe/stripe-react-native/pull/1051)
605
- - Added support for `borderColor`, `borderRadius`, and `cursorColor` to `CardForm`'s `cardStyle` prop on iOS (already exists on Android). [#1048](https://github.com/stripe/stripe-react-native/pull/1048)
606
-
607
- **Fixes**
608
-
609
- - Reduced the size of the `@stripe/stripe-react-native` by preventing unnecessary files from being published. [#1043](https://github.com/stripe/stripe-react-native/pull/1043)
610
-
611
- ## 0.15.0 - 2022-07-14
612
-
613
- **Breaking changes**
614
-
615
- - [#1020](https://github.com/stripe/stripe-react-native/pull/1020) Changed some of fields for the `params` object that is supplied to `initPaymentSheet(params)`:
616
- - **Changed the `applePay` field**. Previously this field accepted a boolean, now it accepts an object of type `ApplePayParams`, which includes the `merchantCountryCode` field, and a new `paymentSummaryItems` field (see "Features" below).
617
- - **Changed the `googlePay` field**. Previously this field accepted a boolean, now it accepts an object of type `GooglePayParams`, which includes the `merchantCountryCode`, `currencyCode`, and `testEnv` fields.
618
- - Since the `merchantCountryCode` field now lives under the `applePay` and `googlePay` objects, it has been removed from the base `params` object.
619
- - Similarly, since the `currencyCode` and `testEnv` fields now live under the `googlePay` object, they have been removed from the base `params` object .
620
- - [#1020](https://github.com/stripe/stripe-react-native/pull/1020) In `ApplePay.CartSummaryItem`:
621
- - Renamed `type` to `isPending`- (if you had `type: 'pending'`, replace it with `isPending: true`. if `type: 'final'`, either remove it or set `isPending: false`).
622
- - The same change was made to `ApplePay.ShippingMethod`: renamed `type` to `isPending`.
623
- - Added a **new** `paymentType` field. This field is **required**, and in all pre-existing cases where you created a `CartSummaryItem`, should be set to `paymentType: 'Immediate'` (support for types `Deferred` and `Recurring` wasn't available until this release).
624
-
625
- **Features**
626
-
627
- - Added support for iOS 15 `paymentSummaryItems`: `PKDeferredPaymentSummaryItem` and `PKRecurringPaymentSummaryItem`.
628
- - You can now specify Apple Pay line items to be displayed when paying with Apple Pay in PaymentSheet by providing `applePay.paymentSummaryItems` to the `initPaymentSheet` method. [#1020](https://github.com/stripe/stripe-react-native/pull/1020)
629
- - Added support for Affirm (previously, Affirm was only available in the Payment Sheet). [1036](https://github.com/stripe/stripe-react-native/pull/1036)
630
-
631
- **Fixes**
632
-
633
- - Fixed behavior of `CardField` and `CardForm` on Android to match that on iOS; postal code input no longer accepts characters that are never present in postal codes (anything besides 0-9, a-z, A-Z, hyphens, and whitespace). [#1027](https://github.com/stripe/stripe-react-native/pull/1027).
634
- - Fixed an issue on older version of React Native where calling `collectBankAccountForSetup` or `collectBankAccountForPayment` and getting a `Canceled` result could cause a crash. [#1037](https://github.com/stripe/stripe-react-native/pull/1037)
635
- - Fixed an issue where some Android builds would fail on the `lintVitalRelease` step. [#1038](https://github.com/stripe/stripe-react-native/pull/1038)
636
-
637
- ## 0.14.0 - 2022-06-30
638
-
639
- **Breaking changes**
640
-
641
- **Features**
642
-
643
- - Added the `canAddCardToWallet` method. [#986](https://github.com/stripe/stripe-react-native/pull/986).
644
-
645
- **Fixes**
646
-
647
- - Fix build errors on Xcode 14 beta 1 by upgrading `stripe-ios` to `~>22.5.1`. [#1011](https://github.com/stripe/stripe-react-native/pull/1011)
648
- - Fixed an issue on Android where the `brand` field in `CardField`'s `onCardChange` callback wouldn't be set unless the card details were fully complete. [#1012](https://github.com/stripe/stripe-react-native/pull/1012)
649
- - Fixed an issue where Payment Sheet would cause crashes on Android if `merchantDisplayName` wasn't provided. [#1015](https://github.com/stripe/stripe-react-native/pull/1015)
650
- - Fixed a bug on Android where a crash could occur if the PaymentSheet was canceled and opened again. [#1014](https://github.com/stripe/stripe-react-native/pull/1014)
651
- - Fixed an instance on iOS where `CardField`'s expiry date would remain marked as valid, even when it's invalid. [#1018](https://github.com/stripe/stripe-react-native/issues/1018)
652
-
653
- ## 0.13.1 - 2022-06-16 (📌 Expo SDK 46)
654
-
655
- **Breaking changes**
656
-
657
- **Features**
658
-
659
- **Fixes**
660
-
661
- - Never show postal code input in `CardField` if `postalCodeEnabled=false` (regardless of `countryCode`). [#996](https://github.com/stripe/stripe-react-native/pull/996)
662
-
663
- ## 0.13.0 - 2022-06-15
664
-
665
- **Breaking changes**
666
-
667
- **Features**
668
-
669
- - Added a `defaultValues` prop to the `CardForm` component. Currently only accepts `countryCode`, and is Android-only. [#974](https://github.com/stripe/stripe-react-native/pull/974)
670
- - Added the `countryCode` prop to the `CardField` component. [#989](https://github.com/stripe/stripe-react-native/pull/989)
671
- - Added option to create a PII token (represents the details of personally identifiable information) to the `createToken` method. [#976](https://github.com/stripe/stripe-react-native/pull/976)
672
-
673
- **Fixes**
674
-
675
- - Resolve with an Error (of type `Canceled`) if no payment option is selected in the Payment Sheet custom flow (i.e., the `x` button is clicked to close the Payment Sheet). [#975](https://github.com/stripe/stripe-react-native/pull/975)
676
- - Fixed an issue on Android where the `complete` field in the `onCardChange` callback would incorrectly be set to `true` even if the postal code wasn't filled out. [#989](https://github.com/stripe/stripe-react-native/pull/989)
677
- - Make `SetupIntent.lastSetupError` and `PaymentIntent.lastPaymentError` object shape consistent on iOS and Android.[#990](https://github.com/stripe/stripe-react-native/pull/990)
678
-
679
- ## 0.12.0 - 2022-06-02
680
-
681
- **Breaking changes**
682
-
683
- - Renamed `appearance.shapes.shadow.borderRadius` to `appearance.shapes.shadow.blurRadius`, and `appearance.primaryButton.shapes.shadow.borderRadius` to `appearance.primaryButton.shapes.shadow.blurRadius`. [#962](https://github.com/stripe/stripe-react-native/pull/962)
684
-
685
- **Features**
686
-
687
- **Fixes**
688
-
689
- - Fixed cases where Android apps would crash with the error: `Unable to instantiate fragment com.reactnativestripesdk.PaymentLauncherFragment`. [#965](https://github.com/stripe/stripe-react-native/pull/965)
690
- - Fixed `appearance.shapes.shadow.offset` and `appearance.primaryButton.shapes.shadow.offset` not applying the y-coordinate in the correct direction. [#962](https://github.com/stripe/stripe-react-native/pull/962)
691
- - Fixed a bug where `handleNextAction` wouldn't resolve on Android when using 3DS2. [#966](https://github.com/stripe/stripe-react-native/pull/966)
692
- - Fixed a bug where the wrong CVC icon was show in the `CardForm` component on Android. [#966](https://github.com/stripe/stripe-react-native/pull/966)
693
- - The card brand tint color is now correctly set in the `CardField` component on Android via the `cardStyle.textColor` prop. [#851](https://github.com/stripe/stripe-react-native/pull/851)
694
-
695
- ## 0.11.0 - 2022-05-24
696
-
697
- **Breaking changes**
698
-
699
- - Removed support for `primaryButtonColor` field on `initPaymentSheet()`. Please use the new `appearance.primaryButton.colors.background` field instead. [#940](https://github.com/stripe/stripe-react-native/pull/940)
700
-
701
- **Features**
702
-
703
- - You can now customize the appearance of your Payment Sheet via the `appearance` field on `initPaymentSheet()`. [#940](https://github.com/stripe/stripe-react-native/pull/940)
704
- - Added Affirm and AU BECS Direct Debit support to Payment Sheet. [#940](https://github.com/stripe/stripe-react-native/pull/940)
705
-
706
- **Fixes**
707
-
708
- - Improved error messages on Android for failed `confirmPayment` and `confirmSetupIntent` calls, and any Google Pay related methods. [#957](https://github.com/stripe/stripe-react-native/pull/957)
709
- - Made Android card validation state consistent with iOS in the `CardField` `onCardChange` callback. [#958](https://github.com/stripe/stripe-react-native/pull/958)
710
-
711
- ## 0.10.0 - 2022-05-19
712
-
713
- **Breaking changes**
714
-
715
- **Features**
716
-
717
- - Card scanning is available in payment sheet on Android. [#944](https://github.com/stripe/stripe-react-native/pull/944)
718
- - To enable this, you will need to add `implementation 'com.stripe:stripecardscan:20.3.+'` to your `dependencies {}` block in `android/app/build.gradle`.
719
- - `us_bank_account` payment method is now available in the payment sheet on Android. [#944](https://github.com/stripe/stripe-react-native/pull/944)
720
-
721
- **Fixes**
722
-
723
- ## 0.9.0 - 2022-05-10
724
-
725
- - [#913](https://github.com/stripe/stripe-react-native/pull/913) BREAKING CHANGE: Changed props for the `<AddToWalletButton />` component. Instead of passing `cardHolderName`, `cardLastFour`, `cardDescription`, and `cardBrand` directly as props, you will instead pass a `cardDetails` prop, which is an object containing the following fields:
726
- - `primaryAccountIdentifier`: The `wallet.primary_account_identifier` value from the issued card.
727
- - `name`: The card holder name (previously `cardHolderName`).
728
- - `description`: A user-facing description of the card (previously `cardDescription`).
729
- - `lastFour`: Last 4 digits of the card, optional (previously `cardLastFour`).
730
- - `brand`: The card brand, optional (previously `cardBrand`).
731
- - [#925](https://github.com/stripe/stripe-react-native/pull/925) Feat: `us_bank_account` payment method is now available in the payment sheet on iOS. (& Updated `stripe-ios` from 22.2.0 to 22.3.0)
732
- - [#929](https://github.com/stripe/stripe-react-native/pull/929) Feat: added PayPal support (not currently supported for SetupIntents)
733
- - [#928](https://github.com/stripe/stripe-react-native/pull/928) feat: expose 'cvc' when `dangerouslyGetCardDetails` is set to true
734
- - [#931](https://github.com/stripe/stripe-react-native/pull/931) feat: add token & paymentMethodId handling to confirmPayment for Cards
735
- - [#932](https://github.com/stripe/stripe-react-native/pull/932) fix: manually forward activity results to paymentLauncherFragment
736
- - [#933](https://github.com/stripe/stripe-react-native/pull/933) fix: address "Can not perform this action after onSaveInstanceState" crashes on Android
737
- - [#914](https://github.com/stripe/stripe-react-native/pull/914) fix: add `fingerprint` to Card result object on Android (already present on iOS)
738
- - [#912](https://github.com/stripe/stripe-react-native/pull/912) fix: allow for providing zip code straight from `CardField` component on Android
739
-
740
- ## 0.8.0 - 2022-04-27
741
-
742
- - **Breaking: This version requires you use `react-native@0.64.0` or above**
743
- - [#902](https://github.com/stripe/stripe-react-native/pull/902) fix: create custom babel plugin for package.json imports in src/
744
- - [#889](https://github.com/stripe/stripe-react-native/pull/889) Feat: add support for push provisioning (adding cards to native wallets)
745
- - [#890](https://github.com/stripe/stripe-react-native/pull/890) BREAKING CHANGE: Changed parameters for: `createPaymentMethod`, `confirmPayment`, `confirmSetupIntent`, `collectBankAccountForPayment`, and `collectBankAccountForSetup`. Please read [this migration guide](./docs/upgrading-from-v0.7.0.md) for details.
746
- - Renamed `type` field to `paymentMethodType` on `PaymentMethod.Result`, `PaymentIntent.Result`, and `SetupIntent.Result` (result of `createPaymentMethod`, `retrieveSetupIntent`, `confirmSetupIntent`, `confirmPayment`, `collectBankAccountForPayment`, `collectBankAccountForSetup`, `verifyMicrodepositsForPayment`, and `verifyMicrodepositsForSetup`).
747
- - [#849](https://github.com/stripe/stripe-react-native/pull/849) BREAKING CHANGE: Renamed `placeholder` prop on `<CardField />` and `<CardForm />` to `placeholders`.
748
- - [#849](https://github.com/stripe/stripe-react-native/pull/849) Feat: Added customized styling options to `<CardForm />` on Android.
749
-
750
- ## 0.7.0 - 2022-04-19
751
-
752
- - [#894](https://github.com/stripe/stripe-react-native/pull/894) Fix: `<CardField />` `onBlur` callback will now be called appropriately on Android
753
- - [#846](https://github.com/stripe/stripe-react-native/pull/846) Fix: Avoid crashes when `currentActivity` is null
754
- - [#879](https://github.com/stripe/stripe-react-native/pull/879) Feat: Add support for ACHv2 payments on Android (already existed on iOS).
755
- - [#879](https://github.com/stripe/stripe-react-native/pull/879) Chore: Upgraded `stripe-android` from v19.3.+ to v20.1.+
756
- - [#837](https://github.com/stripe/stripe-react-native/pull/837) BREAKING CHANGE: Mostly fixes and changes to types, but some method's now accept slightly different parameters:
757
- - Removed `setUrlSchemeOnAndroid` in favor of `setReturnUrlSchemeOnAndroid`. `setReturnUrlSchemeOnAndroid` functions exactly the same, this is just a rename.
758
- - Removed `handleCardAction` in favor of `handleNextAction`. `handleNextAction` functions exactly the same, this is just a rename.
759
- - `createPaymentMethod`'s `billingDetails` and `shippingDetails` parameters no longer accept the `addressPostalCode`, `addressCity`, `addressCountry`, `addressLine1`, `addressLine2`, or `addressState` keys. Instead, they accept an `address` object containing: `city`, `country`, `line1`, `line2`, `postalCode`, `state`.
760
- - `confirmPayment`'s `billingDetails` and `shippingDetails` parameters no longer accept the `addressPostalCode`, `addressCity`, `addressCountry`, `addressLine1`, `addressLine2`, or `addressState` keys. Instead, they accept an `address` object containing: `city`, `country`, `line1`, `line2`, `postalCode`, `state`.
761
- - `BillingDetails` no longer includes `addressPostalCode`, `addressCity`, `addressCountry`, `addressLine1`, `addressLine2`, or `addressState` keys. Instead, it includes an `address` object containing: `city`, `country`, `line1`, `line2`, `postalCode`, `state` keys.
762
- - `ShippingDetails` no longer includes `addressPostalCode`, `addressCity`, `addressCountry`, `addressLine1`, `addressLine2`, or `addressState` keys. Instead, it includes an `address` object containing: `city`, `country`, `line1`, `line2`, `postalCode`, `state` keys.
763
- - `PaymentIntents` was renamed `PaymentIntent`. (If you were using `PaymentIntents.Status`, now you must change it to `PaymentIntent.Status`)
764
- - `SetupIntents` was renamed `SetupIntent`. (If you were using `SetupIntents.Status`, now you must change it to `SetupIntent.Status`)
765
- - (Typescript) `Card.Token` is now `Token.Result`
766
- - (Typescript) `Card.Brand` is now `Token.CardBrand`
767
- - (Typescript) `Card.TokenType` is now `Token.Type`
768
- - (Typescript) `Card.BankAccount` is now `Token.BankAccount`
769
- - (Typescript) `Card.Params` is now `Token.Params`
770
- - (Typescript) `CardFormView.Names` is now `CardFormView.FieldName`
771
- - (Typescript) `CardFieldInput.Names` is now `CardFieldInput.FieldName`
772
- - (Typescript) `ApplePayButtonComponent.Styles` is now `ApplePayButtonComponent.Style`
773
- - (Typescript) `ApplePayButtonComponent.Types` is now `ApplePayButtonComponent.Type`
774
- - (Typescript) `PaymentMethod` is now `PaymentMethod.Result`
775
- - (Typescript) `PaymentIntent` is now `PaymentIntent.Result`
776
- - (Typescript) `SetupIntent` is now `SetupIntent.Result`
777
- - (Typescript) Exports that were under the `Card` namespace are now under `Token`
778
- - (Typescript) `CreateTokenParams` is now `Token.CreateParams`
779
- - (Typescript) `BankAcccountHolderType` is now `Token.BankAcccountHolderType`
780
- - (Typescript) `ThreeDSecureConfigurationParams` is now `ThreeDSecure.ConfigurationParams`
781
- - (Typescript) `PaymentMethodCreateParams.Params` is now `PaymentMethod.CreateParams`
782
- - (Typescript) `PaymentMethodCreateParams.Options` is now `PaymentMethod.ConfirmOptions`
783
- - (Typescript) `CreateTokenParams` is now `Token.CreateParams`
784
- - (Typescript) `ConfirmSetupIntent.Params` is now `SetupIntent.ConfirmParams`
785
- - (Typescript) `ConfirmSetupIntent.Options` is now `SetupIntent.ConfirmOptions`
786
- - (Typescript) `confirmPayment` now accepts the `PaymentIntent.ConfirmParams` (same type, just renamed).
787
- - (Typescript) `BillingDetails` type is now exported directly, instead of under the `PaymentMethodCreateParams` object.
788
- - (Typescript) `presentGooglePay` now accepts `GooglePay.PresentParams`
789
- - (Typescript) `GooglePay.PresentGooglePayParams` is now `GooglePay.PresentParams`
790
- - (Typescript) `GooglePay.PresentGooglePayType` is now `GooglePay.PresentType`
791
- - (Typescript) `GooglePay.IsGooglePaySupportedParams` is now `GooglePay.IsSupportedParams`
792
- - (Typescript) Removed `GooglePay.SetupIntentParams`
793
-
794
- ## 0.6.1 - 2022-04-01 (📌 Expo SDK 45)
795
-
796
- - Fix: correctly overwrite `package.json` import via babel. [#924](https://github.com/stripe/stripe-react-native/pull/924)
797
- - Fix: upgrade expo config plugins. [#936](https://github.com/stripe/stripe-react-native/pull/936)
798
-
799
- ## 0.6.0 - 2022-04-01
800
-
801
- - [#861](https://github.com/stripe/stripe-react-native/pull/861) BREAKING: This library now supports iOS 12 and up, due to `stripe-ios` increasing the deployment target. If you would like to build for iOS 11, please continue to use `@stripe/stripe-react-native@0.5.0`.
802
- - To upgrade your iOS deployment target to 12.0, you can either do so in Xcode under your `Build Settings`, or by modifying `IPHONEOS_DEPLOYMENT_TARGET` in your `project.pbxproj` directly. You will also need to update your Podfile to target `:ios, '12.0'`.
803
- - [#861](https://github.com/stripe/stripe-react-native/pull/861) Feat: Add support for ACHv2 payments **on iOS only**.
804
- - [#861](https://github.com/stripe/stripe-react-native/pull/861) Chore: Upgrade `stripe-ios` to 22.0.0.
805
-
806
- ## 0.5.0 - 2022-03-29
807
-
808
- - [#863](https://github.com/stripe/stripe-react-native/pull/863) Feat: add card ID and bankAccount ID to token response
809
- - [#862](https://github.com/stripe/stripe-react-native/pull/862) Feat: Add support for setting a card's `currency` when creating a Token
810
- - [#854](https://github.com/stripe/stripe-react-native/pull/854) Chore: Upgrade `stripe-ios` to 21.13.0. Upgrade `stripe-android` to 19.3.0.
811
- - [#845](https://github.com/stripe/stripe-react-native/pull/845) Feat: Added support for `placeholderColor`, `textErrorColor `, `borderColor`, `borderRadius`, and `borderWidth` for `AuBECSDebitForm` on iOS
812
-
813
- ## 0.4.0 - 2022-03-10
814
-
815
- - [#821](https://github.com/stripe/stripe-react-native/pull/821) Feat: Add support for Klarna
816
- - [#630](https://github.com/stripe/stripe-react-native/pull/630) Fix: card field focus jumps back to the card number field on Android
817
- - [#824](https://github.com/stripe/stripe-react-native/pull/824) Fix: Google Pay error code when canceled should be 'Canceled'
818
- - [#832](https://github.com/stripe/stripe-react-native/pull/832)
819
- - Deprecated `setUrlSchemeOnAndroid` in favor of `setReturnUrlSchemeOnAndroid`. `setReturnUrlSchemeOnAndroid` functions exactly the same, this is just a rename. `setUrlSchemeOnAndroid` will be removed in a future release.
820
- - Deprecated `handleCardAction` in favor of `handleNextAction`. `handleNextAction` functions exactly the same, this is just a rename. `handleCardAction` will be removed in a future release.
821
- - fix: Set `returnUrl` on Android in `confirmPayment` and `confirmSetupIntent`.
822
- - fix: Don't request focus on initialization of `CardForm` by default.
823
-
824
- ## 0.3.0 - 2022-02-17
825
-
826
- - [#810](https://github.com/stripe/stripe-react-native/pull/810) Feat: add `isGooglePaySupported` method
827
- - [#809](https://github.com/stripe/stripe-react-native/pull/809) Fix: do not crash if no routing number provided when creating a bank account token on Android
828
- - [#814](https://github.com/stripe/stripe-react-native/pull/814) Fix: cleanup `paymentSheetFlowController` ref before initializing new payment sheet
829
- - [#806](https://github.com/stripe/stripe-react-native/pull/806) Fix: properly assign `cursorColor` style on Android `CardField` (requires Android 10 or higher).
830
- - [#817](https://github.com/stripe/stripe-react-native/pull/817) Chore: Upgrade `stripe-ios` to v21.12.0 and `stripe-android` to v19.2.+
831
-
832
- ## 0.2.4 - 2022-02-10
833
-
834
- - [#788](https://github.com/stripe/stripe-react-native/pull/788) fix: assign `paymentSheetFragment` directly, instead of through intents which would sometimes result in a `NullPointerException`.
835
- - [#591](https://github.com/stripe/stripe-react-native/pull/591) feat: add option to create a token directly from a bank account.
836
- - [#801](https://github.com/stripe/stripe-react-native/pull/801) Upgraded `stripe-ios` to v21.11.1. Upgraded `stripe-android` to v19.1.+. Added Android 12 support to example.
837
- - [#774](https://github.com/stripe/stripe-react-native/pull/774) feat: Add `currencyCode` support to `initPaymentSheet` for Google Pay & Setup Intents
838
- - [#726](https://github.com/stripe/stripe-react-native/pull/726) Update build.gradle to be more flexible in version of `stripe-android` ([#726](https://github.com/stripe/stripe-react-native/issues/726))
839
- - [#675](https://github.com/stripe/stripe-react-native/pull/675) Bug fixes for server example ([#675](https://github.com/stripe/stripe-react-native/issues/675))
840
- - [#629](https://github.com/stripe/stripe-react-native/pull/629) feat: Add validation state to CardField ([#423](https://github.com/stripe/stripe-react-native/issues/423)) ([#629](https://github.com/stripe/stripe-react-native/issues/629))
841
- - [#702](https://github.com/stripe/stripe-react-native/pull/702) docs: Update GooglePay.md ([#702](https://github.com/stripe/stripe-react-native/issues/702))
842
- - [#690](https://github.com/stripe/stripe-react-native/pull/690) docs: Correct default for existingPaymentMethodRequired ([#690](https://github.com/stripe/stripe-react-native/issues/690))
843
- - [#660](https://github.com/stripe/stripe-react-native/pull/660) docs: Fixed readme js object typo ([#660](https://github.com/stripe/stripe-react-native/issues/660))
844
- - [#657](https://github.com/stripe/stripe-react-native/pull/657) chore: updated the dependencies for the example app ([#657](https://github.com/stripe/stripe-react-native/issues/657))
845
- - [#658](https://github.com/stripe/stripe-react-native/pull/658) fix: TS issue with 0.2.3 StripeProvider cannot be used as a JSX component ([#658](https://github.com/stripe/stripe-react-native/issues/658))
846
- - [#635](https://github.com/stripe/stripe-react-native/pull/635) fix: billing address postal code ([#635](https://github.com/stripe/stripe-react-native/issues/635))
847
-
848
- ## 0.2.3 - 2021-10-18 (📌 Expo SDK 44)
849
-
850
- - [#565](https://github.com/stripe/stripe-react-native/pull/565) chore: Add jest mock file ([#565](https://github.com/stripe/stripe-react-native/issues/565))
851
- - [#587](https://github.com/stripe/stripe-react-native/pull/587) chore: Update Podfile.lock stripe-react-native version ([#587](https://github.com/stripe/stripe-react-native/issues/587))
852
- - [#568](https://github.com/stripe/stripe-react-native/pull/568) fix: check support for specific TextInputState methods ([#568](https://github.com/stripe/stripe-react-native/issues/568))
853
- - [#631](https://github.com/stripe/stripe-react-native/pull/631) chore: Update tips migration guide ([#631](https://github.com/stripe/stripe-react-native/issues/631))
854
- - [#601](https://github.com/stripe/stripe-react-native/pull/601) feat: Add button color, return URL, allowsDelayedPaymentMethods, and billing details to PaymentSheet ([#601](https://github.com/stripe/stripe-react-native/issues/601))
855
-
856
- ## 0.2.2 - 2021-09-15 (📌 Expo SDK 43)
857
-
858
- - [#588](https://github.com/stripe/stripe-react-native/pull/588) fix: use the LocalBroadcastManager ([#588](https://github.com/stripe/stripe-react-native/issues/588))
859
-
860
- ## 0.2.1 - 2021-09-02
861
-
862
- - [#548](https://github.com/stripe/stripe-react-native/pull/548) chore: split apple pay address by new line ([#531](https://github.com/stripe/stripe-react-native/issues/531))
863
- - [#546](https://github.com/stripe/stripe-react-native/pull/546) fix: resolve initGooglePay with error if it's not available ([#533](https://github.com/stripe/stripe-react-native/issues/533))
864
- - [#525](https://github.com/stripe/stripe-react-native/pull/525) feat: add `openApplePaySetup` method ([#400](https://github.com/stripe/stripe-react-native/issues/400))
865
- - [#521](https://github.com/stripe/stripe-react-native/pull/521) fix: support cardFormView for createToken method
866
- - [#514](https://github.com/stripe/stripe-react-native/pull/514) feat: simpify `presentPaymentSheet`
867
- - [#513](https://github.com/stripe/stripe-react-native/pull/513) fix: set `null` as initial value for `isApplePaySupported` ([#496](https://github.com/stripe/stripe-react-native/issues/496))
868
- - [#506](https://github.com/stripe/stripe-react-native/pull/506) feat: enhance payment sheet dx ([#505](https://github.com/stripe/stripe-react-native/issues/505))
869
-
870
- ## 0.2.0 - 2021-08-03
871
-
872
- - [#415](https://github.com/stripe/stripe-react-native/pull/415) feat: add multiline card form element ([#83](https://github.com/stripe/stripe-react-native/issues/83))
873
- - [#441](https://github.com/stripe/stripe-react-native/pull/441) feat(android): add standalone Google Pay ([#9](https://github.com/stripe/stripe-react-native/issues/9))
874
- - [#422](https://github.com/stripe/stripe-react-native/pull/422) feat: add WeChat Pay ([#52](https://github.com/stripe/stripe-react-native/issues/52))
875
- - [#453](https://github.com/stripe/stripe-react-native/pull/453) chore: add JCB support for Apple Pay ([#43](https://github.com/stripe/stripe-react-native/issues/430))
876
- - [#451](https://github.com/stripe/stripe-react-native/pull/451) fix: send postal code with card details ([#420](https://github.com/stripe/stripe-react-native/issues/420))
877
- - [#436](https://github.com/stripe/stripe-react-native/pull/436) fix: cardfield crashes app ([#391](https://github.com/stripe/stripe-react-native/issues/391))
878
- - [#419](https://github.com/stripe/stripe-react-native/pull/419) fix(android): error handling for createToken ([#405](https://github.com/stripe/stripe-react-native/issues/405))
879
-
880
- ## 0.1.5 - 2021-07-14
881
-
882
- - [#394](https://github.com/stripe/stripe-react-native/pull/394) **[BREAKING CHANGE]** fix: createToken response discrepancy ([#344](https://github.com/stripe/stripe-react-native/issues/344))
883
- - [#354](https://github.com/stripe/stripe-react-native/pull/354) **[BREAKING CHANGE]** chore: rename top-level export `confirmPaymentMethod` to `confirmPayment` ([#318](https://github.com/stripe/stripe-react-native/issues/318))
884
- - [#416](https://github.com/stripe/stripe-react-native/pull/416) fix(android): googlePay setting on initPaymentSheet
885
- - [#392](https://github.com/stripe/stripe-react-native/pull/392) fix: `created` timestamp discrepancy ([#368](https://github.com/stripe/stripe-react-native/issues/368))
886
- - [#395](https://github.com/stripe/stripe-react-native/pull/395) fix: resolve `initPaymentSheet` only when ready ([#315](https://github.com/stripe/stripe-react-native/issues/315))
887
- - [#390](https://github.com/stripe/stripe-react-native/pull/390) fix: add missing setupFutureUsage param ([#367](https://github.com/stripe/stripe-react-native/issues/367))
888
- - [#389](https://github.com/stripe/stripe-react-native/pull/389) fix: set url scheme when using paymentMethodId ([#378](https://github.com/stripe/stripe-react-native/issues/378))
889
- - [#337](https://github.com/stripe/stripe-react-native/pull/337) feat: expose CardField methods (focus, blur, clear)
890
- - [#366](https://github.com/stripe/stripe-react-native/pull/366) fix: open payment sheet from modal ([#315](https://github.com/stripe/stripe-react-native/issues/315); [#290](https://github.com/stripe/stripe-react-native/issues/290))
891
-
892
- ## 0.1.4 - 2021-06-04 (📌 Expo SDK 42)
893
-
894
- ## 0.1.3 - 2021-06-04
895
-
896
- - [#309](https://github.com/stripe/stripe-react-native/pull/309) feat: add `retrieveSetupIntent` method ([#294](https://github.com/stripe/stripe-react-native/issues/294))
897
- - [#306](https://github.com/stripe/stripe-react-native/pull/306) feat: add `dangerouslyGetFullCardDetails` prop to `CardField` component ([#280](https://github.com/stripe/stripe-react-native/issues/280))
898
- - [#298](https://github.com/stripe/stripe-react-native/pull/298) feat: support SetupIntents in payment sheet ([#293](https://github.com/stripe/stripe-react-native/issues/293))
899
- - [#296](https://github.com/stripe/stripe-react-native/pull/296) chore: support `testID` prop in all UI components ([#268](https://github.com/stripe/stripe-react-native/issues/268))
900
- - [#295](https://github.com/stripe/stripe-react-native/pull/295) feat(ios): return the `paymentMethod` object when `presentApplePay` resolves ([#271](https://github.com/stripe/stripe-react-native/issues/271))
901
- - [#273](https://github.com/stripe/stripe-react-native/pull/273) feat: enrich the response error objects with additional information ([#206](https://github.com/stripe/stripe-react-native/issues/206))
902
- - [#276](https://github.com/stripe/stripe-react-native/pull/276) fix(android): payment sheet not opening when `stripeAccountId` set ([#267](https://github.com/stripe/stripe-react-native/issues/267))
903
- - [#266](https://github.com/stripe/stripe-react-native/pull/266) feat(ios): add `borderRadius` prop to the `ApplePayButton` component ([#258](https://github.com/stripe/stripe-react-native/issues/258))
904
- - [#260](https://github.com/stripe/stripe-react-native/pull/260) feat: add the `StripeContainer` component that allows for dismissal of the keyboard when wrapped around the `CardField` compnent ([#222](https://github.com/stripe/stripe-react-native/issues/222))
905
- - [#255](https://github.com/stripe/stripe-react-native/pull/255) fix(android): crash on `onActivityResult` when Stripe isn't initalized
906
-
907
- ## 0.1.2 - 2021-05-21
908
-
909
- - [#247](https://github.com/stripe/stripe-react-native/pull/247) feat: add `fontFamily` prop to `CardField` component ([#103](https://github.com/stripe/stripe-react-native/issues/103))
910
- - [#245](https://github.com/stripe/stripe-react-native/pull/245) fix: clear card params when `CardField` input is invalidated ([#237](https://github.com/stripe/stripe-react-native/issues/237))
911
- - [#228](https://github.com/stripe/stripe-react-native/pull/228) feat: add ability to show error in Apple Pay sheet within `onShippingContactSelected` handler ([#148](https://github.com/stripe/stripe-react-native/issues/148))
912
- - [#221](https://github.com/stripe/stripe-react-native/pull/221) feat: add legacy `createToken` method for older integrations ([#187](https://github.com/stripe/stripe-react-native/issues/187))
913
- - [#234](https://github.com/stripe/stripe-react-native/pull/234) fix: add missing 3D Secure button props ([#201](https://github.com/stripe/stripe-react-native/issues/201))
914
- - [#226](https://github.com/stripe/stripe-react-native/pull/226) feat: add `autofocus` prop to `CardField` component ([#199](https://github.com/stripe/stripe-react-native/issues/199))
915
-
916
- ## 0.1.1 - 2021-05-14 (📌 Expo SDK 41)
917
-
918
- - [#224](https://github.com/stripe/stripe-react-native/pull/224) chore: upgrade to [`stripe-android` version `16.8.2`](https://github.com/stripe/stripe-android/blob/master/CHANGELOG.md#1682---2021-05-14) ([#212](https://github.com/stripe/stripe-react-native/issues/212))
919
- - [#213](https://github.com/stripe/stripe-react-native/pull/213) fix: expose config-plugin and add blank swift file
920
- - [#217](https://github.com/stripe/stripe-react-native/pull/217) feat: E2E testing CI configuration
921
- - [#216](https://github.com/stripe/stripe-react-native/pull/216) fix: unify cancel handling ([#205](https://github.com/stripe/stripe-react-native/issues/205))
922
- - [#215](https://github.com/stripe/stripe-react-native/pull/215) fix: createPaymentMethod promise reject ([#209](https://github.com/stripe/stripe-react-native/issues/209))
923
- - [#208](https://github.com/stripe/stripe-react-native/pull/208) fix: add `.npmignore` disallow list ([#204](https://github.com/stripe/stripe-react-native/issues/204))
924
- - [#207](https://github.com/stripe/stripe-react-native/pull/207) fix: handle different pjson output ([#200](https://github.com/stripe/stripe-react-native/issues/200))
925
- - [#197](https://github.com/stripe/stripe-react-native/pull/197) fix: update library name in expo plugin
926
-
927
- ## 0.1.0 - 2021-05-10
928
-
929
- - Initial release
930
-
931
- Special thanks to: [Arek Kubaczkowski](https://github.com/arekkubaczkowski), [Charlie Cruzan](https://github.com/cruzach), and [Jakub Kłobus](https://github.com/souhe).