How to implement Managed Pricing?
teophilus opened this issue · 2 comments
Hi, I don't seem to understand how to use the managed pricing feature along with this template
source: https://shopify.dev/docs/apps/launch/billing/managed-pricing
Hi there 👋
I encourage you to tale a look at the documentation here.
If you have any specific questions about implementing managed pricing with the template please let me know!
I used, the check
but I'm not quite understanding how to implement the redirect if the subscription check Is false
I tried this which didn't seem to work:
if (!subscription) {
redirect(`https://admin.shopify.com/store/{store_handle}/charges/{app_handle}/pricing_plans`);
}
then I read somewhere to add _parent
which I did but for some reason "200" appears on the app on install, then when I refresh the page it works as intended 🤷
if (!subscription) {
redirect(`https://admin.shopify.com/store/{store_handle}/charges/{app_handle}/pricing_plans`, target: '_parent');
}
This may be occurring because I'm using shopify-app-remix v2 so I tried to upgrade to shopify-app-remix v3, but that turned out to be a bit more challenging than I was expecting.