update in the front end showing user payment details persistance

This commit is contained in:
Nuwan 2025-07-29 22:37:54 +05:30
parent f977b7298e
commit a8d5b8e735
1 changed files with 1 additions and 0 deletions

View File

@ -181,6 +181,7 @@ const JKPaymentMethod = () => {
const handleUpdatePayment = (token) => {
updatePayment({ recurly_token: token.id }).then((response) => {
setHasStoredCreditCard(true);
toast.success(t('payment_method.alerts.payment_method_updated'));
}).catch((error) => {
console.error('Error updating payment with PayPal token:', error);