I'v been googling for more than 1 week but I don't seem to find any answer for my question. unfortunatly there are not many articles about using Paypal in a self made script.
I looked at the oscommerce source and found the code to use PayPal.
Here it is :
Expand|Select|Wrap|Line Numbers
- <form name="checkout_confirmation" action="https://secure.paypal.com/cgi-bin/webscr" method="post">
- <input type="hidden" name="cmd" value="_xclick">
- <input type="hidden" name="business" value="myemail@provider.com">
- <input type="hidden" name="item_name" value="fresh OSCommerce Store">
- <input type="hidden" name="amount" value="221.96">
- <input type="hidden" name="shipping" value="5.00">
- <input type="hidden" name="currency_code" value="USD">
- <input type="hidden" name="return" value="http://netmotor.se/checkout_process.php">
- <input type="hidden" name="cancel_return" value="http://netmotor.se/checkout_payment.php">
- <input type="image" src="includes/languages/english/images/buttons/button_confirm_order.gif" border="0" alt="Confirm Order" title=" Confirm Order ">
- </form>
Lets say 5 customers order products at the same time and pay with PayPal.
SO, The question is how we can see which order is payed . I mean is there a way to send the order ID to PayPal . The seller needs to check if the payment is done correctly before he sends the product.
Any suggestion will be appreciated
Thanks