Enable automatic Stripe receipt emails after payment
All checks were successful
Build and Push Docker Images / docker (push) Successful in 51s
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:
parent
09bbb804e5
commit
f35e82c72a
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user