Ad

How To Charge RecurringApplicationCharge For Partner-Friendly Apps?

- 1 answer

Shopify says that in order to qualify for Partner-Friendly apps, we need to "not charge" for development stores. Here is the link (TIP section): https://help.shopify.com/en/api/app-store/charging-for-your-app

It says we should grant free access if { "plan_name" : "affiliate" })

When we set the price 0 on RecurringApplicationCharge, we get an error. How do we grant free access ?

Ad

Answer

You can set the test attribute to be true. That way no charge is levied for that install. Just add test: true if partner is affiliate.

One thing to monitor is the change in plan. If an affiliate plan goes real, remove the old test charge and replace it with a non-test charge subscription.

It remains painful for that reason, to deal in the freebies like this.

Ad
source: stackoverflow.com
Ad