Skip to content

Commit

Permalink
upgrade android
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe committed May 23, 2024
1 parent dd2c2a4 commit ae3cf0b
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
@@ -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.+
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ae3cf0b

Please sign in to comment.