FROM CACHE - en_header

Rails ShopifyAPI::RecurringApplicationCharge.current returns nil

Solved
Ephraim1
Tourist
5 1 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?

Accepted Solution (1)

Accepted Solutions
L_J_K
Shopify Staff
Shopify Staff
402 64 84

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!

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

View solution in original post

Reply 1 (1)
L_J_K
Shopify Staff
Shopify Staff
402 64 84

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!

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