Accepted application charges will now be automatically transitioned into an active state.

baberuth22
Shopify Partner
19 0 10

I don't understand how the activate endpoint is still getting called. I've updated my code to remove the call to activate billing, yet the API health dashboard is still showing calls to activate.

Screen Shot 2021-09-15 at 9.14.57 AM.png

Here is my return_url php file with the accept_billing call commented out.

Screen Shot 2021-09-15 at 9.12.44 AM.png

And here is the old accept_billing function we no longer call that would call activate.json and trigger the health check.

Screen Shot 2021-09-15 at 9.13.03 AM.png

The set_user_paid function only updates the database.

Screen Shot 2021-09-15 at 9.53.57 AM.png

I am sure that this code is removed. How is it still getting triggered?

On top of that, how can this be a breaking change? We are simply calling an endpoint that is no longer used or necessary. What is the issue and adverse effect?  Couldn't it be ignored?

 

 
Replies 4 (4)
csam
Shopify Staff (Retired)
Shopify Staff (Retired)
267 40 47

Hi @baberuth22 

If you're still seeing this warning, could you please fill out the API support form under partner support in the `[Beta] Report an issue` section? We'll need some additional info such as app name and ID. Thanks!

CS | API Support @ 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

AlexPop
New Member
1 0 0

We have also removed all calls to the activate.json endpoint and still see the warning on our dashboard.

baberuth22
Shopify Partner
19 0 10

I talked with another app developer who has the same problem as us.  He removed all code calling the old activate endpoint as well.

Worst part is they deactivated my app yesterday because of this.   Shopify developer support is the worst. 

This is supposed to be our support channel.  FML

LaunchTip
Shopify Expert
119 3 15

I had this recently. It depends on your setup but in essence, removing the call to activate it without an API version defined will leave these specific charges in no mans land.

So if you have been doing the flow where charge is created, accepted by merchant, then you activate without any API version applied, it will still need activating.

To resolve the deprecation error, the charge needs to be created with a versioned API after the deprecated version. Then when ever a merchant accepts the charge, it's automatically transitioned.

e.g /admin/api/2021-07/recurring_application_charges.json

Increase revenue and ROI with Shopify Apps from LAUNCHTIP - https://www.launchtip.com/