Paypal: Error payment method file. PM

ПерваяПредыдущая 1 2 СледующаяПоследняя
08.03.2017 22:39
#1
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Paypal: Error payment method file. PM

I´ve been running joomshopping now for nearly two years. Mostly no problems at all.

But today nearly every order (but not all!) via Paypal failed. In some cases the payment was successfully received, in some cases not - but all (even if the money has been received on our paypal account) shown as "not completed/open".

In the paymentdata.log every single transaction has the payment_status=Completed - The customers I´ve been able to ask also got the payment accepted message from paypal and from our site after redirected from paypal.

The only thing I´ve noticed is a bunch of "#001 - Error payment method file. PM" entrys in todays payment.log

Is that a hickup from paypal, and has anybody else experienced the same, or is it maybe something to do with joomshopping?

Thanks and kind regards
Sebastian







Joomla: 2.5.28
JoomShopping: 3.20.2
PHP: 5.6
MySQL: 5.1
 
09.03.2017 06:15
#2
lechimiste
Joomshopping forum user no avatar
Name: BONGARS
18.12.2013
Сообщения: 71
Quote
Aw: Paypal: Error payment method file. PM

Same problem for me on 08.03.

I also have this problem next year and it stop himself.


website : http://vehicules-anciens.fr
 
09.03.2017 07:52
#3
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25853
Quote
Aw: Paypal: Error payment method file. PM

log?
paymentdata.log?

 
09.03.2017 08:19
#4
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

Thank you for your feedback. Logs sent via PM.

As an axample you can take the last order 2017-03-09 07:56:26
Payment is received. Status in Joomshopping is "not finished/open"


Последнее изменение: 09.03.2017 08:28
 
09.03.2017 08:31
#5
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25853
Quote
Aw: Paypal: Error payment method file. PM

Problem in return url

Example return:
1. (ok)
2017-03-08 21:26:51 url: /shop/checkout/step7.html?act=return&js_paymentclass=pm_paypal

2. (bug)
2017-03-09 07:56:26 url: /shop/checkout/step7.html?act=return

 
09.03.2017 08:37
#6
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

The return URL is and has been always: https://www.mydomian.de/index.php?option=com_jshopping&controller=checkout&task=step7&act=notify&js_paymentclass=pm_paypal&no_lang=1

I think I found the problem: The redirect-URL entered at paypal had been altered - and I swear by god that I have not touched this since I entered it nearly two years ago.

https://www.mydomian.de/index.php?option=com_jshopping&;controller=checkout&task=step7&act=notify&js_paymentclass=pm_paypal&no_lang=1

I deleted the ; and will see if the problem is gone.

What I don´t get is that some orders/payments worked correctly and some did not.

Why should the return URL change if no one touches it?


Последнее изменение: 09.03.2017 08:40
 
09.03.2017 09:39
#7
lechimiste
Joomshopping forum user no avatar
Name: BONGARS
18.12.2013
Сообщения: 71
Quote
Aw: Paypal: Error payment method file. PM

Where have we to modifiy return url ?


website : http://vehicules-anciens.fr
 
09.03.2017 15:10
#8
ecoShopUser
Joomshopping forum user no avatar
Name: Andrea
13.08.2012
Сообщения: 246
Quote
Aw: Paypal: Error payment method file. PM

It seems that paypal sometimes cuts the additional parameters in the return url. For a quick fix we added a check in checkout.php (step7()):

if (empty($payment_method))
$payment_method='pm_paypal';

This is only a workaround.

We have created a ticket at paypal.


Последнее изменение: 09.03.2017 15:24
 
09.03.2017 15:15
#9
bonkers
Joomshopping forum user no avatar
Name: Matthias
04.10.2013
Сообщения: 4
Quote
Aw: Paypal: Error payment method file. PM

I think i have the same problem.

 
09.03.2017 15:57
#10
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

Thank you for the workaround - that helps a lot until they maybe fix it.

 
09.03.2017 17:28
#11
lechimiste
Joomshopping forum user no avatar
Name: BONGARS
18.12.2013
Сообщения: 71
Quote
Aw: Paypal: Error payment method file. PM

Please, can you help me to find the checkout.php and to insert theses lines ?

Thank you :)


website : http://vehicules-anciens.fr
 
10.03.2017 08:32
#12
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

Dear Andrea,

your workaround did seem to work for me but it was only by chance.

This is where i put your workaround in the checkout.php step7-function:

$payment_method = JRequest::getVar("js_paymentclass");

//workaround start
saveToLog("payment.log", "#999_1 - Payment Method Original: PM ".$payment_method);
if (empty($payment_method)) {$payment_method='pm_paypal'; saveToLog("payment.log", "#999_2 - Empty Payment Method changed to ".$payment_method);}
//workaround end

$pm_method->loadFromClass($payment_method);

It changes the $pm_method if empty to pm_paypal (checked it via logfile output)

2017-03-09 21:37:04 #999_1 - Payment Method Original:
2017-03-09 21:37:04 #999_2 - Empty Payment Method changed to pm_paypal

But the payment in joomshopping is still open/not finished

I think I put your workaround in the wrong place? Where exactly did you insert the line?

I would really appreciate your help

Kind regards Sebastian

@lechimist: You can find the checkout.php in /components/com_jshopping/controllers but as long as you (as I) do not know exactly where to insert the code, please don´t fiddle around with the code as you might mess things up.

 
10.03.2017 09:27
#13
ecoShopUser
Joomshopping forum user no avatar
Name: Andrea
13.08.2012
Сообщения: 246
Quote
Aw: Paypal: Error payment method file. PM

Hi,

The workaround is working for us.

Here my lines:

$checkout->setSendEndForm(0);
if (empty($payment_method))
$payment_method='pm_paypal';

$checkout->setAct($act);
$checkout->setPaymentMethodClass($payment_method);


I don't find any line like $pm_method->loadFromClass($payment_method);
Maybe that's wrong.

 
10.03.2017 09:42
#14
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

Hi Andrea,

thank you. That´s strange - I can´t find these lines in my checkout.php

Can you please check the version in the head of your checkout.php

Mine says * @version 3.20.0 12.11.2014

And just tobe shure...I´m talking about /components/com_jshopping/controllers/checkout.php


Последнее изменение: 10.03.2017 09:44
 
10.03.2017 09:45
#15
ecoShopUser
Joomshopping forum user no avatar
Name: Andrea
13.08.2012
Сообщения: 246
Quote
Aw: Paypal: Error payment method file. PM

The Version of the file is:

* @version 4.13.0 25.03.2016

 
10.03.2017 09:52
#16
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

Ah, I see. Im using Joomla 2.5.x and joomshopping 3.20.2 - so it´s an older version with different code. Maybe an Admin can advise how to change my checkout.php to get the same workaround....

 
10.03.2017 10:20
#17
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 25853
Quote
Aw: Paypal: Error payment method file. PM

This is not the right decision.

Sometimes paypal sends customers to cancel.

Waiting for a response from Paypal.

 
10.03.2017 10:53
#18
ecoShopUser
Joomshopping forum user no avatar
Name: Andrea
13.08.2012
Сообщения: 246
Quote
Aw: Paypal: Error payment method file. PM

Hi,

Yes it's definitely a paypal problem. We have checked this, also the return_cancel urls would be wrong. But only
sometimes. It seems that some paypal servers do it in a wrong way.

Here the same problem:
http://stackoverflow.com/questions/42669566/querystring-values-removed-from-the-ipn-endpoint-by-paypal

We also opened a ticket yesterday, but until now no answer from Paypal.

 
13.03.2017 09:19
#19
vandalay
Joomshopping forum user no avatar
Name: Sebastian
13.04.2015
Сообщения: 14
Quote
Aw: Paypal: Error payment method file. PM

Status Update: No feedback from paypal, yet. I´m going to talk to vendor support - maybe they can kick some ass ;)
Over the weekend I had not one cut off url out of 20+ - everything worked fine

 
13.03.2017 09:35
#20
ecoShopUser
Joomshopping forum user no avatar
Name: Andrea
13.08.2012
Сообщения: 246
Quote
Aw: Paypal: Error payment method file. PM

Hi,

We also have no feedback from Paypal and no cut off's over the weekend.

I think paypal is working on IPN Messages because we get the parameter

notify_version=UNVERSIONED

in the past this was:

notify_version=3.8

 
ПерваяПредыдущая 1 2 СледующаяПоследняя


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.