Page 1 of 1

Paypal Checkout Integration cannot be enabled

Posted: Sat Oct 21, 2023 5:57 am
by bvcart
Hi,
I've done a new install of opencart 4.0.2.3.
I'm using the default theme.
php 8.1
I have not installed any other extensions
I have manually downloaded the recommended PayPal checkout extension from the marketplace and installed it.

When I go to Extensions->Extensions->Payments
I do have a new payment method called PayPal Checkout Integration (Highly Recommended) and its status is Disabled.
When I click the edit button I do get a window that lets me login to paypal. I have used an existing paypal account and created a new one as well.
It lets me go all the way through. I get to a screen that says Thanks for choosing PayPal as your payments provider. You're all set to start accepting payments when you sell on OpenCart Limited1, or anywhere else. The only option I have at this point is to select "Set up automatic transfer" (which I have tried also) or
to close the window. I end up in another tab where I log out of Paypal. But I still have to close the paypal.com/bizsignup/... window. Closing this just
drops me off at the "Edit PayPal" screen with the Connect button (wher I started). When I click the back button on the opencart screen, nothing has changed. I end up back at the Payments screen with PayPal still disabled. When I watched a video of this that I found online, after completing the paypal questions the user ended up at what looked like a PayPal payments dashboard. I never get to this point. I am not receiving any errors.
I have installed, uninstalled, deleted, re-downloaded, researched, etc, etc,. I'm out of options at this point.
I would appreciate any productive thoughts if anyone has experienced this or maybe resolved it.

I find quite a bit of information about older versions but not much regarding 4.X.X.X. Am I maybe too early to the game with this product?

I appreciate your time and feedback.

Re: Paypal Checkout Integration cannot be enabled

Posted: Sat Oct 21, 2023 10:56 am
by bvcart
This does appear to be a ver. 4.0.2.3 issue.
I went back and installed vers 3.0.3.9 and the paypal extension install works as expected.
After you login to paypal and create the link there is a button at the bottom of the screen that says return to Opencart payments (something to that effect).
Clicking that button does return you to an opencart paypal dashboard and paypal is enabled at this point.
In version 4. x.x.x this button doesn't appear and I'm guessing since there is no way back, the routine that enables paypal is not getting executed.

Re: Paypal Checkout Integration cannot be enabled

Posted: Sat Oct 28, 2023 4:53 am
by thundersteed
Having the same issue here - version 4.0.2.3

Downloaded the following from Marketplace.
paypal_commerce_platform v2.1.0 4.0.0.0, 4.0.1.0, 4.0.1.1, 4.0.2.0, 4.0.2.1, 4.0.2.2, 4.0.2.3 Jun, 24 2022

Same behavior as the OP - allowed to go through the entire process, and initially appears successful. The only option is to either close close the window or enable automatic transfer. When closing the window, dropped back off in the Edit Paypal page with the same options - "Connect" button and Environment selection - no option to go back to the store and the paypal dashboard does not display. I have tried uninstalling, reinstalling, different browsers (chrome and firefox) and searched the error logs - but nothing to indicate the issue.

Re: Paypal Checkout Integration cannot be enabled

Posted: Wed Nov 01, 2023 1:27 am
by crosland
[I re-posted this in 3.0 support forum as that is probably more appropriate]

I have this issue in 3.0.3.9/PHP 8 I am following this video https://www.youtube.com/watch?v=ruCLUHQkgX4 I never get back to the PayPal dashboard and the extension is stuck in disabled state.

I recently upgraded from 3.0.3.2/PHP 7 where I uses the PayPal express extension.

If I re-enable the PP express extension then that seems to work (test transaction in sandbox mode came through OK).

Re: Paypal Checkout Integration cannot be enabled

Posted: Wed Dec 13, 2023 6:34 pm
by pixelhaus
I had the same issue. New-build site in 4.0.2.3 under php8.3. The return button did not appear. I read in another forum there was an issue with the .htaccess file, so if you comment it out, refresh the admin and try again you'll see it and can connect. Don;'t forget to re-enable your .htaccess file afterwards.

Re: Paypal Checkout Integration cannot be enabled

Posted: Tue Dec 19, 2023 9:02 pm
by crosland
I don't fancy messing with .htaccess. Which bits did you comment out?

Re: Paypal Checkout Integration cannot be enabled

Posted: Tue Dec 26, 2023 2:20 am
by jepmaster
crosland wrote:
Tue Dec 19, 2023 9:02 pm
I don't fancy messing with .htaccess. Which bits did you comment out?
Just simply rename the .htaccess file to something like 1.htaccess. This will disable it and allow you to Connect. Once connected, change the name back to .htaccess.

Re: Paypal Checkout Integration cannot be enabled

Posted: Wed Dec 27, 2023 9:06 pm
by crosland
What problem is this actually solving?

Sounds like a caching issue but there are other ways ot clear the OC cavhes and server caches.

Re: Paypal Checkout Integration cannot be enabled

Posted: Sun Jan 05, 2025 5:28 am
by zelkano
i had the exact same issues just now on a fresh install of 4.0.2.3

the automated way doesnt work, however if you change it to Manual, and enter your merchant details, and key, it successfully connects, and i just made a test purchase

hope this helps everyone out - instructions and link to GitHub page below



https://github.com/Dreamvention/paypal#installation

To MANUALLY connect your PayPal account, follow these steps:

Sign in to your business PayPal account.
Hover over your profile icon and select Account Settings.
Go to Business information and copy your PayPal Merchant ID for later use.
Visit the developer section (https://developer.paypal.com/dashboard/ ... tions/live) and click on Create App to generate a Client ID and Secret key for your App.
Copy the Client ID and Secret key from the API credentials section.
Access the Admin Dashboard and go to Extensions -> Extensions -> Payments.
Look for PayPal Checkout Integration and click on the Edit button.
Change the Authorization Type to Manual.
Enter the Merchant ID, Client ID, and Secret key in the provided fields.
Click on Connect button and wait for the connection process to complete. The page will be refreshed once it's done.

Re: Paypal Checkout Integration cannot be enabled

Posted: Sun Jan 05, 2025 6:14 pm
by crosland
Ah, sorry, I forgot to update this thread, I found the same solution and posted it here viewtopic.php?t=232358#p873995