You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(onramp): align Coinbase error codes with official docs and group 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>
<stringname="error_description_onrampTransactionAvsValidationFailed">Please check that your billing address is correct and try again</string>
572
572
573
+
<stringname="error_title_onrampInvalidBillingName">Billing Name Invalid</string>
574
+
<stringname="error_description_onrampInvalidBillingName">Please check that the name on your card matches your billing name and try again</string>
575
+
573
576
<stringname="error_title_onrampTransactionFailed">Something Went Wrong</string>
574
577
<stringname="error_description_onrampTransactionFailed">The Coinbase team has been notified and is investigating the issue. Your funds will arrive once resolved. We appreciate your patience</string>
Copy file name to clipboardExpand all lines: apps/flipcash/shared/onramp/coinbase/src/main/kotlin/com/flipcash/app/onramp/internal/CoinbaseOnRampEventHandler.kt
+73-22Lines changed: 73 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -265,39 +265,90 @@ internal class CoinbaseOnRampEventHandler(
0 commit comments