News:

Looking for documentation? Take a look on our wiki

Main Menu

Two VM4 shops sending multiple emails after Confirmed order

Started by Gingerweb, December 01, 2022, 13:30:35 PM

Previous topic - Next topic

Gingerweb

I have several J3/VM3 shops but am currently building two new ones in J4/VM4
Both are using default VM Paypal plugins and both are sending up to 10 identical emails about 3 minutes apart after a confirmed sale, both to the buyer and the seller.

Checking other forum posts and previous reasons for this to happen, both are test sites and are "online" and i am using LIVE paypal accounts to test. A few suggest that the server might be the issue but all the VM3 sites are working fine, unless there is something different in VM4 that might cause the server to send multiple emails. I have not changed or adjusted the Paypal plugin.

https://luke.temp-gingerweb.com/shop/category is one of them.

VirtueMart version is 4.0.7 10717

Any suggestions please why this might be happening please?

Gingerweb


Studio 42

Perhaps wrong config
The notification is send by Paypal to the server depending your Paypal plugin settings
Have you check your Paypal log in your Joomla logs folders  or with the admin VIrtuemart tools > logs ?

Gingerweb

Thanks for helping - i cant find any VM logs relating to Paypal and the old VM3 tools page doesnt appear to be in VM4 unless im not looking in the right place which is blatantly possible!

Studio 42

You can try this direct link YOURJOOMLASITE.EXT/administrator/index.php?option=com_virtuemart&view=log
In the new Virtuemart admin template some links to views are missing because you have no left menu
This is poor because vmextended plugins are not displayed anymore.
Perhaps you should use old virtuemart template
Perhpas my module is working right to display all VM links
See https://shop.st42.fr/en/tools/menu-administrator-virtuemart.htm

Gingerweb

The link takes me to the logs but there isnt a paypal one in there, see attached
Your menu module is installed and setup as per instructions but doesnt show anywhere, your page says it is for j3 though i am working in J4 ?

Gingerweb

Two days later i am still getting what appears to be random notifications of a sale.
after the test sale at 0704hrs i then got emails

same day: 0706, 0706, 0708, 0710, 0712, 0715, 0721, 0731, 0753, 0835, 1001, 1251, 1833
Following day: 0556 (so far)

My hosts tell me that they have created a test.php mailer script on the domain which is working fine.

They have said: "If you still face issues please let us know the exact location where the script is configured so that we can try to  help you with this if possible."

Is there a "script" as such that i can point them to to check this please and if so where is it?

thanks

ssc3

This can sometime occur if the PayPal IPN is failing and not returning a 200 status code.
PayPal will resend the IPN triggering another email.

You could try an alternative PayPal plugin that does not require IPN's to confirm the order.

https://plugins.online-store.co.uk/paypal_express_checkout.html
This gets the order status directly from the PayPal server at the end of the order process. No IPN's are needed.
Works best with shortcuts turned off. To the customer that makes the ordering process look just like PayPal Standard.

or a more update plugin.

PayPal Checkout SSC
https://plugins.online-store.co.uk/virtuemart-paypal-checkout.html
also takes order status directly from the server but can use webhooks as a backup.
Webhooks are PayPal's replacement for IPN's.
Virtuemart Payment Plugins
https://plugins.online-store.co.uk

Gingerweb

Many thanks for those tips - i had just done another test so before i try that i might be learning here! On VM3 i have never had to mess with Paypal settings in the account it has all just worked fine. I am wondering if there is now a requirement to turn on the IPN in the paypal account which has changed since i last looked at it.

I can see my test purchase is "retrying" and receiving a 500 reply so maybe the URL is just wrong? What should it be?

My IPN Details are as follows

Message ID
71Y755023B070854J
Date/ time created
8 December 2022 at 11:06:35 GMT
Original/ Resent
Original
Latest delivery attempt date/ Time
8 December 2022 at 11:14:53 GMT
Notification URL
https://mydomain.co.uk/index.php?option=com_virtuemart&view=vmplg&task=notify&tmpl=component&lang=
HTTP response code
500
Delivery status
Retrying
No. of retries
5
Transaction ID
0S8414845Pxxxxxx
IPN type
Transaction made

I cant easily see what the IPN URL should be but ill keep looking now, and maybe try one of the plugins above thanks

Gingerweb

I tried this plugin and it works a treat - many thanks for the tip, as im having this issue with two VM4 installations and a new plugin fixes it im assuming this is a vm4 bug?


Quote from: ssc3 on December 08, 2022, 11:38:21 AM
https://plugins.online-store.co.uk/paypal_express_checkout.html
This gets the order status directly from the PayPal server at the end of the order process. No IPN's are needed.
Works best with shortcuts turned off. To the customer that makes the ordering process look just like PayPal Standard.

jenkinhill

Quote from: Gingerweb on December 08, 2022, 14:06:37 PM
im assuming this is a vm4 bug?

Doesn't seem to be as only a few have noticed the problem. One previous "solution" has been to turn off "Check IPN provider IP" , another suggested
setting "Change order status when IPN 'payment_status' is None of the above" to ON, but I have not heard if that worked.

My solution would be to use the plugin of ssc3 - I always used theirs in the past, but no longer use PP as Stripe is my preferred payment system.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Gingerweb

Quote from: jenkinhill on December 08, 2022, 15:08:00 PM
Doesn't seem to be as only a few have noticed the problem. One previous "solution" has been to turn off "Check IPN provider IP" , another suggested
setting "Change order status when IPN 'payment_status' is None of the above" to ON, but I have not heard if that worked.

OK thanks for info i tried both of the above, neither worked for me.