diff --git a/ts/features/payments/details/screens/PaymentsMethodDetailsScreen.tsx b/ts/features/payments/details/screens/PaymentsMethodDetailsScreen.tsx index 225b04bf453..04983ed903e 100644 --- a/ts/features/payments/details/screens/PaymentsMethodDetailsScreen.tsx +++ b/ts/features/payments/details/screens/PaymentsMethodDetailsScreen.tsx @@ -90,14 +90,20 @@ const PaymentsMethodDetailsScreen = () => { }; const getCardHeaderTitle = (details?: UIWalletInfoDetails) => { - if (details?.lastFourDigits !== undefined) { - const capitalizedCardCircuit = capitalize( - details.brand?.toLowerCase() ?? "" - ); - return `${capitalizedCardCircuit} ••${details.lastFourDigits}`; + switch (details?.type) { + case "BPAY": + return "BANCOMAT Pay"; + case "PAYPAL": + return "PayPal"; + default: + if (details?.lastFourDigits !== undefined) { + const capitalizedCardCircuit = capitalize( + details.brand?.toLowerCase() ?? "" + ); + return `${capitalizedCardCircuit} ••${details.lastFourDigits}`; + } + return ""; } - - return ""; }; export default PaymentsMethodDetailsScreen;