Updates Android SDK to 23.8.0 + CryptoOnramp SDK EU Support#2441
Conversation
…Sheet to @_spi(CryptoOnrampAlpha) (#6401) ## Summary There are a few APIs in `StripePaymentSheet` that were exposed only for `StripeCryptoOnramp`. We want to remove `@_spi(STP)` usage from React Native, and that requires migrating these to `@_spi(CryptoOnrampAlpha)`. These changes are in: - `LinkAppearance.swift` - `VerifyKYCResult.swift` - `STPImageLibrary.swift` All other changes here are correcting the relevant imports to ensure a clean build. ## Motivation This request came from Jean in Slack. ## Testing - Allowed CI to build and run all tests. - Tested locally with stripe/stripe-react-native#2441 in the React Native project. ## Changelog ✅ <!-- Is this a notable change that affects users? If so, add a line to `CHANGELOG.md` and prefix the line with one of the following: - [Added] for new features. - [Changed] for changes in existing functionality. - [Deprecated] for soon-to-be removed features. - [Removed] for now removed features. - [Fixed] for any bug fixes. - [Security] in case of vulnerabilities. -->
…-onramp-spi # Conflicts: # ios/StripeSdkImpl.swift
…ripe/stripe-react-native into mliberatore/crypto-onramp-spi
…ripe/stripe-react-native into mliberatore/crypto-onramp-spi
…essionBetaAccess` imports
…-onramp-spi # Conflicts: # ios/StripeSdkImpl.swift
|
|
||
| - tapOn: | ||
| text: "Card number" | ||
| text: "Card number. Supported cards include.*" |
There was a problem hiding this comment.
Looks like this was a recently added test, and it's failing on master for the same reason as those fixed in https://github.com/stripe/stripe-react-native/pull/2457/changes#r3235956032, so fixing here.
| export type CRSCARFDeclarationResult = | ||
| | { | ||
| /** The customer accepted the declaration. */ | ||
| status: 'Confirmed'; |
There was a problem hiding this comment.
nit: can we use lowercase status? Or is Capitalization a convention we're already using?
| status: 'Confirmed'; | |
| status: 'confirmed'; |
There was a problem hiding this comment.
A convention we're already using across Onramp (we have Consented, Denied, Confirmed, UpdateAddress statuses). I’m not opposed to us shifting to lowercase across the board, but we should plan that accordingly in isolation and discuss client impact if we'd like to do that.
| if let identifierError = error as? Mappers.ComplianceIdentifierError, | ||
| case let .invalidField(field) = identifierError { | ||
| let errorResult = Errors.createError(ErrorType.Unknown, "Invalid format for field: \(field)") | ||
| resolve(["error": errorResult["error"]!]) |
There was a problem hiding this comment.
Nothing to do now, but this is also where we'll want to apply the richer error proposal that we've been discussing.
Summary
This PR, based on #2457, updates the Android SDK, and adds the iOS + Android bindings for CryptoOnramp SDK EU support. These EU additions are exercised in the example app flow changes.
Motivation
Keeping up-to-date with the latest native SDK releases.
Testing
Tested using the example app. It is expected in testmode that the declaration screen is showing a dummy response (HTML) currently.
Documentation
Select one: