Skip to content

CryptoOnramp SDK: Splits Rich Error Types (SDK vs. API)#2495

Open
mliberatore wants to merge 7 commits into
masterfrom
mliberatore/crypto-onramp-errors-refactor
Open

CryptoOnramp SDK: Splits Rich Error Types (SDK vs. API)#2495
mliberatore wants to merge 7 commits into
masterfrom
mliberatore/crypto-onramp-errors-refactor

Conversation

@mliberatore

@mliberatore mliberatore commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

To more closely match the native SDKs, we're splitting the OnrampApiError type to have a base OnrampSdkError that covers non-API errors.

To maintain the existing "legacy" SDK error for attestation failures on create/configure, and keep OnrampErrorType non-optional, we add LegacyConfigureAppAttestationError until we have a concrete error type from the native SDKs (i.e. stripe/stripe-ios#6588).

Motivation

#2485 (review)

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@mliberatore mliberatore requested a review from jeanregisser June 16, 2026 19:21
@mliberatore mliberatore marked this pull request as ready for review June 16, 2026 19:21
@mliberatore mliberatore requested review from a team as code owners June 16, 2026 19:21

@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.

Thanks! 🚀

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.

3 participants