VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: jhdesign on April 10, 2013, 16:30:53 PM

Title: PayPal - order complete status always PENDING
Post by: jhdesign on April 10, 2013, 16:30:53 PM
Using Joomla 2.5.9 and VM2.0.20b

Tested with Live and Sandbox mode, payment is completed and user returns to site.

VM2 does not seem to change the status to "Confirmed" it is always "Pending"

Is this a bug?
Title: Re: PayPal - order complete status always PENDING
Post by: K&K media production on April 10, 2013, 16:34:26 PM
what are your settings? i have no issue with 2.0.20b
Title: Re: PayPal - order complete status always PENDING
Post by: jhdesign on April 15, 2013, 20:46:10 PM
PayPal "Return to shop" settings?

Order Status for Pending transactions: Pending
Order Status for Successful transactions: Confirmed
Order Status for Failed transactions: Cancelled

I did enable logging and here's what it shows:

cmd=_notify-validate&mc_gross=10.39&invoice=cd2c012&protection_eligibility=Ineligible&address_status=confirmed&payer_id=Y792ANYMYBASQ&tax=0.00&address_street=1+Main+St&payment_date=07%3A26%3A59+Apr+10%2C+2013+PDT&payment_status=Pending&charset=windows-1252&address_zip=95131&first_name=jacob&address_country_code=US&address_name=jacob+h&notify_version=3.7&custom=2tt400gaa62lad5k0gh7csbv91&payer_status=verified&business=jhdesign%40gmail.com&address_country=United+States&address_city=San+Jose&quantity=1&verify_sign=AFSC1EKFsvekKjAlpX.TMAfnBrCXA8xBgWOBgDVXeS750HCt2AYnheeP&payer_email=jhdesign_pay%40gmail.com&txn_id=19P82525UK985325Y&payment_type=instant&last_name=h&address_state=CA&receiver_email=REMOVED_FOR_POST&pending_reason=unilateral&txn_type=web_accept&item_name=Order+Number%3A+cd2c012&mc_currency=CAD&item_number=&residence_country=US&test_ipn=1&handling_amount=0.00&transaction_subject=2tt400gaa62lad5k0gh7csbv91&payment_gross=&shipping=0.00&ipn_track_id=2b4625ce6574a

Pending reason is returning: pending_reason=unilateral&

This is in sandbox mode.

And on live mode it does not show a pending reason, however I do not see any log entry to update the  status, however in sandbox when it supposedly returns pending it does this:

message: plgVmOnPaymentNotification return new_status:P

So what is happening is its not seeing new_status to C on live PayPal testing.
Title: Re: PayPal - order complete status always PENDING
Post by: jhdesign on April 18, 2013, 23:17:27 PM
Tested on a clean J2.5.9 install and VM 2.0.20b install, same result.

On this site, user never got a return link from PayPal to the site.

[attachment cleanup by admin]
Title: Re: PayPal - order complete status always PENDING
Post by: thanili on July 26, 2013, 14:24:57 PM
Got the same problem....

How did you enable logging?
Title: Re: PayPal - order complete status always PENDING
Post by: sickenlysweete on July 27, 2013, 22:13:00 PM
same problem, suggestions on what settings i need and where to get this to work?
also can i get this to work on a free product? if so how?
Title: Re: PayPal - order complete status always PENDING
Post by: Maxim Pishnyak on July 28, 2013, 12:55:44 PM
Use latest VM paypal plugin.
Follow instructions in sticked thread.
Check errors in logs.
Communicate with the paypal support - they could help too.
Title: Re: PayPal - order complete status always PENDING
Post by: sickenlysweete on July 28, 2013, 23:25:27 PM
ok i have the same problem....
forum mod where can i get the latest plugin you mentioned??
Title: Re: PayPal - order complete status always PENDING
Post by: Maxim Pishnyak on July 29, 2013, 10:21:08 AM
http://virtuemart.net
Find block "Try it Yourself"->
com_virtuemart.2.0.22a_extract_first.zip->
com_virtuemart.2.0.22a_ext_aio.zip

com_virtuemart.2.0.22a_ext_aio.zip - this will install paypal plugin and other modules and plugins

By the way here list of all stable versions of VM2 (from old to newest)
https://dev.virtuemart.net/projects/virtuemart/files

Virtuemart files for Virtuemart Developer Team here in SVN place
https://dev.virtuemart.net/projects/virtuemart/repository/show/trunk/virtuemart/plugins/vmpayment/paypal
Title: Re: PayPal - order complete status always PENDING
Post by: sickenlysweete on August 10, 2013, 21:28:21 PM
Note: problem solved, edit the paypal php and make sure the correct url addy for the reply is there.
mine was not, it was missing a subfolder
Title: Re: PayPal - order complete status always PENDING
Post by: lordimac on August 14, 2013, 07:34:02 AM
What? Please explain.
Title: Re: PayPal - order complete status always PENDING
Post by: alatak on August 14, 2013, 10:23:20 AM
hello

the fix for the subfolder is here:
http://forum.virtuemart.net/index.php?topic=101478.msg396870#msg396870
Title: Re: PayPal - order complete status always PENDING
Post by: avdfmedia on November 06, 2013, 16:51:01 PM
Just a tip for anyone who still experiences this.
The order status also will NOT update to 'Confirmed' from 'Pending' if you are working on a site which has been password-protected. The site i was working on was on a cpanel hosting and i had pass-protected the whole public_html folder until it was ready. As soon as  I removed the password, Virtuemart was updating the order statuses to 'Confirmed' as it should.
Title: Re: PayPal - order complete status always PENDING
Post by: stinga on November 08, 2013, 00:25:58 AM
Have you enabled IPN in PayPal and what does the IPN log in PayPal say?