OJS - Payments articles not work

Hi everybody,
i need help with payments, when a user buys a single article, OJS not unlock the display of PDF for the buyer. I need fix this important problem.

i’m using OJS 2.4.6.0.

Then for email send me this text:

`Open Journal Systems has encountered unusual activity relating to PayPal
payment support for the journal International Journal of Plant Biology. This
activity may need further investigation or manual intervention.

This email was generated by Open Journal Systems’ PayPal plugin.

Full post information for the request:
Array
(
[transaction_subject] =>
[payment_date] => 03:38:50 Sep 16, 2016 PDT
[txn_type] => web_accept
[last_name] => XXXXX
[residence_country] => IT
[item_name] => International Journal of Plant Biology - Purchase Article
[payment_gross] =>
[mc_currency] => EUR
[business] => xxxx@xxxxxx.org
[payment_type] => instant
[protection_eligibility] => Ineligible
[verify_sign] =>
AFUzd6d5BFLcPs.756upyW0L6Uo6ArnhPeBVDoevpcQ1uPC-9jA3cgzB
[payer_status] => unverified
[payer_email] => xxxxx@xxxx.it
[txn_id] => 78M43811XM7172725
[quantity] => 1
[receiver_email] => xxx.xxx@xxx.org
[first_name] => xxxxxx
[payer_id] => KJRU4KB89PHNY
[receiver_id] => 4CEZHV53EZPR2
[item_number] => 6294
[payment_status] => Completed
[payment_fee] =>
[mc_fee] => 1.37
[mc_gross] => 30.00
[custom] => 3437
[charset] => windows-1252
[notify_version] => 3.8
[ipn_track_id] => 1da6bcea84592
)

Additional information (if supplied):
Granted amount: 30.00
Queued amount: 30
Granted currency: EUR
Queued currency: EUR
Granted to PayPal account: xxxxx.xxxxxx@xxxx.org
Configured PayPal account: xxxxx@xxxxx.org

Server vars:
Array
(
[UNIQUE_ID] => V9vLy07BDBBj5xuezLMuzQAAAE4
[HTTP_HOST] => www.pagepress.org
[HTTP_ACCEPT] => /
[CONTENT_TYPE] => application/x-www-form-urlencoded
[HTTP_USER_AGENT] => PayPal IPN ( https://www.paypal.com/ipn )
[HTTP_CORRELATION_ID] => 1da6bcea84592
[CONTENT_LENGTH] => 746
[PATH] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache/2.4.6 (CentOS) PHP/5.6.19
[SERVER_NAME] => www.pagepress.org
[SERVER_ADDR] => 10.32.0.5
[SERVER_PORT] => 80
[REMOTE_ADDR] => 173.0.81.1
[DOCUMENT_ROOT] => /var/www/vhosts/pagepress.org/httpdocs/
[REQUEST_SCHEME] => http
[CONTEXT_PREFIX] =>
[CONTEXT_DOCUMENT_ROOT] => /var/www/vhosts/pagepress.org/httpdocs/
[SERVER_ADMIN] => xxxxxxxx@mac.com
[SCRIPT_FILENAME] =>
/var/www/vhosts/pagepress.org/httpdocs/journals/index.php
[REMOTE_PORT] => 49817
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => POST
[QUERY_STRING] =>
[REQUEST_URI] => /journals/index.php/pb/payment/plugin/Paypal/ipn
[SCRIPT_NAME] => /journals/index.php
[PATH_INFO] => /pb/payment/plugin/Paypal/ipn
[PATH_TRANSLATED] =>
/var/www/vhosts/pagepress.org/httpdocs/pb/payment/plugin/Paypal/ipn
[PHP_SELF] => /journals/index.php/pb/payment/plugin/Paypal/ipn
[REQUEST_TIME_FLOAT] => 1474022347.225
[REQUEST_TIME] => 1474022347
)`

Please how can i fix it?

Thank you in advance for your support.
Bye
Tiziano

Hi @Tiziano,

The problem is captured in this section:

Additional information (if supplied):
    Granted amount: 30.00
    Queued amount: 30
    Granted currency: EUR
    Queued currency: EUR
    Granted to PayPal account: xxxxx.xxxxxx@xxxx.org
    Configured PayPal account: xxxxx@xxxxx.org

The pairs should match. Depending on your locale settings, I think 30.00 should compare OK against 30 – perhaps the problem is more in the “Granted to PayPal account” vs. “Configured PayPal account”. Do these match?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Alec!
I managed to fix the problem: our website localization was US_en. We then made “Granted amount” and “Queued amount” match by using a dot to separate decimals: in both cases we used 30.00, instead of 30 alone or 30,00. Moreover, we used the main email address of our PayPal account.

Many thanks for the help.
Bye
Tiziano

Hi @Tiziano,

Great! Glad to hear it’s working. These can be subtle.

Regards,
Alec Smecher
Public Knowledge Project Team

I still get this problem once awhile. Someone just recently bought an article, but OJS did not unlock the PDF for them. Therefore, they cannot download.

I am using OJS 2.4.8.2

Under Fee Payments, in the seller account, we have our email address.
In the IPN URL, we have https://www.paypal.com/cgi-bin/webscr

There are 2 things that happen when we get the Unusual Payment Activity:

The user cannot download the article

We get the Unusual Payment Activity in Ukrainian.
Система Open Journal Systems помітила незвичайну
активність у функціонуванні модуля платежів PayPal журналу Може знадобитись подальше вивчення цього
питання або ручне втручання.

In this recent instance, I noticed that Granted to PayPal Account and Configured PayPal Account is blank.

The Queued Amount and Granted Amount are different. The Granted Amount is higher because they buyer has to pay tax on the purchase if they are in the same State as us.

This is what it looked like:
Додаткова інформація (якщо наявна):
Granted amount: 8.64
Queued amount: 8.00
Granted currency:
Queued currency:
Granted to PayPal account:
Configured PayPal account:

Do you have any idea what is happening? And how to fix this so that it does not keep occurring.

-Newone

Hi @newone,

See e.g. OJS 2.4.8.1 Paypal Payments IPN Problems - #6 by jamesp.

Regards,
Alec Smecher
Public Knowledge Project Team