To enable automated receipts, in your Customer emails settings, under Email customers about, select Successful payments. You can also customise receipts. Receipts are only sent when a successful payment has been made β no receipt is sent if the payment fails or is declined.
Learn more about receipts in the Stripe documentation here: