VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: samlf3rd on December 22, 2014, 22:52:41 PM

Title: PayPal Pending Virtuemart 3.0.2
Post by: samlf3rd on December 22, 2014, 22:52:41 PM
Hello,
I have all my configuration settings just like I do all the other sites I have, but payments only come from PayPal as Pending.
I have read through the forums, but cannot find anything for Virtuemart 3.

This is in my log:
[return] => http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=bd0e05&pm=1&Itemid=0&lang=
    [notify_url] => http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=
    [cancel_return] => http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=pluginUserPaymentCancel&on=bd0e05&pm=1&Itemid=0&lang=

Anybody?
I cannot figure this out, and I need the site to go live, any way to figure out the problem? I am not very good with payment processing, but the payment does go through, VM just never sets to confirmed...

Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: samlf3rd on January 02, 2015, 18:17:14 PM
I still cannot figure this out! Does anyone have some insight on how to fix the problem?
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 02, 2015, 21:36:53 PM
what u post there isn't logging..

you need to switch on logging in the plugin - run some payments and check in your /logs or /log folder or a paypal logfile...

If it stays pending one assumes u aren't receiving the acknowledgment for some reason...
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: alatak on January 03, 2015, 18:19:00 PM
Hello
You have to go to your server logs, and find out if this URL has been called: http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=xxx&pm=y&Itemid=0&lang=
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: samlf3rd on January 05, 2015, 16:02:28 PM
I did turn on logging, and that is part of my log file in the server under logs.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: samlf3rd on January 16, 2015, 20:39:06 PM
Any help, site still not working?
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 17, 2015, 00:45:17 AM
because you haven't answered either alatak's or my questions ..
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 19, 2015, 16:06:07 PM
I have suddenly started getting the same issue, payment goes through and PayPal sends confirmation but the IPN back to the site isn't update pending to purchased until I manually change the status. I have been in the PayPal backend to the IPN settings and noticed that the URL was blank and IPN turned to disabled (though I have not changed this in the years I have used PayPal) perhaps something changed in their backend?

It is worth checking this at least, I used : https://www.mysite.co.uk/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived for the URL

I have yet to have an order via PayPal to be able to check if this has worked but will update when I do.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 19, 2015, 16:19:08 PM
I have never set up IPN returns in the Paypal admin - on dozens of sites

the response url is sent with the payment post -- as I understand it if that response is present Paypal sends it - manual IPN config is used in other scenarios

As Alatak says - check your server access logs to see if you are getting requests to http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=xxx&pm=y&Itemid=0&lang= and if so what was the response?

200, 500, 404 etc
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 19, 2015, 16:37:06 PM
Just gone through my logs, I stopped getting any hits on that URL from 31st December. Site URL obscured

Quote[31/Dec/2014:21:22:55 +0000] "GET /orders-list/number/7b8b01763?order_pass=p_a10ef HTTP/1.1" 200 12630 "http://www.site.co.uk/index.php?option=com%5fvirtuemart&view=vmplg&task=pluginresponsereceived&on=7b8b01763&pm=16&Itemid=508&lang=&tx=29S3239382762324A&st=Completed&amt=23%2e66&cc=GBP&cm=eda904c085e973d3ab7803a43eea8cdb&item_number=&sig=O8%2fDmYUMVyvnpZVJLRFS4Mlol7ZNCW0WMTDtDUNSZmkrYvjoTNncbqVh5P7C59fTtrYTZPV58OZqCEgR2oMtVOlwrqHoBXCKzAJw5dJqswkcRGzFqWkXxZjqpzYii0R%2frgZpLFGZlOqcC7kSzj%2faLY2PuTori5KCmhm8jYSG9I8%3d" "Mozilla/5.0 (iPad; CPU OS 8_1_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12B435 Safari/600.1.4"

Nothing even containing "pluginresponsereceived" since.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 19, 2015, 16:46:32 PM
Next step - assuming you've had orders since the 31st - what has changed?

I would do some 1p payments and see what happens
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 19, 2015, 16:49:28 PM
Orders have all been going through fine, until the 14th all orders went through fine for me and returned the IPN back to the site from what I can see. The only thing that has changed more recently is the addition of SSL on the entire site which is where I assume the issue has sprung from in my case.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 19, 2015, 16:51:07 PM
you have to do some trouble shooting - try the response urls etc - what happens?

but sounds like the ssl is the reason

Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 19, 2015, 16:58:59 PM
The URL returns with "Thank you for your Order!"

I don't understand it really as it all looks as though it should be working correctly other than the site not getting the IPN.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 19, 2015, 17:12:25 PM
I'm talking about testing the ipn response urls..

http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=xxx&pm=y&Itemid=0&lang=
thats the ones not working
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 19, 2015, 17:17:23 PM
Quote from: GJC Web Design on January 19, 2015, 17:12:25 PM
I'm talking about testing the ipn response urls..

http://www.mysite.com/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=xxx&pm=y&Itemid=0&lang=
thats the ones not working

That's the one that is returning the "Thank you for your Order!" message
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 21, 2015, 14:07:36 PM
I have been going through various settings and logs, it's very strange that there seems to be no error coming up and my other payment processor is returning their IPN perfectly fine. A few days ago I went through PCI compliance and had to switch off SSL3 along with securing up SSL ciphers and read this morning a post from a while back with PayPal stopping IPN from working as a result of Poodle (which wouldn't affect me) could this issue be related?

It's probably also worth mentioning that I am using VM 3.0.3 as the backend loading bug was causing me grief with 3.0.2
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 22, 2015, 11:00:43 AM
I am checking the PayPal backend today as I got an email notifying me that IPN notifications are failing.

All the failures came after the 14th Jan but transactions from earlier in that day all returned fine with the SSL certificate in place.  The only thing I can think that was changed between close of business and the time the failed IPN transactions started coming through was the update to 3.0.3

Here is one on the 14th around lunchtime that sent

mc_gross=16.15&invoice=b4c101849&protection_eligibility=Eligible&address_status=unconfirmed&payer_id=GKCGVKCZY473A&tax=0.00&address_street=xxxx&payment_date=04:30:16 Jan 14, 2015 PST&payment_status=Completed&charset=windows-1252&address_zip=xxxx&first_name=xxxx&mc_fee=0.75&address_country_code=GB&address_name=xxxx&notify_version=3.8&custom=6b152d53b502118a476f9e64805c449e&payer_status=unverified&business=xxxx&address_country=United Kingdom&address_city=xxxx&quantity=1&verify_sign=A2wSJSAK8p0racRApb5QiZaGLzqVAm4R51Tb8fAO8iFIvYVV-NZe3cmZ&payer_email=xxxx&contact_phone=xxxx&txn_id=0N49794136988811K&payment_type=instant&last_name=xxxx&address_state=&receiver_email=xxxx&payment_fee=&receiver_id=XQKVPUNSZYFL4&txn_type=web_accept&item_name=Order Number: b4c101849&mc_currency=GBP&item_number=&residence_country=GB&handling_amount=0.00&transaction_subject=6b152d53b502118a476f9e64805c449e&payment_gross=&shipping=0.00&ipn_track_id=47aa79b6424cb

and another from around 9pm that failed

mc_gross=29.65&invoice=e32a01852&protection_eligibility=Eligible&address_status=confirmed&payer_id=6NQSYZT9DP4RU&tax=0.00&address_street=xxxx&payment_date=13:59:27 Jan 14, 2015 PST&payment_status=Completed&charset=windows-1252&address_zip=xxxx&first_name=xxxx&mc_fee=1.21&address_country_code=GB&address_name=xxxx&notify_version=3.8&custom=7cc7f60216fef9b5811aa082e0aa1f23&payer_status=verified&business=xxxx&address_country=United Kingdom&address_city=xxxx&quantity=1&verify_sign=APPquTAFvQ0lM0wD5Fylgz2WIOtLARN6AhIfNaQUxehPrMmcCG9rLST5&payer_email=xxxx&contact_phone=xxxx&txn_id=6EU33315JJ444634U&payment_type=instant&last_name=xxxx&address_state=xxxx&receiver_email=xxxx&payment_fee=&receiver_id=XQKVPUNSZYFL4&txn_type=web_accept&item_name=Order Number: e32a01852&mc_currency=GBP&item_number=&residence_country=GB&handling_amount=0.00&transaction_subject=7cc7f60216fef9b5811aa082e0aa1f23&payment_gross=&shipping=0.00&ipn_track_id=29653d72c1b64

obviously the customer and site data has been removed with xxxx for security but the rest of the string is in place.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: GJC Web Design on January 23, 2015, 00:29:30 AM
IMHO all the Paypal stuff incl. ipn etc is handled in the paypal plugin

just extract the paypal plugin from 3.0.2 AOI, zip it and install - see if it changes something
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on January 25, 2015, 21:46:55 PM
No change using the plug in from 3.0.2,  however I have been into the paypalstd php file to check that notify url as the one posted earlier is different to the one PayPal are saying is failing.

$post_variables['return'] = JURI::root() . 'index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=' . $this->order['details']['BT']->order_number . '&pm=' . $this->order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . vRequest::getInt('Itemid') . '&lang=' . vRequest::getCmd('lang', '');
//Keep this line, needed when testing
//$post_variables['return'] = JRoute::_(JURI::root().'index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component'),
$post_variables['notify_url'] = JURI::root() . 'index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component' . '&lang=' . vRequest::getCmd('lang', '');
$post_variables['cancel_return'] = JURI::root() . 'index.php?option=com_virtuemart&view=vmplg&task=pluginUserPaymentCancel&on=' . $this->order['details']['BT']->order_number . '&pm=' . $this->order['details']['BT']->virtuemart_paymentmethod_id . '&Itemid=' . vRequest::getInt('Itemid') . '&lang=' . vRequest::getCmd('lang',


The notify url the plugin is trying to use is

Quotehttps://www.plumeblu.co.uk/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang

And not

Quotehttps://www.plumeblu.co.uk/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=xxx&pm=y&Itemid=0&lang=

Is the url being sent by the plug in correct or has the notify url changed?  I can't see anywhere else this notify url is being set.
Title: Re: PayPal Pending Virtuemart 3.0.2
Post by: bunglehaze on February 02, 2015, 22:19:57 PM
Another bit of info relating to another payment plugin that I use which also is getting errors.  The paymentsense plugin does update on the site but I get errors each time letting me know to double check the payment.  Having looked into this it is also an error message about ServerResultURL which points again to the pluginresponse -  in this case the url is:
https://www.mysite.co.uk/component/virtuemart/pluginresponse/pluginnotification?tmpl=component

This error was occurring before the updates but since migrating to vm3. I find it hard to believe that the notify system is working right if both processors are having related issues.

Any ideas?