(priceId: string)
| 96 | } |
| 97 | |
| 98 | async createCheckoutSession(priceId: string): Promise<{ url: string }> { |
| 99 | return apiClient.post('/subscriptions/create-checkout-session', { |
| 100 | priceId, |
| 101 | }); |
| 102 | } |
| 103 | |
| 104 | async createPortalSession(): Promise<{ url: string }> { |
| 105 | return apiClient.post('/subscriptions/create-portal-session'); |