I am creating a shopify application by following this tutorial: Build a Shopify App with Node and React
Everything works perfectly !
But I have problem with the chapter 7: Charge a fee using the Billing API
The section: Create a test charge
Indeed, I don't have the same result as the tutorial:
I have this screen:
And when I click on the button "Install app" (the link page is https://dc35b63a2d82.ngrok.io/auth/null ) I am redirect but my application have an error:
I tried with the Github version:
But I have the same problem too.
This is my terminal:
When I replace the line:
await getSubscriptionUrl(ctx, accessToken, shop);
on the file server.js I don't have 404 error after the redirection.
1) What's my error ?
2) Why I don't have the same screen (Approve charge) as the tutorial ?
Is it because I am using Partners Shopify ?
Same issue here.
I've added a log here :
It says Billing API is not availlable on Custom apps.
This tutorial is made for Public apps.
I've replaced the return line with this to make it works:
return ctx.redirect(confirmationUrl || '/')