mirror of
https://github.com/laurent22/joplin.git
synced 2026-06-18 20:16:34 +02:00
Server: Fixed Stripe checkout when a coupon is used
This commit is contained in:
@@ -86,6 +86,8 @@ export const postHandlers: PostHandlers = {
|
||||
};
|
||||
|
||||
if (fields.coupon) {
|
||||
delete checkoutSession.allow_promotion_codes;
|
||||
|
||||
checkoutSession.discounts = [
|
||||
{
|
||||
coupon: fields.coupon.trim(),
|
||||
|
||||
Reference in New Issue
Block a user