✨ quantity one
This commit is contained in:
parent
755cac0bc6
commit
df00b78d80
@ -26,7 +26,7 @@ export default class StripeService {
|
||||
line_items: [
|
||||
{
|
||||
price: priceId,
|
||||
quantity: subscription.nb_seats,
|
||||
quantity: subscription.type === "STANDARD" ? subscription.nb_seats : 1,
|
||||
},
|
||||
],
|
||||
success_url: this.variables.APP_HOST + "/subscription/success",
|
||||
@ -39,7 +39,7 @@ export default class StripeService {
|
||||
|
||||
public async createClientPortalSession(subscriptionId: string) {
|
||||
const subscription = await this.client.subscriptions.retrieve(subscriptionId);
|
||||
|
||||
|
||||
return this.client.billingPortal.sessions.create({
|
||||
customer: subscription.customer as string,
|
||||
return_url: this.variables.APP_HOST + "/subscription/manage",
|
||||
|
Loading…
x
Reference in New Issue
Block a user