Hello,
I am creating a shopify application by following this tutorial: Build a Shopify App with Node and React
https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react
Everything works perfectly !
Thank you
But I have problem with the chapter 7: Charge a fee using the Billing API
The section: Create a test charge
https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react/charge-a-fee-using-the-billing...
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:
https://github.com/shopify/shopify-demo-app-node-react/
But I have the same problem too.
This is my terminal:
When I replace the line:
await getSubscriptionUrl(ctx, accessToken, shop);
by:
ctx.redirect('/');
on the file server.js I don't have 404 error after the redirection.
Questions:
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 ?
Thanks you
Can you try and tell me where the error is?
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 || '/')
User | Count |
---|---|
49 | |
27 | |
25 | |
20 | |
20 |