remove buyrRelated logic
This commit is contained in:
parent
ac1a59394e
commit
8d0c67a15c
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue