A place to discuss charging merchants for your apps and services using the billing API.
Hi,
I'm building a Shopify app.
I've got the mutation to create the subscription and all looks ok. However depending on the subscription, certain fields are restricted in the UI.
My question is where can I save that information so I can easily/quickly reference it. I'm thinking of in local storage or a cookie. However my concern is if that was removed or tampered with, I'd need additionally logic to handle those situations.
FYI - I've used the mutation querys from this page: https://shopify.dev/tutorials/manage-subscriptions-with-billing-api
I guess this is a common situation so already an easy way to handle - what have people here done?
I was thinking is it possible to attach the the session cookie so its always there as long as the user is logged in.
Thanks.
I've found a potential way, however would like feedback on how good of an approach this is.
So that tutorial uses Koa - in that middle, for each request I could just check - like so:
```
Could you achieve what you want by writing the data to a shop metafield?