Skip to content

CryptoOnramp SDK: SDK Changes for EU Support#13038

Merged
Twigz merged 14 commits into
masterfrom
twigz/onramp-eui-api-changes
May 11, 2026
Merged

CryptoOnramp SDK: SDK Changes for EU Support#13038
Twigz merged 14 commits into
masterfrom
twigz/onramp-eui-api-changes

Conversation

@Twigz

@Twigz Twigz commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds CryptoOnrampCoordinator APIs used for EU support as well as associated UI via paymentsheet (design TBD), temporary named analytics, and tests supporting functionality. This does not include updates for the example app. That currently remains in a separate branch listed below in Testing.

Motivation

Mobile SDK EU KYC Additions
Backend API Review

Testing

  • Added tests
  • Modified tests
  • Manually verified

This was manually verified against a working branch (twigz/carfd-integration).

@Twigz Twigz requested a review from jeanregisser May 6, 2026 22:02
@Twigz Twigz requested review from a team as code owners May 6, 2026 22:02
@Twigz Twigz requested review from samer-stripe and removed request for a team May 6, 2026 22:02
jeanregisser
jeanregisser previously approved these changes May 7, 2026

@jeanregisser jeanregisser left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀


private fun handleCrsCarfDeclarationResult(result: CrsCarfDeclarationActivityResult) {
coroutineScope.launch {
onrampCallbacksState.crsCarfDeclarationCallback?.onResult(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Should we fail fast if no callback is registered when presentCrsCarfDeclaration() is called? Because the safe-call short-circuits argument evaluation, interactor.handleCrsCarfDeclarationResult(result) (and the backend confirmCrsCarfDeclaration call inside it) is silently skipped when the callback is null. A silent no-op here could be hard to debug.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think instead, we always call the handleCrsCarfDeclarationResult, and then pass it to the optional callback. That way we successfully handle the declaration result regardless, and then the client can decide if they care about the result (I imagine they would but, this way we do the correct thing from the user perspective). The rest of the SDK works through these callbacks, so I think that matches with the expectation.

Base automatically changed from twigz/onramp-eu-backend-models to master May 11, 2026 13:19
@Twigz Twigz dismissed jeanregisser’s stale review May 11, 2026 13:19

The base branch was changed.

@Twigz Twigz merged commit 4717f77 into master May 11, 2026
52 of 55 checks passed
@Twigz Twigz deleted the twigz/onramp-eui-api-changes branch May 11, 2026 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants