File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -522,6 +522,10 @@ export class CheckoutService {
522522 // Note: These fields are due to missing Fivetran support on Stripe multi-currency plans
523523 [ STRIPE_SUBSCRIPTION_METADATA . Amount ] : cart . amount ,
524524 [ STRIPE_SUBSCRIPTION_METADATA . Currency ] : cart . currency ,
525+ [ STRIPE_SUBSCRIPTION_METADATA . PreviousPlanId ] : fromPriceId ,
526+ [ STRIPE_SUBSCRIPTION_METADATA . PlanChangeDate ] : Math . floor (
527+ Date . now ( ) / 1000
528+ ) ,
525529 } ,
526530 } ) ;
527531 }
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ export enum STRIPE_SUBSCRIPTION_METADATA {
4848 Currency = 'currency' ,
4949 Amount = 'amount' ,
5050 SubscriptionPromotionCode = 'appliedPromotionCode' ,
51+ PreviousPlanId = 'previous_plan_id' ,
52+ PlanChangeDate = 'plan_change_date' ,
5153}
5254
5355export enum STRIPE_INVOICE_METADATA {
You can’t perform that action at this time.
0 commit comments