ded Posted March 18, 2010 Share Posted March 18, 2010 I know how to send paypal the item information, pricing, quantity, etc etc etc. How do I send paypal a session ID that they will return to me once the payment has been processed? Regards, DED Link to comment https://forums.phpfreaks.com/topic/195634-php-with-paypal/ Share on other sites More sharing options...
teamatomic Posted March 18, 2010 Share Posted March 18, 2010 <input type="hidden" name="return" value="http://yourDomain.com/success.php?<?php echo strip_tags(SID);?>"> HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/195634-php-with-paypal/#findComment-1027906 Share on other sites More sharing options...
ded Posted March 18, 2010 Author Share Posted March 18, 2010 This works ok if the buyer presses the "Return to Merchant" button. Is there something that does an auto return? I need to be able to update the database to show payment confirmed. Actually, even if you click the button, the url reads http://www.Website.com/ordercomplete.php?merchant_return_link=Return+to+Merchant Link to comment https://forums.phpfreaks.com/topic/195634-php-with-paypal/#findComment-1027907 Share on other sites More sharing options...
ded Posted March 18, 2010 Author Share Posted March 18, 2010 OK, added the following and brings over the correct URL, But still buyer must click button instead of automatically loading the webpage. <input type="hidden" name="rm" value="2"> Link to comment https://forums.phpfreaks.com/topic/195634-php-with-paypal/#findComment-1027908 Share on other sites More sharing options...
angelleye Posted April 26, 2010 Share Posted April 26, 2010 Updating your database is not recommend on your return page. There is no guarantee the user will return to the return page (even with auto-return enabled). You should use IPN https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_admin_IPNIntro instead, which is always guaranteed to take place. It's server to server communication, though, so it's a little bit tougher to setup. I created a solution that a lot of people are using. It's posted on PayPal's developer forum: https://www.x.com/thread/30664 Link to comment https://forums.phpfreaks.com/topic/195634-php-with-paypal/#findComment-1048746 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.