Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to implement Managed Pricing? #856

Open
teophilus opened this issue Sep 26, 2024 · 2 comments
Open

How to implement Managed Pricing? #856

teophilus opened this issue Sep 26, 2024 · 2 comments

Comments

@teophilus
Copy link

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

@lizkenyon
Copy link
Contributor

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!

@teophilus
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants