Hi, I’m trying to implement the Billing API for an app still in development but I can’t find a way to test plan selection.
Basically I need to know which plan was selected to send the charge request accordingly. I tried looking into shop.json but it appears the plan_name there is the Shopify store plan.
How can I achieve this?
Cheers
Shopify doesn’t have any concept of plan selection for apps.
The proper flow for a recurring charge looks something like this :
You display a list of your own plans on a page rendered by your app

The customer selects one of these plans

Based on which plan was selected, you create a AppSubscription

You redirect the merchant to the admin to accept the charge

Shopify displays an “Accept Charge” screen

When the merchant accepts the charge, the recurring plan is created on their store
The following guide may help : https://help.shopify.com/en/api/guides/billing-api
Happy building!
1 Like