(PHP 4 >= 4.0.5)
cybermut_creerformulairecm -- Generate HTML form of request for payment
Description
string
cybermut_creerformulairecm ( string url_CM, string version, string TPE, string montant, string ref_commande, string texte_libre, string url_retour, string url_retour_ok, string url_retour_err, string langue, string code_societe, string texte_bouton)
cybermut_creerformulairecm() is used to generate the
HTML form of request for payment.
Example 1. First step of payment (equiv cgi1.c) <?php
// Directory where are located the keys
putenv("CMKEYDIR=/var/creditmut/cles");
// Version number
$VERSION="1.2";
$retour = cybermut_creerformulairecm(
"https://www.creditmutuel.fr/test/telepaiement/paiement.cgi",
$VERSION,
"1234567890",
"300FRF",
$REFERENCE,
$TEXTE_LIBRE,
$URL_RETOUR,
$URL_RETOUR_OK,
$URL_RETOUR_ERR,
"francais",
"company",
"Paiement par carte bancaire");
echo $retour;
?> |
|
See also
cybermut_testmac() and
cybermut_creerreponsecm().