• I customized the e-mail templates to show the payment information, like transaction number, etc.

    This works fine except for one thing.

    Right now if a person pays with PayPal the process goes like this:

    – order is placed, and is pending payment
    – user goes to paypal and makes a payment
    – PayPal IPN message is received, order is updated to “processing”
    – email is sent to user

    However this e-mail does not have the payment info in it. If I re-send the same e-mail it works as expected.

    What I don’t get is why it’s missing the first time, when the PayPal IPN is received, and the transaction info with it, before the e-mail is even sent.

    Since the IPN is received before the e-mail is sent why is that info not in the e-mail? If I go to the order and re-send the “processing” e-mail it has the info that we want it to show.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter sherwin_flight

    (@sherwin_flight)

    Or maybe even have PayPal orders automatically put “on hold”, then when I manually change the order status the e-mail would be sent with the correct information.

    Plugin Support RK a11n

    (@riaanknoetze)

    Since the IPN is received before the e-mail is sent why is that info not in the e-mail?

    This isn’t correct afaik. Email is triggered before IPN is triggered when the user lands on the order confirmation page they’re redirected from PayPal. The IPN is usually sent a few seconds later. You could verify this by paying via e-cheque I believe…

    Thread Starter sherwin_flight

    (@sherwin_flight)

    Thanks for the info.

    Ideally I wouldn’t want the e-mail sent at all until after the IPN was received.

    So let the order go through, set a “pending payment”. Then when the IPN comes in have that trigger the sending of the “processing” e-mail.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with e-mail template’ is closed to new replies.