fix: better feedback for disabled by provider mural error (#6854)

* fix: better feedback for disabled by provider mural error

* fix: lint
This commit is contained in:
Calum H.
2026-07-24 16:50:46 +00:00
committed by GitHub
parent dfc2ed3783
commit 707722ded6
2 changed files with 27 additions and 0 deletions
@@ -429,6 +429,18 @@ function getWithdrawalError(
// === MuralPay-only patterns ===
if (provider === 'muralpay') {
const muralError = error?.data?.details
if (
muralError?.name === 'PayoutMethodError' &&
muralError?.params?.payoutMethodErrorReason === 'DISABLED_BY_PROVIDER'
) {
return {
title: formatMessage(messages.errorPayoutMethodDisabledTitle),
text: formatBilingualText(messages.errorPayoutMethodDisabledText),
supportData,
}
}
// Invalid crypto wallet address
if (
(description.includes('wallet') && description.includes('invalid')) ||
@@ -641,6 +653,15 @@ const messages = defineMessages({
defaultMessage:
'The bank account details you provided are invalid. Please verify your information.',
},
errorPayoutMethodDisabledTitle: {
id: 'dashboard.withdraw.error.payout-method-disabled.title',
defaultMessage: 'Payout method unavailable',
},
errorPayoutMethodDisabledText: {
id: 'dashboard.withdraw.error.payout-method-disabled.text',
defaultMessage:
'This payout method has been disabled by the payment provider. Please use a different payout method or contact support.',
},
errorInvalidAddressTitle: {
id: 'dashboard.withdraw.error.invalid-address.title',
defaultMessage: 'Address verification failed',