Duplicate emails sent after PayPal payment
-
Hi,
Thanks for the plug-in. It’s very good.
I’m testing PayPal payments and all the emails are being sent twice. Once when the PayPal payment has gone through successfully and once when the customer is returned to our website.
I tested it twice. The second time I tested I waited a few minutes before I clicked the link to return to the website.
This is what I see in the Apache logs.
[10/Dec/2018:11:21:34 +0000] “POST /voucher-payment-successful/?voucheritem=4 HTTP/1.1” 200 70222 “-” “PayPal IPN ( https://www.paypal.com/ipn )”
[10/Dec/2018:11:27:43 +0000] “GET /voucher-payment-successful/?voucheritem=4 HTTP/1.1” 200 88322 “https://www.sandbox.paypal.com/webapps/hermes?….The first one is the PayPal IPN which is fires as soon as the transaction is complete (from the notify_url parameter). The second is the when I click the button to return to the site (from the return parameter)
Both instances seme to run the code which sends the emails.
Is there any way to prevent the emails being sent a second time?
Thanks,
Scott
- The topic ‘Duplicate emails sent after PayPal payment’ is closed to new replies.