As a developer, I don’t have the option to manually add managed pricing—it’s only added during the submission process. I’m planning to offer both Free and Pro tiers, where the Free plan restricts certain features. I want to ensure that all pricing-related functionality works correctly in the app.
Is there a way to test this full flow locally or in a staging environment before submission, so I can validate that everything is working as expected?
Hey @Sabin_Bhattarai
By default all apps using managed pricing will work as test charges on development stores. Once you’ve configured your listing, but before you’ve submitted for review you can test your app charges by visiting your plan selection page:
@KyleG-Shopify I followed this documentation to redirect users to the Shopify-managed plan selection page using:
if (!hasActivePayment) {
return redirect(`shopify://admin/charges/${appHandle}/pricing_plans`, {
target: "_top", // required since the URL is outside the embedded app scope
});
}
However, it doesn’t seem to work as expected. Am I missing something, or is there an additional step required to make this redirect work properly?
Can you share what you’re seeing that’s not expected?