resolvePolarProductId
Resolve a tier's product handle to the id Polar's API expects.
Source:
packages/paykit/src/PaymentsPolar.tsKind: Primitive · Product: Polar
Resolve a tier’s product handle to the id Polar’s API expects.
A hand-written config already holds the string; PolarBilling holds the
Output for the product its deploy created. Resolving here, at the provider
boundary, keeps the deploy from needing an id that does not exist yet.
Resolving a provisioned product
const productId = yield* resolvePolarProductId(sold.products.pro);