News:

Support the VirtueMart project and become a member

Main Menu

No Confirmation status after succesful order in PayPal

Started by ptrouw, July 05, 2016, 09:51:48 AM

Previous topic - Next topic

ptrouw

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?

AH

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
Regards
A

Joomla 4.4.5
php 8.1

ptrouw

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?

perdikas75

#3
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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AH

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
Regards
A

Joomla 4.4.5
php 8.1

ptrouw

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?

AH

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)
Regards
A

Joomla 4.4.5
php 8.1

ptrouw

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?

GJC Web Design

#9
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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

ptrouw

@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!

AH

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
Regards
A

Joomla 4.4.5
php 8.1

ptrouw

Thx. Happy to see VM forum is alive and kicking!