Creates a recurring application charge fails only in production

Topic summary

A developer is encountering an issue when creating a recurring application charge using the ShopifyAPI Ruby gem.

What works:

  • The charge creation succeeds in development when recurring_application_charge.test = true is set
  • Basic setup includes name (“Super Duper Plan”), price ($10.00), and return URL

The problem:

  • Removing the test flag causes the API call to fail in production
  • The API returns an error response: {"error_reference": "...reference ID..."} with a message requesting to include the reference ID when reporting the error

Current status:
The issue remains unresolved. The developer needs to troubleshoot why production charges fail while test charges work correctly. The error reference suggests contacting Shopify support with the provided ID for further investigation.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

I’m trying to create a recurring application charge as follows:

recurring_application_charge = ShopifyAPI::RecurringApplicationCharge.new(session: Shop.first.shopify_session)> recurring_application_charge.name = “Super Duper Plan”> recurring_application_charge.price = 10.0> recurring_application_charge.return_url = “http://super-duper.shopifyapps.com”> recurring_application_charge.save!

It works well in development with recurring_application_charge.test = true.

But it fails in production (after removing recurring_application_charge.test = true, of course).

The API returns {"error_reference":"If you report this error, please include this id: 60dcfc7c-08b1-433d-a16a-78d5f8827616-1727746893."}

Why?