Hi Team,
We are developing a new app with subscription functionality and have run into an issue.
So far, we have completed the backend functionality for creating subscriptions and are displaying the subscription options on the PDP page through a theme extension. The next step is where we’re stuck.
-
What is the recommended way to add products with subscription plans to the cart?
-
Can this be achieved directly using the
cartCreatemutation (withlines.merchandiseIdandsellingPlanId)? -
If we use
cartCreate, how do we properly handle or replace the generated checkout URL so it aligns with the store’s default checkout flow?
Any guidance or examples on the correct approach would be greatly appreciated.