diff --git a/CHANGELOG.md b/CHANGELOG.md index c715471a4..6fd59ca81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ **Features** - Adds support for `paymentMethodOrder` in PaymentSheet, which provides client side sorting of payment methods. +- Updated `stripe-android` to 20.44.\* ## 0.37.3 - 2024-04-19 diff --git a/android/build.gradle b/android/build.gradle index 2b32f9793..1385afa28 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -148,7 +148,7 @@ dependencies { implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0' // play-services-wallet is already included in stripe-android - compileOnly "com.google.android.gms:play-services-wallet:19.2.0" + compileOnly "com.google.android.gms:play-services-wallet:19.3.0" // Users need to declare this dependency on their own, otherwise all methods are a no-op compileOnly 'com.stripe:stripe-android-issuing-push-provisioning:1.1.0' diff --git a/android/gradle.properties b/android/gradle.properties index 7169bb955..90bf8b001 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,3 +1,3 @@ StripeSdk_kotlinVersion=1.8.0 # Keep StripeSdk_stripeVersion in sync with https://github.com/stripe/stripe-identity-react-native/blob/main/android/gradle.properties -StripeSdk_stripeVersion=20.41.+ +StripeSdk_stripeVersion=20.44.+ diff --git a/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt b/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt index d4926021f..520434ff0 100644 --- a/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt +++ b/android/src/main/java/com/reactnativestripesdk/PaymentLauncherFragment.kt @@ -284,7 +284,8 @@ class PaymentLauncherFragment( StripeIntent.NextActionType.DisplayOxxoDetails, StripeIntent.NextActionType.DisplayBoletoDetails, StripeIntent.NextActionType.DisplayKonbiniDetails, - StripeIntent.NextActionType.VerifyWithMicrodeposits -> true + StripeIntent.NextActionType.VerifyWithMicrodeposits, + StripeIntent.NextActionType.DisplayMultibancoDetails -> true StripeIntent.NextActionType.RedirectToUrl, StripeIntent.NextActionType.UseStripeSdk, StripeIntent.NextActionType.AlipayRedirect, diff --git a/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt b/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt index 6b91a18ca..ca66b44a7 100644 --- a/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt +++ b/android/src/main/java/com/reactnativestripesdk/utils/Mappers.kt @@ -513,6 +513,12 @@ internal fun mapNextAction(type: NextActionType?, data: NextActionData?): Writab nextActionMap.putString("mobileAuthUrl", it.mobileAuthUrl) } } + NextActionType.DisplayMultibancoDetails -> { + (data as? NextActionData.DisplayMultibancoDetails)?.let { + nextActionMap.putString("type", "multibanco") + nextActionMap.putString("voucherURL", it.hostedVoucherUrl) + } + } } return nextActionMap } diff --git a/package.json b/package.json index 50b098916..5109ffffb 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "run-example-android": "cd example;react-native run-android --variant=release", "test:e2e:ios": "bash ./scripts/run-maestro-tests ios", "test:e2e:android": "bash ./scripts/run-maestro-tests android", - "test:unit:ios": "xcodebuild test -workspace example/ios/StripeSdkExample.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 13' -scheme UnitTests", + "test:unit:ios": "xcodebuild test -workspace example/ios/StripeSdkExample.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 15' -scheme UnitTests", "test:unit:android": "cd example/android && ./gradlew connectedAndroidTest", "test-ios": "maestro test -e APP_ID=com.stripe.react.native", "test-android": "maestro test -e APP_ID=com.example.reactnativestripesdk"