MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / changeSubscription

Function changeSubscription

packages/payments/src/polar.ts:108–116  ·  view source on GitHub ↗
(subscriptionId: string, productId: string)

Source from the content-addressed store, hash-verified

106}
107
108export function changeSubscription(subscriptionId: string, productId: string) {
109 return polar.subscriptions.update({
110 id: subscriptionId,
111 subscriptionUpdate: {
112 productId,
113 prorationBehavior: 'invoice',
114 },
115 });
116}

Callers 1

subscription.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected