Jump to content

Sending users session id to paypal


graham23s

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.