Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

When a logged in user returns from Paypal he's redirected to login.php


Recommended Posts

Posted

Hi,

 

I'm new to OSC, Php, and Paypal but I tried a payment as a logged in user with "Express Checkout". I was redirected to Paypal where I logged in and clicked on "Continue" button then Paypal redirected me back to the checkout_shipping.php page which in turn redirected me to login.php although I was already logged in! The code in checkout_shipping.php that redirects me to login.php is:

 

if (!tep_session_is_registered('customer_id')) {

 

$navigation->set_snapshot();

 

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

 

}

 

Can anybody tell me is this the correct behavior? if not why is it that the test tep_session_is_registered('customer_id') returns false?

 

I read somewhere in the documentation the following sentence about the expected behavior:

-If a logged in customer clicks on "Checkout," they're taken to the shipping page with a

"Paypal Express Checkout" button at the top. If they click on the "Express Checkout"

button, they'll be taken to Paypal where they'll choose a shipping address and payment

method, then be sent back to the checkout shipping page to choose a shipping method.

From there, depending on your settings, it'll either go to checkout payment hiding the

other payment options but displaying other modules, like CCGV, or to checkout

confirmation to complete the order.

 

Clearly this is not what I experienced. Please any idea?

 

Thanks

  • 2 months later...
Posted

I've also had this same issue, I've read through a number of posts now and no one seems to have an answer for this one.

It seems as though the session is lost when you go to paypal and back and you end up at the login.php .

 

Any idea's?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...