Terran Posted July 16, 2012 Share Posted July 16, 2012 Bonjour, J'ai un problème pour configurer mon bouton dinamyque Hipay, Tout dabort : La commande simple du flux html : <?xml version='1.0' encoding='utf-8' ?> <order> <userAccountId>1422018</userAccountId> <currency>EUR</currency> <label>order label</label> <ageGroup>ALL</ageGroup> <categoryId>665</categoryId> <urlAcquital><![CDATA[http://www.exemple.c...ittement.php]]></urlAcquital> <urlOk><![CDATA[http://www.exemple.com/ok.php]]></urlOk> <urlKo><![CDATA[http://www.exemple.com/ko.php]]></urlKo> <urlCancel><![CDATA[http://www.exemple.c...m/cancel.php]]></urlCancel> <urlInstall><![CDATA[http://www.exemple.c.../install.php]]></urlInstall> <urlLogo><![CDATA[http://www.exemple.com/logo.gif]]></urlLogo> <!-- optional --> <locale>fr_FR</locale> <issuerAccountLogin>[email protected]</issuerAccountLogin> <data> <nom1>value 1</nom1> <nom2>value 2</nom2> <nom3>value 3</nom3> </data> <items> <item id='1'> <name>first product name</name> <infos>first product description</infos> <amount>5.2</amount> <categoryId>665</categoryId> <quantity>1</quantity> <reference>REF1</reference> <taxes> <tax id='1'> <label>shipping</label> <amount>25</amount> </tax> <tax id='2'> <label>VAT</label> <amount>19.6%</amount> </tax> </taxes> </item> <item id='2'> <name>second product name</name> <infos>second product description</infos> <amount>2.14</amount> <categoryId>665</categoryId> <quantity>2</quantity> <reference>REF2</reference> <taxes> <tax id='1'> <label>VAT</label> <amount>19.6%</amount> </tax> <tax id='2'> <label>shipping</label> <amount>5.25</amount> </tax> </taxes> </item> </items> <affiliates> <affiliate id='22015'> <amount>15%</amount> </affiliate> <affiliate id='22015'> <amount>0.5</amount> </affiliate> </affiliates> </order> Le truc c'est ou je dois coller sa, et que mettre a la place des point d'intérogation, pour le reste je sais quoi mettre, Et aussi pour le code PHP: Toujour le meme probleme que mettre à la place des point d'intérogation <?php et ?> <?php /* * Var $data contain the XML string describing your order */ $data = trim($xml); // your website Hipay key $signKey = '6497e933fe14447aff0cada0b26de624'; $encodedData = base64_encode($data); $md5Sign = md5($encodedData.$signKey); // $md5Sign now contains signed datas ?> <form target='_blank' action='https://payment.hipay.com/index/form/' method='post' > <input type='hidden' name='mode' value='MODE_B' /> <input type='hidden' name='website_id' value='19793' /> <input type='hidden' name='sign' value="<?php echo $md5Sign ?>" /> <input type='hidden' name='data' value="<?php echo $encodedData ?>" /> <input type='image' name='send' src="https://payment.hipay.com/images/bt_payment3.gif" /> </form> Link to comment Share on other sites More sharing options...
franckm1000 Posted July 16, 2012 Share Posted July 16, 2012 Euhhhh...en fait les codes <?php ?> tu n'as rien à mettre c'est les balises d'entrée/sortie du PHP. En gros <?php siginifie qu'on rentre en PHP et ?> qu'on en sort. Link to comment Share on other sites More sharing options...
Terran Posted July 16, 2012 Author Share Posted July 16, 2012 Merci beaucoup, et s'avais vous ou je dois mettre la commande simple du flux html et le code php je doit le mettre dans "order payment.tpl" non? quand je le met sa me dis " ? caractère non suporté" je comprend rien, Merci Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now