From c69df03c7578a57f651dd76c31c4bdbb7649107f Mon Sep 17 00:00:00 2001 From: asus Date: Wed, 20 Mar 2024 17:07:41 +0100 Subject: [PATCH] update making card renew after paiement only if it was new --- plugins/cipf_plugin/php/paypal/update_user_payment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/cipf_plugin/php/paypal/update_user_payment.php b/plugins/cipf_plugin/php/paypal/update_user_payment.php index ba27c1b..422dd77 100644 --- a/plugins/cipf_plugin/php/paypal/update_user_payment.php +++ b/plugins/cipf_plugin/php/paypal/update_user_payment.php @@ -169,8 +169,8 @@ function success_payment_for_user_CIPF($user_id, $order_id) { if (is_card_new_CIPF()) { set_card_number_CIPF($user_id); + set_card_renew_CIPF($user_id); } - set_card_renew_CIPF($user_id); set_payment_success_CIPF($user_id); }