Body: <p>We can't seem to get CiviEvent to work with a user's PayPal account. All works well if the user enters a CC# on our site, but nothing works if the user tries to use their PayPal account. When PayPal sends the user back to our site, the URL fails to resolve, so the user gets "We can't load the requested web page ..."</p>
  
  <p>I can see from the logs that this seems to correspond to a CiviCRM error: Could not find valid value for id. Sure enough, there is no id in the URL we receive from PayPal.</p>
  
  <p>Is there a setting on our end or PayPal's that I'm missing? Some way to get PayPal to use our event id?</p>
  
  <p>I'm now only running the 'Clean-up Temporary Data and Files' once a day, but I still get the error frequently. I'd be grateful for any other suggestions. </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-09T18:36:02.873Z
Comments.Text: Can you add CiviCRM version your site using>
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-09T19:02:31.543Z
Comments.Text: Good point: I had been getting the error with CiviCRM 5.9, but upgrading to 5.13 did not make it go away.
Comments.UserDisplayName: Mike Steigerwald
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-09T19:36:53.620Z
Comments.Text: Can you check if you have a schedule job enabled for 'Clean-up Temporary Data and Files' and how often it is executed?
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-09T22:08:14.287Z
Comments.Text: I just executed  'Clean-up Temporary Data and Files' for the first time. Now, the error seems to be gone!
Comments.UserDisplayName: Mike Steigerwald
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-09T22:11:39.170Z
Comments.Text: This error usually happens when you have cron job that runs this job every hour or minutes. This job clears the session and hence when you come back from paypal CiviCRM doesn't find valid session. So make sure you run this job once in a day
Comments.UserDisplayName: Pradeep Nayak
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-10T15:29:34.427Z
Comments.Text: I'm now only running the 'Clean-up Temporary Data and Files' once a day, but I still get the error frequently. I'd be grateful for any other suggestions.
Comments.UserDisplayName: Mike Steigerwald
Tags: <civievent><paypal>
Title: Can CiviEvent work with PayPal?
ThreadText: # Can CiviEvent work with PayPal?
  
  (Asked by: username_0 on 2019-05-09)
  
  We can't seem to get CiviEvent to work with a user's PayPal account. All works well if the user enters a CC# on our site, but nothing works if the user tries to use their PayPal account. When PayPal sends the user back to our site, the URL fails to resolve, so the user gets "We can't load the requested web page ..."
  
  I can see from the logs that this seems to correspond to a CiviCRM error: Could not find valid value for id. Sure enough, there is no id in the URL we receive from PayPal.
  
  Is there a setting on our end or PayPal's that I'm missing? Some way to get PayPal to use our event id?
  
  I'm now only running the 'Clean-up Temporary Data and Files' once a day, but I still get the error frequently. I'd be grateful for any other suggestions.
  
  **Tags:** civievent, paypal
  
  > **Comments:**
  > **username_1**: Can you add CiviCRM version your site using>  
  > **username_0**: Good point: I had been getting the error with CiviCRM 5.9, but upgrading to 5.13 did not make it go away.  
  > **username_1**: Can you check if you have a schedule job enabled for 'Clean-up Temporary Data and Files' and how often it is executed?  
  > **username_0**: I just executed  'Clean-up Temporary Data and Files' for the first time. Now, the error seems to be gone!  
  > **username_1**: This error usually happens when you have cron job that runs this job every hour or minutes. This job clears the session and hence when you come back from paypal CiviCRM doesn't find valid session. So make sure you run this job once in a day  
  > **username_0**: I'm now only running the 'Clean-up Temporary Data and Files' once a day, but I still get the error frequently. I'd be grateful for any other suggestions.  
  
  ---
  
  ## 0 answers
  
  