alpha_full/pages/panier/lyra/modePaie.formLyra.php
2026-04-06 22:58:51 +02:00

54 lines
2.0 KiB
PHP
Executable File

<?php
$nomFicAppelant = basename(__FILE__);
// ---------------------------------------------------
// Recup des valeurs nécessaires
// ---------------------------------------------------
for($j=0; $j<count($tableCivLib); $j++) {
if ($tableCivLib[$j]==$civ)
{$civFacLib=$tableCivLib[$j]. '';}
if ($tableCivLib[$j]==$civLiv)
{$civLivLib= $tableCivLib[$j];}
}
for($j=0; $j<count($tabIdPays) ; $j++) {
if ($tabIdPays[$j]==$idPaysFact) {
$paysFacLib=strtoupper($tabLibPays[$j]);
$codeIsoPaysFac=strtoupper($tabCodeIsoPays[$j]);
}
if ($tabIdPays[$j]==$idPaysLiv) {
$paysLivLib=strtoupper($tabLibPays[$j]);
$codeIsoPaysLib=strtoupper($tabCodeIsoPays[$j]);
}
}
if (isset($debug[1]) && $debug[1] == '1' ) echo 'paysFacLib' .$paysFacLib;
$amount = ($totalCde);
$amount = str_replace( ",",".",$totalCde);
$amount =number_format( $amount , 2 , '.' , ',' );
$amount = ($amount) / 100;
// ---------------------------------------------------
// Requete credentials
// ---------------------------------------------------
include ("reqSelectLyra.php");
// ---------------------------------------------------
// Préparation API
// ---------------------------------------------------
include ("modePaie.formLyra.appel.php");
// ---------------------------------------------------
// Bouton payer ou valider
// ---------------------------------------------------
$payment_url= "./pages/panier/lyra/paiementFormLyra.php";
if ($codeOpe==="upCommentaire") {
// dynamiqItemImage (0, 0, 'boutons', 'span', 'onClick="self.location.href = \'' .$payment_url. '\';"', 'bouton', 17, 'icones', '-textClass-','grid-column:1 / span 2;margin:auto;max-width:20%;margin-bottom:10px;');
include ($payment_url);
}
else {
dynamiqItemImage (0, 0, 'boutons', 'span', 'onClick="upCommentaire();"', 'bouton', 5, 'icones', '-textClass-','margin:auto; max-width:29%; margin-bottom:10px;');
}
echo '<br>';
?>