All things Shopify and commerce
How does the implementation of the app look like when using managed-pricing as described in the following documentation?
https://shopify.dev/docs/apps/launch/billing/managed-pricing
I want to retrieve the usage status of the recurring_application_charges and redirect to the subscription page if it's not active, but I'm unable to retrieve the usage status.
I'm also trying to wrap my head around this. How would Remix app look like using managed pricing model. Docs say shopify hosts that subscription page and url https://admin.shopify.com/charges/{app_handle}/pricing_plans is provided, but I can't seem to find any information on how to use it in Remix app. As an example with "Manual Pricing" I do
I have faced the same problem you described, the Shopify documentation did not mention how to proceed having this Managed Pricing enabled.
What I ended up doing was:
* Create you plans array in your code using the same name you have used when you have set the pricing plans
* In the app main page loader you will be able to retrieve the subscription plans enabled, then you won't be able to redirect to the price managed page from the loader but you can set on the settings that will be used front end the information regarding the plan and also the shop name.
* In the front end side, having the properties related to the payment status on your settings object, you can redirect the user the managed payment page, eg:
useEffect(() => {
if (settings.redirectPayment) {
window?.top?.location.replace(`https://admin.shopify.com/store/${shopName}/charges/${appName}/pricing_plans`);
}
}, []);
It is just a workaround until they guide us into a solution.
hmm where is the settings object located?
I am also facing the same problem, the documentation says so much but so little at the same time.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024