Author Topic: Order confirmation emails resending every few hours - Paypal standard plugin  (Read 2781 times)

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4335
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
I can only say :
Bad test = unknow behavior

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9660
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Just to add -- I use a 1 cent test products all the time on live sites / live paypal .. never a problem

but site offline surely will break the ipn...

I do all my finally paypal tests totally live with a real payment ( 1 cent) - imho the only true test before hand over
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3181
  • VirtueMart Version: 3.8.2
As I said earlier

If the order status is set to confirmed and an IPN happens for the same status - a second email should not be triggered via VM

You should see only 2 statuses in the VM order - the payment display is not the same as the status change display!

Pending
Confirmed

If you then have changed to a "final status"

Pending
Confirmed
Shipped

A delayed IPN will set back to confirmed

Pending
Confirmed
Shipped
Confirmed


Setting a test with a site that is then switched to offline is not a good test.

Testing in sandbox should work if you know what you are doing with PayPal and sandbox - but there can be quirks
Testing a site with a .01 cent and "live paypal" test is best case.

The log is also showing a problem at some point you should see the status of the order being changed due to IPN message being received - this is not in your log e.g.:
Code: [Select]
DEBUG plgVmOnPaymentNotification: plgVmOnPaymentNotification order_number:53K203 new_status:C
Therefore I can only conclude that VM is not setting a status via VM's paypal plugin in response to PayPal's  IPN notifications
regards
A

Joomla 3.9.18
php 7.3

DOITSolutions

  • Beginner
  • *
  • Posts: 8
  • A beginner
Thanks. I figured that Joomla "Site Offline" mode wasn't really offline, just redirected users to a login and only let in registered super admins (Or regular users too as we have configured it in the settings).

But, it looks like that is the cause for us. Testing with live paypal in offline mode is how I have always done it in the past (although it has bee a few years / versions since I last did this).

Happy to test in live scenarios only from now to be safe. The Paypal IPN must be having a hard time with it.

Cheers, thanks for your time on this.
M.A.


GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9660
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Quote
Joomla "Site Offline" mode wasn't really offline, just redirected users to a login and only let in registered super admins

the IPN is sent to a normal view so this would treated the same as above
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation