1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-01-11 18:24:43 +02:00

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

View File

@ -86,6 +86,8 @@ export const postHandlers: PostHandlers = {
}; };
if (fields.coupon) { if (fields.coupon) {
delete checkoutSession.allow_promotion_codes;
checkoutSession.discounts = [ checkoutSession.discounts = [
{ {
coupon: fields.coupon.trim(), coupon: fields.coupon.trim(),