OMP PayPay Plugin

Hi all, I using the last version of OMP 3.1.1-3. In my PayPal account, I created a REST API and I set the configuration for PayPal Plugin. When I try to buy a book I get a blank screen.

I tried with sandbox and live credentials and i get the same result.

Thank you in advance. Regards. Diego.

Hi @madileweb,

Check your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

This is the log:

[Mon Jul 02 22:59:32.127675 2018] [:error] [pid 5124:tid 1600] [client ::1:49463] PHP Fatal error: Interface ‘Symfony\Component\EventDispatcher\EventSubscriberInterface’ not found in C:\xampp\htdocs\omp\plugins\paymethod\paypal\vendor\guzzle\guzzle\src\Guzzle\Http\RedirectPlugin.php on line 20, referer: http://localhost/omp/index.php/unla/catalog/book/2

Hi @madileweb,

It looks like you need to update your Composer dependencies. Try on the command line:

cd plugins/paymethod/paypal
composer update

You might need to install Composer in order to do this, if it’s not already on your server – see https://getcomposer.org/ for details.

(See Remove exclusion of necessary library · Issue #3867 · pkp/pkp-lib · GitHub for the git issue.)

Regards,
Alec Smecher
Public Knowledge Project Team

@asmecher thanks for reply

I installed composer and put on command line the update and i get:

PHP Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\omp\plugins\paymethod\paypal\vendor\guzzle\guzzle\src\Guzzle\Http\Curl\CurlMulti.php on line 241, referer: http://localhost/omp/index.php/unla/catalog/book/2

Hi @madileweb,

It’s not normal for that operation to take longer than 30 seconds; the likeliest cause is a temporary network problem, or a firewall preventing OJS from reaching PayPal. You might try extending your server’s timeouts to permit longer requests, at least for testing purposes.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks @asmecher. It works perfect!

Thanks for your answer. Regards. Diego.