Logout after paypal payment

Phoca Cart - complex e-commerce extension
E.P-B
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Apr 2021, 21:42

Logout after paypal payment

Post by E.P-B » 27 Apr 2021, 09:22

Hi,
When I use Paypal as registerded user, checkout data are correctly sent to paypal (as shown in system log), including user name :

Code: Select all

[...] value="Click here to be redirected to Paypal" class="button" />
</div>
</div>
</form>, User: testUser
But when paypal replies, the user has become anonymous:

Code: Select all

Order status changed to: 7, User: Anonymous
Thus, when paypal redirects to my website, the customer initially logged in is loggued out... and can't even see any confirmation message...

Is this a normal behaviour ? If not, have you any clue about solving this ?
Thank you in advance,
E.P-B

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44015
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Logout after paypal payment

Post by Jan » 28 Apr 2021, 16:29

Hi, PayPal has no tool to log out the user. The "User: Anonymous" means that PayPal contacted your server and sent there information about the payment.

So 1) testUser logged in send the form to PayPal
2) PayPal send to your server info about payment - marked as Anonymous - and then the status is changed - based on PayPal response - the response is independent to User browser, so this is why there is no User set, as PayPal contacts your server another way.

Jan
If you find Phoca extensions useful, please support the project

E.P-B
Phoca Member
Phoca Member
Posts: 12
Joined: 13 Apr 2021, 21:42

Re: Logout after paypal payment

Post by E.P-B » 28 Apr 2021, 17:12

OK, thank you very much for your reply...
So, I don't know why my joomla user is disconnected during the paypal payment process... It's really strange...
Well, it seems to be an issue with Brave. It's working like a charm with Chrome... (just checked)
OK, this topic can be mark as solved...
Have a nice day, and keep up your fantastic work !
E.P-B

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 44015
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Logout after paypal payment

Post by Jan » 01 May 2021, 12:47

Ok, yes, there is no option to logout users set by Phoca Cart, this all is managed by Joomla! and leaving a page (e.g. because of redirect to PayPal) should not mean a reason for logging out. :idea:

Jan
If you find Phoca extensions useful, please support the project

Post Reply