Trigger annualDiscountPriceId on Stripe

Hey devs, i defined a annualDiscountPriceId but i dont know how can trigger it with the subscription.upgrade

plans: [
                    {
                        name: "Starter",
                        priceId: STARTER_PRICE_ID.default,
                        annualDiscountPriceId: STARTER_PRICE_ID.annual,
                        freeTrial: {
                            days: 7,
                        },
                    },
                    {
                        name: "Pro",
                        priceId: PRO_PRICE_ID.default,
                        annualDiscountPriceId: PRO_PRICE_ID.annual,
                    },
                    {
                        name: "Enterprise",
                    },
                ],
Solution
Something happened because now it returns the correct array with the subscription, closing issue.
Was this page helpful?