simple paypal ipn
Posted: Sat Aug 11, 2007 12:07 am
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:[/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
Ok
I have sent the info to paypal. then what happens?
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>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]I have sent the info to paypal. then what happens?