VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: ptrouw on July 05, 2016, 09:51:48 AM

Title: No Confirmation status after succesful order in PayPal
Post by: ptrouw on July 05, 2016, 09:51:48 AM
Using 3.0.16 and j3.5.1.

After payment with PayPal I am not getting confirmed, only pending status. I tried different IPN settings in PayPal, but no luck.
So I tried these:
index.php?option=com_virtuemart&page=checkout.result&order_id=".$db->f("order_id")
index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived
index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component

Anybody got this working?
Title: Re: No Confirmation status after succesful order in PayPal
Post by: AH on July 05, 2016, 10:20:52 AM
Mostly everyone has this working if they use PayPal

You do NOT need to set anything in the urls at PayPal for IPN because  VirtueMart sends PayPal all the correct URLs

Try setting on the PayPal logging in VirtueMart and look in the logs that are generated
Title: Re: No Confirmation status after succesful order in PayPal
Post by: ptrouw on July 05, 2016, 13:21:48 PM
You can only leave URL for IPN empty if you select NOT to go back to website automatically. So I tried this, but still only PENDING.
Any other thoughts?
Title: Re: No Confirmation status after succesful order in PayPal
Post by: perdikas75 on July 05, 2016, 13:29:04 PM
I lost almost a month looking the solution for a similar situation...

Finally the problem was at the settings of the webserver that was hosting my site.

It had a old version of openssl (0.9x) that was not supporting tls1.2

virtuemart and paypal exchange some messages for the transaction
only the last one that paypal returns needs ssl support. So you send all the neccessary data (paypal accepts the payment) but the last one you receive cannot be read by your server so virtumart can not change the status of the order
Title: Re: No Confirmation status after succesful order in PayPal
Post by: GJC Web Design on July 05, 2016, 14:38:55 PM
QuoteYou can only leave URL for IPN empty if you select NOT to go back to website automatically.

not true -- the notify and return url are provided by the plugin.. NO paypal admin IPN config is necessary
Title: Re: No Confirmation status after succesful order in PayPal
Post by: AH on July 05, 2016, 16:31:39 PM
QuoteYou can only leave URL for IPN empty if you select NOT to go back to website automatically. So I tried this, but still only PENDING.
Any other thoughts?

The URL in the IPN field will be ignored

You need to look at your site paypal logs
Title: Re: No Confirmation status after succesful order in PayPal
Post by: ptrouw on July 06, 2016, 10:01:26 AM
Thx for all the quick replies :)

I had another good look at PayPal. Let me clarify things.
The IPN service of PayPal is off, it has never been on. I was mistaken this first with the feature within the profile to automatically return to webshop. If you enable this return service, you have to fill in a return URL.

So the this return URL is not linked to the status update within VM?

@AH log file reads:
    [return] => https://www.xyz.com/index.php?option=com_virtuemart&view=vmplg&task=pluginresponsereceived&on=3336&pm=18&Itemid=0&lang=nl
    [notify_url] => https://www.xyz.com/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=nl
    [cancel_return] => https://www.xyz.com/index.php?option=com_virtuemart&view=vmplg&task=pluginUserPaymentCancel&on=3336&pm=18&Itemid=0&lang=nl

Nothing strange in log file!

Other payment options return "confirmed" with successful payments!

Any other thoughts of tests I can perform?
Title: Re: No Confirmation status after succesful order in PayPal
Post by: AH on July 06, 2016, 10:24:16 AM
QuoteThe IPN service of PayPal is off, it has never been on.

PayPal will not send IPN messages to your site if this feature is off.  Turn on this service at PayPal - then you will see IPN data returned to your site.

The data you put int the URL is not relevant as the data sent by VM will be used (you show this below)
Title: Re: No Confirmation status after succesful order in PayPal
Post by: ptrouw on July 06, 2016, 10:36:01 AM
to enable IPN you have to enter an URL:
in log file it reads this notify: index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component  (&lang=nl)

Another working VM site I use, has this IPN: index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component

I will test it of course, but does it make any difference?
Title: Re: No Confirmation status after succesful order in PayPal
Post by: GJC Web Design on July 06, 2016, 10:40:12 AM
I run many many sites.. most use paypal, none have any entry in the IPN  and none have the below enabled.. all work fine

I agree the instructions and info on this is total crap.. but as i say - all sites I run have this off and IPN notices arrive and work seamlessly
Title: Re: No Confirmation status after succesful order in PayPal
Post by: ptrouw on July 06, 2016, 10:44:18 AM
@GJC I just enable IPN and now I am getting status back "Confirmed" or "Cancelled". Before I only had "Pending". So all fine now.
Perhaps this is because I use a one page checkout solution!
Title: Re: No Confirmation status after succesful order in PayPal
Post by: AH on July 06, 2016, 11:22:47 AM
It has nothing to do with one page checkout as the payment plugin does not change.

It works because you enabled IPN at PayPal - that sends IPN notices back to the URLs provided by the payment interface.

The PayPal URL (stored as the IPN return url) - is ignored because the interface provides the correct URLs to use.

This can be very useful when 2 separate sites want to use the same PayPal business account
Title: Re: No Confirmation status after succesful order in PayPal
Post by: ptrouw on July 06, 2016, 11:31:07 AM
Thx. Happy to see VM forum is alive and kicking!