update in the front end showing user payment details persistance
This commit is contained in:
parent
f977b7298e
commit
a8d5b8e735
|
|
@ -181,6 +181,7 @@ const JKPaymentMethod = () => {
|
||||||
|
|
||||||
const handleUpdatePayment = (token) => {
|
const handleUpdatePayment = (token) => {
|
||||||
updatePayment({ recurly_token: token.id }).then((response) => {
|
updatePayment({ recurly_token: token.id }).then((response) => {
|
||||||
|
setHasStoredCreditCard(true);
|
||||||
toast.success(t('payment_method.alerts.payment_method_updated'));
|
toast.success(t('payment_method.alerts.payment_method_updated'));
|
||||||
}).catch((error) => {
|
}).catch((error) => {
|
||||||
console.error('Error updating payment with PayPal token:', error);
|
console.error('Error updating payment with PayPal token:', error);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue