recette2
parent
86326000ea
commit
da6048ce22
|
@ -917,6 +917,11 @@ function CheckOut(props) {
|
|||
|
||||
const change_nb_formations = event => {
|
||||
|
||||
if( String(payment_in_process) === "1"){
|
||||
// un payement est en cours, on ne modifie pas cette valeur
|
||||
return;
|
||||
}
|
||||
|
||||
let valeur = event.target.value;
|
||||
|
||||
if (String(props.packs).toLowerCase() === String("decouverte")) {
|
||||
|
|
|
@ -18,7 +18,7 @@ function OrderConfirmation_3DS(props) {
|
|||
useEffect(() => {
|
||||
|
||||
CheckSalesOrder();
|
||||
|
||||
|
||||
window.scrollTo(0, 0);
|
||||
}, []);
|
||||
|
||||
|
@ -44,7 +44,7 @@ function OrderConfirmation_3DS(props) {
|
|||
|
||||
axios.post(myurl, form).then(res => {
|
||||
|
||||
console.log(res.data.status, " -- ", res.data.message )
|
||||
console.log(res.data.status, " -- ", res.data.message)
|
||||
if (String(res.data.status) === String("true")) {
|
||||
setCheckSalesOrder_api("true");
|
||||
setCheckSalesOrder_result(String(res.data.message));
|
||||
|
@ -52,7 +52,7 @@ function OrderConfirmation_3DS(props) {
|
|||
if (JSON.parse(res.data.message).stripe_pi) {
|
||||
setstripe_payement_id(JSON.parse(res.data.message).stripe_pi);
|
||||
check_payement_finalise_order(JSON.parse(res.data.message).stripe_pi);
|
||||
}else{
|
||||
} else {
|
||||
setcheck_payement_finalise_order_api("false");
|
||||
}
|
||||
}
|
||||
|
@ -86,14 +86,14 @@ function OrderConfirmation_3DS(props) {
|
|||
formData_tpm.append('stripe_payment_id', stripe_pi);
|
||||
formData_tpm.append('packs', packs);
|
||||
|
||||
|
||||
|
||||
|
||||
var myurl = process.env.REACT_APP_API_URL + "myclass/api/payment_retrieve_status/";
|
||||
|
||||
axios.post(myurl, formData_tpm).then(res => {
|
||||
if (String(res.data.status) === String("true")) {
|
||||
setcheck_payement_finalise_order_api("true");
|
||||
|
||||
|
||||
|
||||
}
|
||||
else {
|
||||
|
@ -118,52 +118,57 @@ function OrderConfirmation_3DS(props) {
|
|||
|
||||
<h2 style={{ "textAlign": "center", "color": "green", "marginTop": "3rem" }}> Commande numéro : {orderid} </h2>
|
||||
|
||||
|
||||
|
||||
{String(CheckSalesOrder_api) === "true" && String(check_payement_finalise_order_api) === "true" &&
|
||||
<div className="div_row_central">
|
||||
|
||||
|
||||
Votre commande a été validée avec succès.<br />
|
||||
Votre pack <b> {String(packs).toLocaleUpperCase()} </b>se mettra à jour dès que vous aurez actualisé votre page.<br />
|
||||
Merci d'avoir choisi MySy Training.
|
||||
|
||||
<br />
|
||||
<br />
|
||||
Votre facture est disponible dans votre espace personnel.
|
||||
|
||||
<br />
|
||||
<br />
|
||||
Vous pouvez dès à present commencer à utiliser nos services.<br />
|
||||
Si vous avez d'aider n'hesitez pas à contacter notre équipe support par le chatbot (en bas de votre écran) ou mail.
|
||||
<br />
|
||||
</div>}
|
||||
|
||||
|
||||
{String(CheckSalesOrder_api) === "true" && String(check_payement_finalise_order_api) === "false" &&
|
||||
<div className="div_row_central koUpdateData">
|
||||
Le payement de la commande {String(orderid)} n'est pas passé .<br />
|
||||
Merci de contacter notre équipe support par le chatbot (en bas de votre écran) ou mail.
|
||||
|
||||
<br />
|
||||
|
||||
</div>}
|
||||
{String(CheckSalesOrder_api) === "true" && String(check_payement_finalise_order_api) === "true" &&
|
||||
<div className="div_row_central">
|
||||
|
||||
|
||||
{String(CheckSalesOrder_api) === "false" &&
|
||||
<div className="div_row_central koUpdateData">
|
||||
Impossible de trouver la commnde {String(orderid)} .<br />
|
||||
Merci de contacter notre équipe support par le chatbot (en bas de votre écran) ou mail.
|
||||
Votre commande a été prise en compte <br />
|
||||
Votre pack <b> {String(packs).toLocaleUpperCase()} </b>
|
||||
Merci d'avoir choisi MySy Training.
|
||||
|
||||
<br />
|
||||
<br />
|
||||
<nav style={{ "color": "orange", "textAlign": "center" }}> /!\ : Vous devez finaliser votre abonnement pour qu'il soit pris en comptant en cliquant sur le bouton ci-dessous 'je finalise mon abonnement'.
|
||||
<br />
|
||||
</nav>
|
||||
<br />
|
||||
Si vous avez besoin aide n'hesitez pas à contacter notre équipe support par le chatbot (en bas de votre écran) ou mail.
|
||||
<br />
|
||||
|
||||
<br />
|
||||
Votre facture est disponible dans votre espace personnel.
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
{String(CheckSalesOrder_api) === "true" && String(check_payement_finalise_order_api) === "false" &&
|
||||
<div className="div_row_central koUpdateData">
|
||||
Le payement de la commande {String(orderid)} n'est pas passé .<br />
|
||||
Merci de contacter notre équipe support par le chatbot (en bas de votre écran) ou mail.
|
||||
|
||||
<br />
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
{String(CheckSalesOrder_api) === "false" &&
|
||||
<div className="div_row_central koUpdateData">
|
||||
Impossible de trouver la commnde {String(orderid)} .<br />
|
||||
Merci de contacter notre équipe support par le chatbot (en bas de votre écran) ou mail.
|
||||
|
||||
<br />
|
||||
|
||||
</div>}
|
||||
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
<div className="div_row_central">
|
||||
<Button variant="contained" color="success" className="div_row22 btn_enreg_cmd"
|
||||
onClick={parent_retur_main_page}>Retour vers mon compte</Button>
|
||||
onClick={parent_retur_main_page}> IMPORTANT : Je finalise mon abonnement </Button>
|
||||
|
||||
</div>
|
||||
</div>}
|
||||
|
|
|
@ -1392,9 +1392,20 @@ const Recherche_new_v2 = () => {
|
|||
if (res.data.message.length <= 0) {
|
||||
setbesoinaiderecherche("1");
|
||||
}
|
||||
if (scrollDiv.current) {
|
||||
/*if (scrollDiv.current) {
|
||||
scrollDiv.current.scrollIntoView({ behavior: "smooth" });
|
||||
}*/
|
||||
|
||||
var myelement;
|
||||
|
||||
if (document.getElementById('rech_middlebox')) {
|
||||
myelement = document.getElementById('rech_middlebox');
|
||||
}
|
||||
|
||||
if (myelement) {
|
||||
myelement.scrollIntoView({ behavior: 'smooth' });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else {
|
||||
|
@ -3199,7 +3210,7 @@ const Recherche_new_v2 = () => {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{!displayAllmetiers && <div className="filter_metier_sous_block" onClick={DisplayAllmetier}>
|
||||
|
@ -3214,7 +3225,7 @@ const Recherche_new_v2 = () => {
|
|||
</div>
|
||||
</div>}
|
||||
|
||||
|
||||
|
||||
|
||||
{displayAllmetiers && <div className="filter_metier_sous_block">
|
||||
<div className="filter_metier_sous_block_content" onClick={getClassByMetier}>
|
||||
|
|
|
@ -332,6 +332,7 @@
|
|||
padding: 10px;
|
||||
width: 80%;
|
||||
border-radius: 5rem;
|
||||
font-size: medium;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -495,6 +496,7 @@
|
|||
padding: 10px;
|
||||
width: 80%;
|
||||
border-radius: 5rem;
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -661,6 +663,7 @@
|
|||
padding: 10px;
|
||||
width: 80%;
|
||||
border-radius: 5rem;
|
||||
font-size: medium;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue