in client/components/mma/paymentUpdate/dd/DirectDebitInputForm.tsx [86:103]
await processResponse<DirectDebitValidationResponse>(
validateDirectDebitDetailsFetch,
);
if (response && response.data.accountValid) {
setIsValidating(false);
props.executePaymentUpdate(newPaymentMethod);
} else if (response && response.data.goCardlessStatusCode === 429) {
setIsValidating(false);
setError(
'We cannot currently validate your bank details. Please try again later.',
);
} else {
setIsValidating(false);
setError(
'Your bank details are invalid. Please check them and try again.',
);
}