Rails ShopifyAPI::RecurringApplicationCharge.current returns nil

New Member
2 0 0

Using Rails, ShopifyAPI::RecurringApplicationCharge, in our app.

After a merchant accepts charges through the UI we check for the current charge, but RecurringApplicationCharge.current returns nil.

After listing RecurringApplicationCharge.all, I noticed the merchant attempted to activate billing multiple times and there are multiple charges listed all with the status = 'accepted'. This should however be marked as 'active' as there has been a change to the API removing the need to 'activate' a charge.

 We have had a few installs prior to this where merchants accepted charges and the status was correctly marked as 'active'.

Has anyone seen this?

Shopify Staff
Shopify Staff
232 29 34

This is an accepted solution.

Hey @Ephraim1 

What version of the API were you using for your app? As of API version 2021-01, when the charge is accepted,  the charge should be transitioning from pending to active, and we would not expect to see accepted as it was removed in API Version 2021-01. Please let me know - thanks!

| API Support @ Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!