A place to discuss charging merchants for your apps and services using the billing API.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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
Solved! Go to the solution
This is an accepted solution.
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!
Shayne | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
This is an accepted solution.
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!
Shayne | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog