I am using the SaaS template and have the 'out of the box' subscription product working. I want to add an additional product option (like the one that exists on the PricingPage.tsx).
Here is where my lack of recent dev experience shows. It appears like I would need to pass a var into the
stripePayment()
stripePayment()
call on the PricingPage.tsx noting which button was clicked. And then update Server\Actions.ts to accept that var and update
line_items
line_items
as well as
mode
mode
in the checkout session based on the details of that var.
Is that the best way to approach this? Or is there a simpler path that I am not seeing?