Server: Fixed Stripe checkout when a coupon is used

This commit is contained in:
Laurent Cozic
2021-09-26 18:09:52 +01:00
parent 05ec7cc8fa
commit c45f961b8c
@@ -86,6 +86,8 @@ export const postHandlers: PostHandlers = {
};
if (fields.coupon) {
delete checkoutSession.allow_promotion_codes;
checkoutSession.discounts = [
{
coupon: fields.coupon.trim(),