Skip to Content

previewUpgrade()

previewUpgrade(input): Promise<{ amountDue: number; currency: string; lines: object[]; sourceProduct: { displayName: string; id: string; }; targetProduct: { displayName: string; id: string; }; }>;

Calculate Stripe’s invoice without applying the upgrade or collecting payment.

Parameters

input

sourceProductId

string = ...

targetProductId

string = ...

Last updated on