Advertisement
Guest User

formulaire

a guest
Jul 6th, 2017
1,022
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.48 KB | None | 0 0
  1. <?php
  2. session_start();
  3. require_once('../config/baseDonnees.php');
  4. require_once('../inc/head.php');
  5.  
  6. ?>
  7.  
  8. <h3><center>TUTO</center></h3>
  9.     <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
  10.  
  11.                                     <select name="amount">
  12.                                         <option value="10">Offre 1</option>
  13.                                     </select>
  14.  
  15.                                     <input name="currency_code" type="hidden" value="EUR" />
  16.                                     <input name="shipping" type="hidden" value="0.00" />
  17.                                     <input name="tax" type="hidden" value="0.00" />
  18.  
  19.                                     <input name="return" type="hidden" value="http://craftacms.fr/credit/success.php" />
  20.                                     <input name="cancel_return" type="hidden" value="http://craftacms.fr/credit/cancel.php" />
  21.                                     <input name="notify_url" type="hidden" value="http://craftacms.fr/credit/ipn.php" />
  22.  
  23.                                     <input name="cmd" type="hidden" value="_xclick" />
  24.                                     <input name="business" type="hidden" value="[email protected]" />
  25.                                     <input name="item_name" type="hidden" value="Achat de 100 point" />
  26.                                     <input name="no_note" type="hidden" value="1" />
  27.                                     <input name="lc" type="hidden" value="FR" />
  28.                                     <input name="bn" type="hidden" value="PP-BuyNowBF" />
  29.                                     <input name="custom" type="hidden" value="id=<?php echo $_SESSION['utilisateur'];?>" />
  30.  
  31.                                            
  32.  
  33.                                 </td>
  34.                                 <td>
  35.                                         <center>
  36.                                             <input type="submit"  />
  37.                                         </center>
  38.                                     </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement