Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1887 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  panier avec paypal, help !!

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

panier avec paypal, help !!

n°1907166
oli1987
Posté le 21-07-2009 à 12:28:04  profilanswer
 

Bonjour,
 
J'ai créé un panier pour une connaissance (http://www.nutrition-globale.be/index.php?rub=4), mais je dois désormais le synchroniser avec le service paypal. Un service que je n'ai jamais utilisé ! Je ne sais pas du tout comment m'y prendre.
 
Pouvez-vous m'indiquer la marche à suivre ?
 
D'avance, merci !

mood
Publicité
Posté le 21-07-2009 à 12:28:04  profilanswer
 

n°1907183
jagstang
Pa Capona ಠ_ಠ
Posté le 21-07-2009 à 13:12:55  profilanswer
 

lire la doc  
https://cms.paypal.com/us/cgi-bin/? [...] tation#wps
 


---------------
What if I were smiling and running into your arms? Would you see then what I see now?  
n°1907206
oli1987
Posté le 21-07-2009 à 14:02:39  profilanswer
 

j'ai trouvé un tuto (http://www.lafermeduweb.net/billet/tutorial-integrer-paypal-a-son-site-web-en-php-partie-2-276.html#tests) ...
 
Je cale sur le "Essais de paiements avec les comptes de test".
 
La page vers sandbow s'ouvre bien, je me connecte avec mon compte, mais je n'ai aucune possibilité de valider l'achat ...
 
Voici pourtant le code de mon formulaire (celui du panier) ... Je suis un peu paumé ...
 

Code :
  1. <form method="post" action="https://www.sandbox.paypal.com/cgi-bin/webscr">
  2. <table style="width: 600px">
  3. <tr>
  4. <th>Réf. produit</th>
  5. <th>Quantité</th>
  6. <th>Prix Unitaire</th>
  7. <th>Action</th>
  8. </tr>
  9. <?php
  10. if (creationPanier()){
  11. $nbArticles=count($_SESSION['panier']['libelleProduit']);
  12. if ($nbArticles <= 0)
  13. echo "<tr><td><b>Votre panier est vide</b></td></tr>";
  14. else
  15. {
  16. for ($i=0 ;$i < $nbArticles ; $i++)
  17. {
  18. echo "<tr>";
  19. echo "<td>".htmlspecialchars($_SESSION['panier']['libelleProduit'][$i])."</ td>";
  20. echo "<td>".htmlspecialchars($_SESSION['panier']['qteProduit'][$i])."</td>";
  21. echo "<td>".htmlspecialchars($_SESSION['panier']['prixProduit'][$i])." €</td>";
  22. echo "<td><a href=\"".htmlspecialchars("index.php?rub=4&action=suppression&l=".rawurlencode($_SESSION['panier']['libelleProduit'][$i]))."\">Supprimer</a></td>";
  23. echo "</tr>";
  24. }
  25. echo "<tr>";
  26. echo "<th colspan=\"4\">";
  27. echo "Total : <b>".MontantGlobal()." €</b>";
  28. echo "</th></tr>";
  29. echo "<tr><td colspan=\"4\">";
  30. echo "<input name=\"submit\" src=\"https://www.paypal.com/fr_FR/FR/i/btn/btn_buynow_LG.gif\" type=\"image\" /><img src=\"https://www.paypal.com/fr_FR/i/scr/pixel.gif\" border=\"0\" alt=\"\" width=\"1\" height=\"1\" />";
  31. echo "<input type=\"hidden\" name=\"currency_code\" value=\"EUR\">";
  32. echo "</td></tr>";
  33. echo "Payement par virement au numéro de compte suivant : .";
  34. }
  35. }
  36. ?>
  37. </table>
  38. <input name="amount" type="hidden" value="<?php echo MontantGlobal(); ?>" />
  39. <input name="shipping" type="hidden" value="0.00" />
  40. <input name="tax" type="hidden" value="0.00" />
  41. <input name="return" type="hidden" value="http://www.nutrition-globale.be/ok.php" />
  42. <input name="cancel_return" type="hidden" value="http://www.nutrition-globale.be/ko.php" />
  43. <input name="notify_url" type="hidden" value="http://www.nutrition-globale.be/valid.php" />
  44. <input name="business" type="hidden" value="webmaster@bcml.be" />
  45. <input name="no_note" type="hidden" value="1" />
  46. <input name="lc" type="hidden" value="FR" />
  47. <input name="bn" type="hidden" value="PP-BuyNowBF" />
  48. <input name="custom" type="hidden" value="ID_ACHETEUR" />
  49. </form>

n°1907239
grosbin
OR die;
Posté le 21-07-2009 à 14:33:46  profilanswer
 

petit à petit on y parvient ( il est plus simple à intégrer, avec les items & le code de retour )


---------------
Photos Panoramiques Montagnes Haute Savoie
n°1907262
oli1987
Posté le 21-07-2009 à 14:51:48  profilanswer
 

Ha ...
 
Tu ne vois pas ce qui cloche dans mon code ?


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  panier avec paypal, help !!

 

Sujets relatifs
help me, script pour AD boite de dialogue et généré fichierHelp - Menu CSS sous Joomla
help servlet ejbPaypal IPN qui reviennent constamment en mode sandbox
Problème avec le système de Don PaypalProgrammer en C help SVP microchip PIC18F
debutant java helpHELP - qui peux crack un fichier excel
[SQL] Etablir un MCD des relations d'une base relationnelle[HELP]Help Help Help Please pour catalogue en 4 colonnes
Plus de sujets relatifs à : panier avec paypal, help !!


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR