Skip to content

Commit fc5fe2d

Browse files
authored
fix(promo code) (#557)
1 parent be24d15 commit fc5fe2d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/sveltefirebase-com/src/lib/client/firebase.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ export const addSubscription = async (price: string, uid: string) => {
131131
return await addDoc(collection(userDoc, 'checkout_sessions'), {
132132
mode: 'payment',
133133
price,
134+
allow_promotion_codes: true,
134135
success_url: `${window.location.href}/welcome`,
135136
cancel_url: window.location.href
136137
});

0 commit comments

Comments
 (0)