diff --git a/plugins/cipf_plugin/php/paypal/update_user_payment.php b/plugins/cipf_plugin/php/paypal/update_user_payment.php index 8bc077c..5c28d7a 100644 --- a/plugins/cipf_plugin/php/paypal/update_user_payment.php +++ b/plugins/cipf_plugin/php/paypal/update_user_payment.php @@ -173,7 +173,6 @@ function success_payment_for_user_CIPF($user_id, $order_id) { set_card_renew_CIPF($user_id); set_payment_success_CIPF($user_id); - set_account_valid_CIPF($user_id); } diff --git a/plugins/cipf_plugin/php/profs_states.php b/plugins/cipf_plugin/php/profs_states.php index 5c67afb..780d777 100644 --- a/plugins/cipf_plugin/php/profs_states.php +++ b/plugins/cipf_plugin/php/profs_states.php @@ -11,7 +11,7 @@ if (!defined('ABSPATH')) { /* * [/] etat compte ('etat_compte') : -* 1. new . 'nouveau prof' -> ok 1/1 : [1: a l'inscription - ok] +* 1. new . 'nouveau prof' -> ok 1/1 : [1: at inscription - ok] * 2. to_pay . 'doit payer' -> ko 3/4 : [1: after form & new - ok], [2: after form choose paypal & expired - ok], [3: after payment failed - ok], [4: after transfert failed - ko] * 3. valid . 'carte valide' -> ko 1/2 : [1: after payment success - ok], [2: after transfert success - ko] * 4. waiting_invalid . 'en attente invalide' -> ok 1/1 : [1: after form choose transfert & expired - ok] @@ -19,24 +19,28 @@ if (!defined('ABSPATH')) { * 6. expired . 'carte expiree' -> ko 1/2 : [1: when prof access profil & expired - ok], [2: when event card expired fire - ko] * * [/] etat carte ('etat_carte') : -* - 'Commande' -* - 'Renouvellement' +* - 'Commande' -> ok 1/1 : [1: at inscription - ok] +* - 'Renouvellement' -> ko 1/1 : [1: after succees payement - ok] +* +* [ ] etat virement ('etat_virement') : +* - 'en attente' -> ko 0/1 : [1: after form validation $ virement checked - ok] +* - 'reçu' -> ko 0/1 : [1: after admin change it from front - ko] * * [ ] activation du compte ('compte-actif') : * - 'Actif' -> equivalent a etat compte [3] carte valide * - 'Inactif' -> equivalent a etat compte [2] doit payer * * [/] etat paiement ('etat_paiement') : -* - 'en_cours' -* - 'reussi' -* - 'echec' -* - 'aucun' +* - 'en_cours' -> ok 1/1 : [1: start payment - ok] +* - 'reussi' -> ok 1/1 : [1: after payment success - ok] +* - 'echec' -> ok 1/1 : [1: after payment failure - ok] +* - 'aucun' -> ok 2/2 : [1: default - ko], [2: after payment message is shown one time on profil page - ok] * * [/] type paiement ('paiement') : -* - 'Paypal' -* - 'Virement' +* - 'Paypal' -> ok 1/1 : [1: modified by diviformbuilder at form validation - ok] +* - 'Virement' -> ok 1/1 : [1: modified by diviformbuilder at form validation - ok] * -* [/] numero de carte ('numero_de_la_carte') +* [/] numero de carte ('numero_de_la_carte') -> ok 1/1 : [1: after payment & card is 'commande' - ok] * */ diff --git a/private b/private index 34a4150..6fea9ac 160000 --- a/private +++ b/private @@ -1 +1 @@ -Subproject commit 34a41504e4bfb6476322cfed48d9226a30bbaf89 +Subproject commit 6fea9ace62f43bf1e2dd53a29f909065a10c35ab