Appearance
web / lib/server/billing-utils / fetchCurrentPeriod
Function: fetchCurrentPeriod()
fetchCurrentPeriod(
subscriptionId):Promise<{current_period_end:string;current_period_start:string; }>
Defined in: lib/server/billing-utils.ts:7
Fetches the current billing period for a subscription directly from Stripe.
Parameters
subscriptionId
string
Returns
Promise<{ current_period_end: string; current_period_start: string; }>