merie-nico Posté 10 Octobre 2009 Posté 10 Octobre 2009 bonjour a tous j'essais de mettre en place un script allopass, malgré avoir suivit les exemples du site je me retrouve à chaque fois avec un " erreur, le code rentré est non valide" alors que je fais cet essais avec le code de test j'en deduit donc que l'erreur viens dans l'interrogation de l'api allopass voici la page de soumission <?phpecho '<div class="titreNews">Achat de partie au jeu évenement</div><center>' ;?><center>- 1 Code vous donne droit à 20 parties pour le jeu évenement !<br /><br /></center><br /><br /><div style="width:300px;font-family:Arial,Helvetica,sans-serif;font-size:10px;background-color:#ffffff;color:#000"> <div style="height:25px;text-align:center"> <img src="http://payment.allopass.com/imgweb/script/fr_uk/acces_title.jpg" width="300" height="25" alt="Logo" /> </div> <div style="height:137px;text-align:center"> <img name="acces_top" src="http://payment.allopass.com/acte/scripts/popup/top.apu?ids=176626&idd=483386〈=fr" width="300" height="137" alt="" /> </div> <div style="width:300px;text-align:right"> <img src="http://payment.allopass.com/imgweb/script/fr_uk/acces_left.jpg" width="79" height="29" alt="" style="float:left" /> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=fr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_fr.gif" width="35" height="29" alt="FR" title="FR" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=zz','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_zz.gif" width="35" height="29" alt="ZZ" title="ZZ" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=be','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_be.gif" width="35" height="29" alt="BE" title="BE" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=ch','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ch.gif" width="35" height="29" alt="CH" title="CH" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=lu','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_lu.gif" width="35" height="29" alt="LU" title="LU" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=de','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_de.gif" width="35" height="29" alt="DE" title="DE" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=uk','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_uk.gif" width="35" height="29" alt="UK" title="UK" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=ca','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ca.gif" width="35" height="29" alt="CA" title="CA" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=au','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_au.gif" width="35" height="29" alt="AU" title="AU" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=nl','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_nl.gif" width="35" height="29" alt="NL" title="NL" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=es','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_es.gif" width="35" height="29" alt="ES" title="ES" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=at','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_at.gif" width="35" height="29" alt="AT" title="AT" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=it','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_it.gif" width="35" height="29" alt="IT" title="IT" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=pt','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_pt.gif" width="35" height="29" alt="PT" title="PT" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=us','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_us.gif" width="35" height="29" alt="US" title="US" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=se','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_se.gif" width="35" height="29" alt="SE" title="SE" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=no','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_no.gif" width="35" height="29" alt="NO" title="NO" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=dk','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_dk.gif" width="35" height="29" alt="DK" title="DK" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=fi','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_fi.gif" width="35" height="29" alt="FI" title="FI" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=gr','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_gr.gif" width="35" height="29" alt="GR" title="GR" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=il','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_il.gif" width="35" height="29" alt="IL" title="IL" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=cz','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_cz.gif" width="35" height="29" alt="CZ" title="CZ" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=pl','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_pl.gif" width="35" height="29" alt="PL" title="PL" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=lt','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_lt.gif" width="35" height="29" alt="LT" title="LT" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=ru','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ru.gif" width="35" height="29" alt="RU" title="RU" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=ee','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ee.gif" width="35" height="29" alt="EE" title="EE" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=ro','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ro.gif" width="35" height="29" alt="RO" title="RO" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=pe','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_pe.gif" width="35" height="29" alt="PE" title="PE" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=lv','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_lv.gif" width="35" height="29" alt="LV" title="LV" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=sk','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_sk.gif" width="35" height="29" alt="SK" title="SK" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=bg','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_bg.gif" width="35" height="29" alt="BG" title="BG" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=hu','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_hu.gif" width="35" height="29" alt="HU" title="HU" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=kz','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_kz.gif" width="35" height="29" alt="KZ" title="KZ" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=ec','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_ec.gif" width="35" height="29" alt="EC" title="EC" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=mx','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_mx.gif" width="35" height="29" alt="MX" title="MX" /></a> <a href="javascript:;" onclick="javascript:window.open('http://payment.allopass.com/acte/scripts/popup/access.apu?ids=176626&idd=483386〈=fr&country=co','phone','toolbar=0,location=0,directories=0,status=0,scrollbars=0,resizable=0,copyhistory=0,menuBar=0,width=300,height=340');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_co.gif" width="35" height="29" alt="CO" title="CO" /></a> <a href="javascript:;" onclick="javascript:window.open('http://www.allopass.com/popup.php4?op=6&ADV=13593420','myallopass','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=625,height=400');"><img border="0" src="http://payment.allopass.com/imgweb/common/flag_myallopass.gif" width="35" height="29" alt="Myallopass" title="Myallopass" /></a> </div> <form name="APform" action="?page=achat_partie_now" method="post" style="text-align:center;clear:both"><input type="hidden" name="ids" value="176626" /><input type="hidden" name="idd" value="483386" /><input type="hidden" name="lang" value="fr" /> <strong>Entrez votre code d'accès - <br />Enter your access code</strong><br /><br /> <input name="RECALL" type="text" id="RECALL" style="background-color:#e7e7e7;border:#000080 1px solid;color:#000080;cursor:text;font-family:Arial;font-size:10pt;font-weight:bold;letter-spacing:normal;width:70px;text-align:center;" value="" size="8" maxlength="10" /> <br /><br /> Champ facultatif <input type="text" name="myallopass_email" onfocus="if (this.form.myallopass_email.value=='email My allopass') this.form.myallopass_email.value=''" value="email My allopass" style="margin-top: 2px; font-weight: bold; color: #AF1717; border: 1px solid #000000; font-size: 10px; height: 17px;" size="17" maxlenght="100"/> <input type="button" name="APsub" value="" onclick="this.form.submit();this.form.APsub.disabled=true;" style="border:0px;margin:0px;padding:0px;width:48px;height:18px;background:url('http://payment.allopass.com/imgweb/common/bt_ok.gif');" /><br /> </form> <div style="width:300px;text-align:left;margin-top:3px;border:0"> <div style="background-color:#e1e2fe;font-size:10px;padding:2px"> Document compatible <strong><span style="color:#ff9900;">My</span> <span style="color:#000084;">allopass</span></strong>. N'oubliez pas d'insérer votre adresse email pour gagner sur My allopass ! <a href="#null" onclick="window.open('http://www.allopass.com/popup.php4?op=6&ADV=13593420','myallopass','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=625,height=400');">Plus d'infos</a> </div> </div> <div style="width:300px;text-align:center;background-color:#ffffff"> <a href="#null" onclick="window.open('https://payment.allopass.com/acte/creditcard/purchase.apu?ids=176626&idd=483386〈=fr','ccard','toolbar=0,location=0,directories=0,status=1,scrollbars=1,resizable=1,copyhistory=0,menuBar=0,width=550,height=575');"> <img src="http://payment.allopass.com/imgweb/script/fr_uk/achat_cc.jpg" border="0" alt="If your country is not listed, click here"> </a> </div> Pour connaître notre solution de micro paiement : <a href="http://fr.allopass.com/" target="_blank">Allopass</a></div><?phpecho '</center>' ;?> et voici la page d'atterissage <?phpecho 'Recherche en cour...' ; $RECALL = $_POST["RECALL"]; if( trim($RECALL) == "" ) { // La variable RECALL est vide, renvoi de l'internaute // vers une page d'erreurecho '<script language="javascript" type="text/javascript"><!--window.location.replace("?page=achat_partie_error");--></script>' ; exit(1); } // $RECALL contient le code d'accès $RECALL = urlencode( $RECALL ); // $AUTH doit contenir l'identifiant de VOTRE document $AUTH = urlencode( "176626/483386/3272490" ); /** * envoi de la requête vers le serveur AlloPAss * dans la variable $r[0] on aura la réponse du serveur * dans la variable $r[1] on aura le code du pays d'appel de l'internaute * (FR,BE,UK,DE,CH,CA,LU,IT,ES,AT,...) * Dans le cas du multicode, on aura également $r[2],$r[3] etc... * contenant à chaque fois le résultat et le code pays. */ $r = _AT_file( "http://payment.allopass.com/api/checkcode.apu?code=$RECALL&auth=$AUTH" ); // on teste la réponse du serveur if( substr( $r[0],0,2 ) != "OK" ) { // Le serveur a répondu ERR ou NOK : l'accès est donc refuséecho '<script language="javascript" type="text/javascript"><!--window.location.replace("?page=achat_partie_error");--></script>' ; exit(1); } /** * Le code est valide ! * on place un cookie appelé CODE_OK et qui vaut la valeur 1 * Ce cookie est valide jusqu'à ce que l'internaute ferme son navigateur * Dans les pages suivantes, il n'y aura plus qu'à tester l'existence du cookie * S'il existe, c'est que l'internaute est autorisé, * sinon on le renverra sur une page d'erreur */$new_nbr_game = $info_membre['nbr_partie_jeu'] + 20 ;mysql_query("UPDATE membre SET nbr_partie_jeu='$new_nbr_game' WHERE id='$membreid'") ;echo '<script language="javascript" type="text/javascript"><!--window.location.replace("?page=achat_partie_ok");--></script>' ; /** * Remplacez dans la ligne ci-dessus ".mondomaine.com" par le nom de domaine * de votre site! * Par exemple, si votre site est accessible à l'adresse : * http://perso.herbergeur.com/mapage * alors il faudra que vous mettiez ".herbergeur.com" * (n'oubliez pas le "." devant le nom de domaine !!) */?> enfin la page qui apparait en cas de bon code <?phpecho '<div class="titreNews">Validation du code allopass</div><div class="news">Félicitation. Vous avez été créditer de 20 parties au jeu évenementiel.</div>' ;?> Ceux qui ont déja eu a faire à ce genre de soucis pourrait me filer un petit coup de pouce?
Sujets conseillés
Veuillez vous connecter pour commenter
Vous pourrez laisser un commentaire après vous êtes connecté.
Connectez-vous maintenant