How to migrate legacy plans to Remix.js?

Shopify Partner
15 0 1

I'm porting my legacy app to Remix.js and I'm not sure how the subscription plans are handled by Remix:

await billing.require({
  plans: [MONTHLY_PLAN, 'legacy plan 1', 'legacy plan 2'],
  isTest: true,
  onFailure: async () => billing.request({ plan: MONTHLY_PLAN }),

Would this be enough so that the legacy plans with the respective names fulfill the billing-require or does this work differently?



Replies 0 (0)