remove buyrRelated logic

This commit is contained in:
Abhinav-grd 2021-08-14 15:37:49 +05:30
parent ac1a59394e
commit 8d0c67a15c

View file

@ -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<Subscription> {