Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

paypal IPN - need help

Featured Replies

Hi all,

 

Ok so I have set up a paypal IPN script, and linked paypal to it etc... there is only 1 minor problem -

 

I need to know which user it is purchasing the item - and as its paypal (and not the user) that is redirected to the IPN page, there is no session open to determine the users "UserID".

 

How do I get this information across? Or even better is there a way to send the user to the IPN page after they have purchased an item so that the IPN script is run in the users browser (giving access to session).

 

Please help meee!! Driving me mad.

 

Regards,

Nathan Webb

Hi all,

 

Ok so I have set up a paypal IPN script, and linked paypal to it etc... there is only 1 minor problem -

 

I need to know which user it is purchasing the item - and as its paypal (and not the user) that is redirected to the IPN page, there is no session open to determine the users "UserID".

 

How do I get this information across? Or even better is there a way to send the user to the IPN page after they have purchased an item so that the IPN script is run in the users browser (giving access to session).

 

Please help meee!! Driving me mad.

 

Regards,

Nathan Webb

Hi i created in the registereation form the users paypal account if it was left blank they could update it from an accounts page at another time,when a user logs in a session for the user and the paypal email address is set

hope this helps

  • Author

sorry elite but does not really explain what I'm trying to do?

 

I know I could get the user to enter their paypal e-mail address -i.e. bind their address to their account, but no other sites have to do it so I shouldn't need to either?

 

There must be a way to send the userID to paypal when they make payment, and get it to return the value?

<input type="hidden" name="custom" value="<?php echo $userID; ?>" />

 

PayPal will return this value when it sends the data to your IPN handler. (You would probably want a paymentID rather than a userID as users may attempt more than one payment).

 

Create a table for payments and write the details including userID in that table, send the ID of the payment in the custom field to PayPal, when the IPN is received and validated read the record from the payment table (which includes userID) and then update the payment table with the status. This way you can store any data your want in the payment table before the payment is made, and then read it back on successful IPN.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.