simple paypal ipn

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
m2babaey
Forum Contributor
Posts: 364
Joined: Sun May 20, 2007 9:26 am

simple paypal ipn

Post by m2babaey »

Hi
I'm trying to code a simple paypal IPN. I'll need your help. thanks in advance
please check the process below and add your comments and help about the missing parts.
firstpage:

Code: Select all

[syntax="html"]
<form action="order.php" method="post">
What do you want to buy?<input type="text" name="product" ><br>
How many? <input type="text" name="num" ><br>
Your paypal id: <input type="text" name="email" ><br>
<input type="submit" name="sendorder">
</form>
[/syntax]

order.php:
//collect data from db to get the price and calculate the price
and show a confirmation page with readonly fields to send to paypal: ( with the correct values

Code: Select all

[HTML]<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
price <input type="text" name="num" readonly="readonly" value="<?php echo $price; ?>"><br>
Your paypal id: <input type="text" name="email" value="<?php echo $email; ?>" readonly="readonly"><br>
<input type="submit" name="confirmorder">
</form>[/HTML]
Ok
I have sent the info to paypal. then what happens?
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Have you read the paypal integration guide yet?
Post Reply