Bonjour,
https://github.com/sanwebe/Paypal-Ex...eckout-Example
J'ai installé ceci sur un site, tout fonctionne bien donc ! C'est l'ancienne API de PayPal, la nouvelle j'y comprend rien .
Ce qui est cool c'est qu'avec l'ancienne API j'en suis satisfait, alors voici le problème:
- Ouvrez index.php
il y a ceci dedans:
1 2 3 4 5 6 7 8
| <form method="post" action="process.php?paypal=checkout">
<input type="hidden" name="itemname" value="Canon EOS Rebel XS" />
<input type="hidden" name="itemnumber" value="1" />
<input type="hidden" name="itemdesc" value="Capture all your special moments with the Canon EOS Rebel XS/1000D DSLR camera and cherish the memories over and over again." />
<input type="hidden" name="itemprice" value="225.00" />
Quantity : <select name="itemQty"><option value="1">1</option><option value="2">2</option><option value="3">3</option></select>
<input class="dw_button" type="submit" name="submitbutt" value="Buy (225.00 <?php echo PPL_CURRENCY_CODE; ?>)" />
</form> |
J'ai ajouté un nouvel input perso qui est:
<input type="hidden" name="xid" value="id_dun_compte" />
- Ensuite ouvrez process.php, à la ligne 30 j'ai ajouté:
$products[0]['xid'] = _POST('xid'); // Item personnel
- Ensuite ouvrez paypal.class.php, à la ligne 241 j'ai ajouté echo $products[0]['xid'] mais elle ne se récupère pas, comment il faudrait gérer ça ?
Merci,
Cdl
Partager