close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Paypal using ipn.

Thread began 11/06/2019 11:17 am by Kumel | Last modified 11/07/2019 8:06 am by Ray Borduin | 342 views | 3 replies |

Kumel

Paypal using ipn.

Hi . I have integrated paypal with ipn for users to make payment.


I m loosing $_SESSION['OrderID'] on success.php.

Sometime SESSION WORKS. Sometimes it doesn't work. Any idea why?

Attached Files
confirm.php
ipn.php
success.php
Sign in to reply to this post

Ray BorduinWebAssist

Session variables won't be available on ipn pages. The IPN page is posted to by the Paypal server, so it won't have any session variables from the user available. You need to use the values posted from paypal on the ipn page.

Sign in to reply to this post
Did this help? Tips are appreciated...

Kumel

How do we loss the session variables once we go to paypal?

Session are stored on browser linked with website if i m not wrong.

Currently i m using values posted from paypal ipn itself. but after coming to success page i loss the session variable sometimes & not always.

Attached Files
index.php
ipn.php
Sign in to reply to this post

Ray BorduinWebAssist

The sessions should be available on the success page. The ipn page works differently since it is never actually loaded by your browser.

If you sometimes lose sessions it is probably because of inconsistencies with using www. or not in front of the url. If you start at www.domain.com and return to domain.com after payment, then it will have a different session.

The best solution is to force consistency with the .htaccess file. You can force it to always use one or the other (whichever it returns to after checkout should be used).

This page has quite a few options for htaccess redirects: https://gist.github.com/vielhuber/f2c6bdd1ed9024023fe4

Sign in to reply to this post
Did this help? Tips are appreciated...

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...