Solved

Recurring application charge in development store and unpublished app

jessmonter
Visitor
1 0 0

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

Accepted Solution (1)

Shayne
Shopify Staff
254 20 65

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

View solution in original post

Reply 1 (1)

Shayne
Shopify Staff
254 20 65

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