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