graham23s Posted March 2, 2008 Share Posted March 2, 2008 Hi There Guys, i have the paypal payment sytem all sorted, i'm wondering if its possible if i can send the customers id to paypal (so when they send it back i can store it in mysql along with the order details) thanks guys Graham Link to comment https://forums.phpfreaks.com/topic/93980-sending-users-session-id-to-paypal/ Share on other sites More sharing options...
MasterACE14 Posted March 2, 2008 Share Posted March 2, 2008 yep, thats possible, I had to do a similar thing with a IPN script. if you have a look at the PayPal documentation for IPN scripts and payments etc, you can see if you use a payment button without encryption you can add a 'custom' field. basically this is it: <input type="hidden" name="custom" value=""> so you can use it like this: <input type="hidden" name="custom" value="<?php echo $_GET['custom']; ?>"> or this: <input type="hidden" name="custom" value="<?php echo $_SESSION['userid']; ?>"> its pretty straight forward, download the paypal payments PDF file if you need any more info. Regards ACE Link to comment https://forums.phpfreaks.com/topic/93980-sending-users-session-id-to-paypal/#findComment-481520 Share on other sites More sharing options...
graham23s Posted March 2, 2008 Author Share Posted March 2, 2008 Brill it worked a treat thanks ace. Graham Link to comment https://forums.phpfreaks.com/topic/93980-sending-users-session-id-to-paypal/#findComment-481525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.