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:
parent
05ec7cc8fa
commit
c45f961b8c
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user