Thanks Jason and designerwest for the response. I think Jason, you gave me info for issuing the receipt, not RE issuing the receipt. The automation of issuing a receipt is already working but as I explained, some people didn't get one because of some scripts I had accidentally overwritten. So the session is already closed at this point. However, between your answer and designerwest's answer I got it. I'll do what designerwest did and use the checkout success page for the template or the email template. Thanks both.