Tutorial: Charge a fee using the Billing API - Error ?

Tourist
12 0 2

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: 

billing-charges-large-0689d8c5ac856b241a80c4bdc5ae328451f5586e4b84ecccae4ad70f3feeddc5

 

I have this screen:

Screen Shot 2020-07-03 at 14.32.14.png

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:

Screen Shot 2020-07-03 at 14.34.12.png

 

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:

Screen Shot 2020-07-03 at 14.46.23.png

 

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

Tourist
12 0 2

Can you try and tell me where the error is?

https://iltn03.com:3300/auth?shop=YOUR_SHOP.myshopify.com

0 Likes
Tourist
7 0 0

Got exact issue. What is your fix for this?

0 Likes
New Member
1 0 0

I have same issue.

Any solution ?

0 Likes
Tourist
7 0 0

Try to turn off your firewall it will fix the issue.

0 Likes
New Member
2 0 0

Yes, Getting the same issue. Anyone can help ?

0 Likes
New Member
1 0 1

Same issue here.

I've added a log here :

yannlombard_0-1606753905193.png

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 || '/')