mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
add discount codes
This commit is contained in:
@@ -27,6 +27,7 @@ class StripeService {
|
|||||||
if (!this.stripe) throw Error('Stripe not initialized');
|
if (!this.stripe) throw Error('Stripe not initialized');
|
||||||
|
|
||||||
const checkout = await this.stripe.checkout.sessions.create({
|
const checkout = await this.stripe.checkout.sessions.create({
|
||||||
|
allow_promotion_codes: true,
|
||||||
payment_method_types: ['card'],
|
payment_method_types: ['card'],
|
||||||
line_items: [
|
line_items: [
|
||||||
{ price, quantity: 1 }
|
{ price, quantity: 1 }
|
||||||
|
|||||||
Reference in New Issue
Block a user