Skip to content

fix(onramp): align Coinbase error codes with official docs and group by UI#733

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/onramp-error-codes
May 19, 2026
Merged

fix(onramp): align Coinbase error codes with official docs and group by UI#733
bmc08gt merged 1 commit into
code/cashfrom
fix/onramp-error-codes

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 19, 2026

Add 9 missing Coinbase headless onramp error codes and group related errors into sealed subclass hierarchies (CardDeclined, BillingAddressInvalid, InternalFailure, TransactionFailed, UnknownFailure) so the UI handler matches on groups instead of individual variants.

See https://docs.cdp.coinbase.com/onramp/headless-onramp/overview#events-names

@bmc08gt bmc08gt self-assigned this May 19, 2026
@github-actions github-actions Bot added type: fix Bug fix area: onramp Deposit, purchase, Coinbase, fiat on-ramp and removed type: fix Bug fix labels May 19, 2026
@bmc08gt bmc08gt force-pushed the fix/onramp-error-codes branch from bafd718 to 2a2d6f5 Compare May 19, 2026 16:25
@github-actions github-actions Bot added the type: fix Bug fix label May 19, 2026
@bmc08gt bmc08gt force-pushed the fix/onramp-error-codes branch from 2a2d6f5 to c562923 Compare May 19, 2026 16:30
…by UI

Add 9 missing Coinbase headless onramp error codes and group related
errors into sealed subclass hierarchies (CardDeclined, BillingAddressInvalid,
InternalFailure, TransactionFailed, UnknownFailure) so the UI handler
matches on groups instead of individual variants. Fixes 4 TODO() crashes
in showOnRampFailure.

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt force-pushed the fix/onramp-error-codes branch from c562923 to 250d24c Compare May 19, 2026 16:32
@bmc08gt bmc08gt merged commit 19cfd04 into code/cash May 19, 2026
3 checks passed
@bmc08gt bmc08gt deleted the fix/onramp-error-codes branch May 19, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: onramp Deposit, purchase, Coinbase, fiat on-ramp type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant