OMP Paypal Plugin

Dear all,

We are setting up the Paypal plug-in over an OMP site (Version 1.1.1.1) available at http://publicaciones.musa.com.co/, however we can not make it works.

Here the steps we have done:

In paypal:

  1. We created a business account in Paypal
  2. We activated the Instant Payment Notifications as follows:

In OMP:

  1. We activated the Paypal plugin
  2. We entered the email of the Paypal account and the IPN URL, as follows:

After that, we tried to buy a book with other Paypal account (example: http://publicaciones.musa.com.co/index.php/musa/catalog/book/4), then we checked-out in Paypal , but there is not possible to complete the transaction. Here the message that we received:

Finally, when we click on the button “Return to Merchant” OMP crashes, and prompt the following message and this URL http://publicaciones.musa.com.co/index.php/musa/payment/plugin/Paypal/cancel:

Fatal error: Call to undefined method PayPalPlugin::getAuthorizedContextObject() in /home/musacomco/publicaciones.musa.com.co/lib/pkp/classes/handler/PKPHandler.inc.php on line 446

I would really appreciate if anyone can tell us how to resolve this issue.

Best regards,

Hi @asoto,

The problem with the “cancel” button can be fixed by applying the patch here:
https://github.com/pkp/pkp-lib/issues/814

(There are several different patches listed, but they’re all identical – these are for different branches of OMP and any one would do just fine.)

For the rest of the problem – payments not being processed by PayPal – I’d suggest checking your server’s error log to see if there are any errors related to the PayPal IPN service. If I recall correctly there’s also a way to check on the status of these IPN requests from Paypal within your PayPal account.

And note that PayPal has recently made some changes to its use of encryption, which might need you to check that they’re supported on your server’s PHP implementation. See PayPal and Its Impending Changes to the IPN - WEBii
for some details.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like