• Resolved moberhammer

    (@moberhammer)


    Hi,

    I have the strange problem that when someone buys Products and pay with paypal, the invoice/pdf creation and email sending are called twice for the same Order!
    So the client recieve two “customer_completed_order” mails and two equal invoices (only the number is increased: n.5 and then n.6).
    I see in the Apache log that your function “attach_pdf_to_email” is called first from an IP that belongs to Paypal (173…) and then after some seconds from the buying client ip.
    Any idea??

    Log:
    [Thu Apr 20 10:50:18 2017] [error] [client 173.0.81.1] Status from attach_pdf_to_email: customer_completed_order
    [Thu Apr 20 10:50:21 2017] [error] [client 188.219.xx.xx] Status from attach_pdf_to_email: customer_completed_order, referer: https://www.paypal.com/webapps/hermes?token=1NB92002DC626644A&useraction=commit&rm=2&mfi$

    Thanks for every help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! This is a WooCommerce issue and not a PDF Invoice issue. WooCommerce is sending the emails, the PDF Invoice plugin merely hooks into the woocommerce functions to add the attachment but doesn’t send any invoices by itself. It looks like you may be using functions to automatically set orders to complete (as this normally is not done by paypal or in the checkout), which is perhaps messing the process somewhere.

    Hope that helps!
    Ewout

    Thread Starter moberhammer

    (@moberhammer)

    Ok, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Paypal calls invoice generation’ is closed to new replies.