Terran Posted July 14, 2012 Share Posted July 14, 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...
Hi-media_SupportIT Posted July 16, 2012 Share Posted July 16, 2012 Bonjour, Si vous souhaitez utiliser Hipay sur votre site Prestashop, il n'est pas nécessaire de créer un bouton de paiement dynamique. Dans votre backoffice, cliquez sur "Modules" et "Configurer" au niveau du module HIpay dans l'onglet "Paiement". Entrez vos informations de connexion et validez. Si vous souhaitez installer les boutons dynamiques Hipay, contactez nous à technique @ hipay.com afin d'obtenir la documentation technique. Cordialement, Support IT Hi-media 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