Why does the "recurringApplicationCharge" feature always remain "Active"?

Highlighted
Shopify Partner
4 0 1

Hello, Shopify Support

 

I am a shopify app developer, I use “recurringApplicationCharge" API to bill the customer who want to use my app.

 

I successfully bill the test customer of a development store one month ago(2019-10-11). Now it should be the next period, But I still get Active state by calling shopify's api (GET /admin/api/2019-10/recurring_application_charges/#{recurring_application_charge_id}.json) to query the user's billing status.

 

What should I do please ? Do you have any suggestions ?


Should I create another payment request and let the user pay for it agaon ?

 

{
id: 11013128258,
name: 'xxxxxx',
api_client_id: 3000419,
price: '1',
status: 'active',
return_url: 'xxxxxx',
billing_on: '2019-10-11',
created_at: '2019-10-11T06:23:08-04:00',
updated_at: '2019-10-11T06:23:19-04:00',
test: true,
activated_on: '2019-10-11',
cancelled_on: null,
trial_days: 0,
trial_ends_on: '2019-10-11',
decorated_return_url: 'xxxxxxxx?charge_id=11013128258'
}

 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

Hey @Komorebi,

 

This is expected behaviour, the recurring application charge status should remain 'active' until the charge is cancelled.

0 Likes
Highlighted
Shopify Partner
4 0 1

If it remains "active" after 30 days, does it mean it has been paid in the next month?

If test is false, will the updated_at in the data be updated?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

Hey @Komorebi,

 

updated_at will only change if the recurring charge is updated (e.g. cancelled or capped amount changed).

 

If it remains "active" after 30 days, does it mean it has been paid in the next month?

Service should continue to be provided to a shop as long as their recurring charge is in the Active state. More info on billing concepts here.

0 Likes
Highlighted
New Member
3 0 0

This flow is a bit flawed.

Shouldn't there be a way to notify stores if the recurring app status changes? If a customer stops the charges, we won't know; we have to keep pinging the recurring status every time?

0 Likes
Highlighted
Shopify Staff
Shopify Staff
1040 140 165

@iocoker the customer would have to uninstall the app to cancel the charge, which an app/uninstall webhook can notify you about.

Another scenario, their account could be frozen, which would fire a shop/update webhook (check the plan property).

0 Likes
Highlighted
New Member
3 0 0

@scottydont Thanks for the clarification. I appreciate

0 Likes