Obviously, this is not a direct answer to the question asked... but an outside the box alternative.
I don't know if this is the same world-wide, however, in the UK at least - a physical paper receipt is not a legal requirement in order to return goods.
All that is required is proof of purchase.
This could be a bank or credit card statement containing the appropriate transaction. A redacted copy/scan/print is usually acceptable, in the interest of privacy.
This is most apparent when returning goods bought online, as both parties usually still have access to the transaction data already, but equally applies to in-store purchases.