E-junkieGuru, I am not sure why you refer to legal issue on producing a receipt because you are not a payment processor. If this is really the case, why does the rest of your response aim to show how this can be done in a thank you page, simulating an invoice/receipt. Wouldn't that lead to legal issues?! I dont think your shopping cart is just a clerk or order taker. You do a lot more than that. On a technical level, you collect customer information on your form and on the other side, would only release products once the payment goes through. What kind of legal issue is there in generating a log of the transaction based on the data you have already collected and knowing that the transaction has gone through. Would you be kind to expand on it please, because I find it very puzzling. Other shopping carts do it so why not you (example: Roman Cart which provides a very similar service to you)
Now, as for your description on how to simulate an invoice, you simply dont provide the desired functionality as I have explained this several times now, and over the years. Yes, I can put an iframe pointing to your site on my own thank you page. This iframe needs to be filled with something that would look like an invoice. For this I require transaction data and a "PRODUCT LIST". I have included your guide on tokens below. None are about including a list of products purchased that can be shown in one page. The product list is an essential part of an invoice/receipt. Without it, there is no receipt. The same goes for emails sent. There is no token to include a list of products purchased in an email, even as a simple text list.
From:
http://www.e-junkie.com/ej/help.custom.thankyou-page.htm
Template variables you can use in the Common Thank-you Page HTML field
[%first_name%] (Buyer's First Name)
[%last_name%] (Buyer's Last Name)
[%payer_email%] (Buyer's PayPal Email)
[%txn_id%] (Transaction ID)
[%auction_buyer_id%] (Auction's Buyer ID [for eBay sales only])
[%shipping_name%] (Shipping recipient's name [if applicable])
[%address%] (Shipping Address [if applicable])
[%city%] (Shipping City [if applicable])
[%state%] (Shipping State [if applicable])
[%zip%] (Shipping ZIP/Postal Code [if applicable])
[%country_full%] (Shuipping Country [if applicable])
[%country%] (Shipping ISO Country Code [if applicable])
[%total%] (Item total)
[%fee%] (Payment Processor's Fee [if available])
[%affiliate_share%] (Affiliate's commission [if applicable])
[%affiliate%] (Affiliate's email [if applicable])
[%currency%]
[%invoice%] (Unique Invoice ID generated by E-junkie)
[%tax%] (Sales tax or VAT)
[%shipping%] (Shipping + Handling)
[%gross%] (Order total)
[%p_date%] (Payment Date, example: January 1, 2009)
[%c_date%] (Current Date, example: January 1, 2009)
[%c_time12%] (Current time (MST) in 12 hour format, example: 7:07 pm MST)
[%c_time24%] (Current time (MST) in 24 hour format. Example: 19:07 MST)
[%custom%] (If you passed a custom variable in the button code)