Shopify Billing API Double Billing

New Member
2 0 0

I’ve been following the Build a Shopify App With Node.js and Next.js tutorial. 

In the afterAuth callback they make a graphql call to register a recurring plan.

Everything works fine but when I try accessing the app on the same store from a different browser or device that hasn’t been authenticated I am prompted again with the window where I have to accept the charges even though I’ve already done it.

Is this because this is a test charge on a development store or am I supposed to implement a logic that doesn’t create a recurring charge if I’ve already accepted one? 

Thanks for your time