Click to See Complete Forum and Search --> : PayPall - return success variables
Nightcat
07-07-2008, 08:36 AM
Hi guys
If anyone developed for PayPal payment system, may be you could point me in the right direction
I am making a site which has a payment button that sends a user to the PayPal site.
But I need to create a way for some feed back to know whether the transaction has been succesful or not.
do you know any tutorial on how to do that?
chazzy
07-07-2008, 09:11 AM
have you looked at the paypal developer's guide? it all depends on what API you're using.
Nightcat
07-07-2008, 09:28 AM
Well It goes in to PHP sitting on top of Windows
Here's the button code which takes the user to the PayPal page:
echo'<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="admin@tidalwaveuk.co.uk">
<input type="hidden" name="item_name" value="'.$item_name.'">
<input type="hidden" name="item_number" value="'.$order_id.'">
<input type="hidden" name="amount" value="'.$amount.'">
<input type="hidden" name="return" value="http://callback.php">
<input type="hidden" name="cancel_return" value="http://cancel.php">
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="image" src="https://www.paypal.com/en_GB/i/btn/btn_paynow_LG.gif" border="0" name="submit"
alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>';
I am still looking through the developers guide, but it proves rather difficult to work out :(
Nightcat
07-07-2008, 09:33 AM
I've looked through this one
https://www.paypal.com/IntegrationCenter/ic_pdt.html
But still a bit confused about how can I read this data in (it's my first time developing with PayPal)
chazzy
07-07-2008, 01:46 PM
i think you just use curl (or the like) once the user's already went through paypal.
Nightcat
07-08-2008, 04:45 AM
After checking all I could, the way provided in the link I gave on the top seems to be the best one.Although it's prety longwinded :)
sstalder
07-08-2008, 01:25 PM
Search for "Paypal IPN PHP" and you will see plenty of examples and topics.