@stripe/stripe-react-native 0.38.1 → 0.38.3

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.38.3 - 2024-07-22
6
+
7
+ **Fixes**
8
+
9
+ - Fixed an issue on Android where `CustomerSheet` could get stuck in an error state after forwarding an error to the `intentCreationCallback`.
10
+
11
+ ## 0.38.2 - 2024-07-19
12
+
13
+ **Fixes**
14
+
15
+ - Updated `stripe-ios` to 23.28.\*
16
+ - Updated `stripe-android` to 20.48.\*
17
+
5
18
  ## 0.38.1 - 2024-06-28
6
19
 
7
20
  **Fixes**
@@ -1,3 +1,3 @@
1
1
  StripeSdk_kotlinVersion=1.8.0
2
2
  # Keep StripeSdk_stripeVersion in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/android/gradle.properties
3
- StripeSdk_stripeVersion=20.47.3
3
+ StripeSdk_stripeVersion=20.48.+
@@ -43,7 +43,7 @@ class PaymentSheetFragment(
43
43
  private var confirmPromise: Promise? = null
44
44
  private var presentPromise: Promise? = null
45
45
  private var paymentSheetTimedOut = false
46
- internal val paymentSheetIntentCreationCallback = CompletableDeferred<ReadableMap>()
46
+ internal var paymentSheetIntentCreationCallback = CompletableDeferred<ReadableMap>()
47
47
 
48
48
  override fun onCreateView(
49
49
  inflater: LayoutInflater,
@@ -148,6 +148,8 @@ class PaymentSheetFragment(
148
148
  stripeSdkModule.sendEvent(context, "onConfirmHandlerCallback", params)
149
149
 
150
150
  val resultFromJavascript = paymentSheetIntentCreationCallback.await()
151
+ // reset the completable
152
+ paymentSheetIntentCreationCallback = CompletableDeferred<ReadableMap>()
151
153
 
152
154
  return@CreateIntentCallback resultFromJavascript.getString("clientSecret")?.let {
153
155
  CreateIntentResult.Success(clientSecret = it)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/stripe-react-native",
3
- "version": "0.38.1",
3
+ "version": "0.38.3",
4
4
  "author": "Stripe",
5
5
  "description": "Stripe SDK for React Native",
6
6
  "main": "lib/commonjs/index",
@@ -2,7 +2,7 @@ require 'json'
2
2
 
3
3
  package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4
4
  # Keep stripe_version in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/stripe-identity-react-native.podspec
5
- stripe_version = '~> 23.27.0'
5
+ stripe_version = '~> 23.28.0'
6
6
 
7
7
  Pod::Spec.new do |s|
8
8
  s.name = 'stripe-react-native'