31 lines
1.3 KiB
PHP
Executable File
31 lines
1.3 KiB
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// ---------------------------------------------------
|
|
// Recup des valeurs nécessaires
|
|
// ---------------------------------------------------
|
|
if (isset($debug[1]) && $debug[1] == '1' ) echo 'paysFacLib' .$paysFacLib;
|
|
|
|
$amount =number_format( $totalCde , 2 , "." , "," );
|
|
$amount=$amount * 100;
|
|
|
|
$reqSelect="Select pwdCompte from `modepaie` WHERE idModePaie=1 ;";
|
|
$debugMsg .=monDebug(2,['reqSelect' => $reqSelect],'modePaie.formCompteVad.php');
|
|
$resConn=$idPdo->query($reqSelect);
|
|
if ($resConn) {
|
|
$res=$resConn->fetch(PDO::FETCH_ASSOC);
|
|
$secret=$res['pwdCompte'];
|
|
if (isset($debug[2]) && $debug[2] == '1' ) {echo '<br> secret= ' .$secret;}
|
|
}
|
|
|
|
// ---------------------------------------------------
|
|
// Préparation API
|
|
// ---------------------------------------------------
|
|
include ("modePaie.formCompteVad.appel.php");
|
|
|
|
// ---------------------------------------------------
|
|
// Bouton image ou class
|
|
// ---------------------------------------------------
|
|
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;');
|
|
// echo '</span>';
|
|
echo '<br>';
|
|
?>
|