Compare commits

...
Author SHA1 Message Date
Calum H. (IMB11) c729488b18 fix: lint 2026-07-24 17:02:52 +01:00
Calum H. (IMB11) 2a1d3d02de fix: better feedback for disabled by provider mural error 2026-07-24 16:59:29 +01:00
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',
@@ -2132,6 +2132,12 @@
"dashboard.withdraw.error.minimum-not-met.title": {
"message": "Amount too low"
},
"dashboard.withdraw.error.payout-method-disabled.text": {
"message": "This payout method has been disabled by the payment provider. Please use a different payout method or contact support."
},
"dashboard.withdraw.error.payout-method-disabled.title": {
"message": "Payout method unavailable"
},
"dashboard.withdraw.error.paypal-country-mismatch.text": {
"message": "Please use the correct PayPal transfer option for your region (US or International)."
},