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

Highlighted
New Member
12 0 0

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

0 Likes
Highlighted
New Member
12 0 0

Can you try and tell me where the error is?

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

0 Likes