My brother did this at about the same age; my gran made him take the sweets back to the shop, tell the shopkeeper what he'd done, and pay for them.
Not sure I understand why you'd rather she write a letter; I think the idea of facing the situation and making appropriate apology is fair enough.
Anyway, it's what I'd do!