Skip to content

basalt / subscriptions/src / attestedPlan

Function: attestedPlan() ​

> attestedPlan(metadata): object

Defined in: subscriptions/src/gateway.ts:60

Reads the plan/period a driver stamped into the gateway's signed metadata when it created the checkout/subscription — for WebhookEvent.plan/period.

Parameters ​

metadata ​

Record<string, unknown> | null | undefined

Returns ​

object

period? ​

> optional period?: BillingPeriod

plan? ​

> optional plan?: string

Released under the MIT License.