Enable automatic Stripe receipt emails after payment
All checks were successful
Build and Push Docker Images / docker (push) Successful in 51s

- Added payment_intent_data.receipt_email to checkout session
- Stripe will now automatically send receipt emails to customers after successful payment
This commit is contained in:
Matt 2025-10-30 16:32:50 +01:00
parent 09bbb804e5
commit f35e82c72a

View File

@ -112,6 +112,9 @@ router.post('/create-session', async (req, res) => {
baseAmount: baseAmount.toString(), baseAmount: baseAmount.toString(),
processingFee: processingFee.toString(), processingFee: processingFee.toString(),
}, },
payment_intent_data: {
receipt_email: customerEmail, // Send Stripe receipt email after successful payment
},
}); });
// Store order in database // Store order in database