$sDateEcheance4 = ""; // montant �ch�ance 4 - format "xxxxx.yy" (no spaces) //$sMontantEcheance4 = "0.25" . $sDevise; $sMontantEcheance4 = ""; // ============================================================================================================================================================= // FIN SECTION PAIEMENT // // END PAYMENT SECTION // ============================================================================================================================================================= // ============================================================================================================================================================= // SECTION CODE : Cette section ne doit pas être modifiée // // CODE SECTION : This section must not be modified // ============================================================================================================================================================= $oEpt = new MoneticoPaiement_Ept($sLangue); $oHmac = new MoneticoPaiement_Hmac($oEpt); // Control String for support $CtlHmac = sprintf(MONETICOPAIEMENT_CTLHMAC, $oEpt->sVersion, $oEpt->sNumero, $oHmac->computeHmac(sprintf(MONETICOPAIEMENT_CTLHMACSTR, $oEpt->sVersion, $oEpt->sNumero))); // Data to certify $phase1go_fields = sprintf(MONETICOPAIEMENT_phase1go_fields, $oEpt->sNumero, $sDate, $sMontant, $sDevise, $sReference, $sTexteLibre, $oEpt->sVersion, $oEpt->sLangue, $oEpt->sCodeSociete, $sEmail, $sNbrEch, $sDateEcheance1, $sMontantEcheance1, $sDateEcheance2, $sMontantEcheance2, $sDateEcheance3, $sMontantEcheance3, $sDateEcheance4, $sMontantEcheance4, $sOptions); // MAC computation $sMAC = $oHmac->computeHmac($phase1go_fields); // ============================================================================================================================================================= // FIN SECTION CODE // // END CODE SECTION // ============================================================================================================================================================= ?> <!--============================================================================================================================================================ SECTION PAGE HTML
// // END INCLUDE SECTION // ============================================================================================================================================================= // ============================================================================================================================================================= // SECTION CODE : Cette section ne doit pas être modifiée // // CODE SECTION : This section must not be modified // ============================================================================================================================================================= // Begin Main : Retrieve Variables posted by Monetico Paiement Server $MoneticoPaiement_bruteVars = getMethode(); // TPE init variables $oEpt = new MoneticoPaiement_Ept(); $oHmac = new MoneticoPaiement_Hmac($oEpt); // Message Authentication $phase2back_fields = sprintf(MONETICOPAIEMENT_PHASE2BACK_FIELDS, $oEpt->sNumero, $MoneticoPaiement_bruteVars["date"], $MoneticoPaiement_bruteVars['montant'], $MoneticoPaiement_bruteVars['reference'], $MoneticoPaiement_bruteVars['texte-libre'], $oEpt->sVersion, $MoneticoPaiement_bruteVars['code-retour'], $MoneticoPaiement_bruteVars['cvx'], $MoneticoPaiement_bruteVars['vld'], $MoneticoPaiement_bruteVars['brand'], $MoneticoPaiement_bruteVars['status3ds'], $MoneticoPaiement_bruteVars['numauto'], $MoneticoPaiement_bruteVars['motifrefus'],