Getting Started with Paypal

Open to all! Ask other shopowners for help.
Post Reply
Chris

Getting Started with Paypal

Post by Chris »

Hi - hoping someone can help me getting started with Phoenix and Paypal in particular please. Apologies if this is covered elsewhere - searching the forum did reveal various issues with error codes but symptoms that I have were not described.
Issue - From the main menu Paypal > Start shows a largely blank screen with a paypal logo on the left and an unresponsive panel 'Retrieve API Credentials' (screenshot below). In the help file I understand this screen should show two panels for retrieving or managing credentials - so it seems its not rendering completely. I can't see any error message but perhaps I should be looking elsewhere. I've tried using Edge and Chrome with same result.
Info
Version: 1.0.8.12
Install: This is a fresh install via Softaculous for the purpose of evaluation. Still has just the default demo products based on fruit.
PHP: Version 7.3.33 Database MySQL 10.3.34-MariaDB
Addons: None. All I did to config so far was add shipping and payment modules. I added Table Rate, Check/Money order and Paypal Express.
Custom: None.
paypal.png
Thanks in advance.
You do not have the required permissions to view the files attached to this post.


Join The Code Co-op to get access to your library in the Code Co-op Forum
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Getting Started with Paypal

Post by heatherbell »

Chris wrote: Sat Mar 12, 2022 11:03 am Hi - hoping someone can help me getting started with Phoenix and Paypal in particular please.
Paypal did break in v1.0.8.12.
Have you applied the fix here viewtopic.php?p=8490#p8490
If possible it might be better for you to use v1.0.8.11
https://github.com/CE-PhoenixCart/Phoen ... 0.8.11.zip
Chris

Re: Getting Started with Paypal

Post by Chris »

heatherbell wrote: Sat Mar 12, 2022 1:02 pm Paypal did break in v1.0.8.12.
...
Ah - ok - that wouldn't help. Yes maybe I'll just try with an older version for now.

Thanks
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Getting Started with Paypal

Post by heatherbell »

Chris wrote: Sat Mar 12, 2022 1:32 pm Ah - ok - that wouldn't help. Yes maybe I'll just try with an older version for now.
That might be easier than applying the fixes.
Beware that Paypal Express seems to have issues for some whilst Paypal Payments Standard behaves well for most.
Chris

Re: Getting Started with Paypal

Post by Chris »

OK - its not gone very well.

So I tried following the manual installation instructions for 1.0.8.11 but it gets stuck on the "The database structure is now being imported. Please be patient during this procedure." part. its been tens of minutes whereas Softaculous took seconds.

I did go back to .12 installation and did the change to " $connection_test_url = $GLOBALS['Admin']->link('paypal.php', ['action' => 'ssltest']);" but that hasn't helped.

Would it be feasible to keep the .12 installation and copy over paypal modules from .11 ? If so which files would be needed?
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Getting Started with Paypal

Post by heatherbell »

Chris wrote: Sat Mar 12, 2022 11:40 pm I did go back to .12 installation and did the change to " $connection_test_url = $GLOBALS['Admin']->link('paypal.php', ['action' => 'ssltest']);" but that hasn't helped.
First up, that does not look like the file that was fixed in the link I posted.
/catalog/includes/apps/paypal/admin/content/start.php
Change Line 21
from

Code: Select all

        <?= $OSCOM_PayPal->getDef('onboarding_intro_body', array('button_retrieve_live_credentials' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_retrieve_live_credentials'), $GLOBALS['Admin']->link('paypal.php', ['action' => 'start', 'subaction' => 'process', 'type' => 'live']), 'info'), 'button_retrieve_sandbox_credentials' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_retrieve_sandbox_credentials'), $GLOBALS['Linker']->build('paypal.php', ['action' => 'start', 'subaction' => 'process', 'type' => 'sandbox']), 'info'))) ?>
to

Code: Select all

        <?= $OSCOM_PayPal->getDef('onboarding_intro_body', array('button_retrieve_live_credentials' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_retrieve_live_credentials'), $GLOBALS['Admin']->link('paypal.php', ['action' => 'start', 'subaction' => 'process', 'type' => 'live']), 'info'), 'button_retrieve_sandbox_credentials' => $OSCOM_PayPal->drawButton($OSCOM_PayPal->getDef('button_retrieve_sandbox_credentials'),  $GLOBALS['Admin']->link('paypal.php', ['action' => 'start', 'subaction' => 'process', 'type' => 'sandbox']), 'info'))) ?>
Chris

Re: Getting Started with Paypal

Post by Chris »

Ah - I couldn't see that part. I'll try that. Do I still need the other change as well?
heatherbell
Senior Contributor
Posts: 2540
Joined: Mon Oct 07, 2019 4:39 am
Phoenix Version:
Has thanked: 35 times
Been thanked: 243 times

Re: Getting Started with Paypal

Post by heatherbell »

Chris wrote: Sun Mar 13, 2022 10:11 am Do I still need the other change as well?
Yes, presuming you have made that change to /includes/apps/paypal/cfg_params/ssl_version.php Line 59
tedukes
Member
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Phoenix Version:
Has thanked: 17 times
Been thanked: 1 time

Re: Getting Started with Paypal

Post by tedukes »

Might ask, what version of php and mysql/mariadb you are using?
Chris

Re: Getting Started with Paypal

Post by Chris »

tedukes wrote: Sun Mar 13, 2022 5:01 pm Might ask, what version of php and mysql/mariadb you are using?
Hi - please see original post.

The start page is now rendering so I should be able to move on.

Thanks again.


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply