Recurring application charge in development store and unpublished app

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

:down_arrow:

The customer selects one of these plans

:down_arrow:

Based on which plan was selected, you create a AppSubscription

:down_arrow:

You redirect the merchant to the admin to accept the charge

:down_arrow:

Shopify displays an “Accept Charge” screen
:down_arrow:
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