Paypal payment won't redirect to Paypal

Phoca Cart - complex e-commerce extension
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Paypal payment won't redirect to Paypal

Post by morphinestyle »

Hello,
i can't get automatic redirect to Paypal website to pay my order.
Every time i need to click the button.

How can i solve?

Tags:
morphinestyle
Phoca Professional
Phoca Professional
Posts: 118
Joined: 19 Jan 2022, 19:55

Re: Paypal payment won't redirect to Paypal

Post by morphinestyle »

Solved,
i was loading a JS function with:

Code: Select all

window.onload = function() {
MY_JS_FUNCTION();
};
it conflicts with Phoca Cart redirection.

I replaced it with:

Code: Select all

document.addEventListener('DOMContentLoaded', MY_JS_FUNCTION);
and i solved the issue.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Paypal payment won't redirect to Paypal

Post by Jan »

Ok, great to hear it, thank you for the info.

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