diff --git a/src/services/billingService.ts b/src/services/billingService.ts index 41a4a469f..74a319a00 100644 --- a/src/services/billingService.ts +++ b/src/services/billingService.ts @@ -98,10 +98,6 @@ class billingService { public async buyPaidSubscription(productID) { try { - // const response = await this.createCheckoutSession(productID); - // await this.stripe.redirectToCheckout({ - // sessionId: response.data.sessionID, - // }); const paymentToken = await getPaymentToken(); await this.redirectToPayments( paymentToken, @@ -200,18 +196,6 @@ class billingService { } } - private async createCheckoutSession(productID) { - return HTTPService.get( - `${ENDPOINT}/billing/stripe/checkout-session`, - { - productID, - }, - { - 'X-Auth-Token': getToken(), - } - ); - } - public async verifySubscription( sessionID: string = null ): Promise {