Conversation
Use explicit Stripe::Subscription.update/create and Stripe::Customer.update class methods instead of object mutation + save pattern which causes ArgumentError with current gem version. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pass explicit hashes instead of keyword args to Stripe class methods to avoid ArgumentError in Ruby 3.1 where implicit hash-to-kwargs conversion was removed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Retrieve the subscription as a proper Stripe object before modifying and saving, rather than using the nested object from customer.subscriptions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The ArgumentError was actually a masked 404 from Stripe because the new plans don't exist yet. The Stripe gem v3 error handling is broken on Ruby 3.1, so it shows ArgumentError instead of the real Stripe::InvalidRequestError. Reverting to original code since it works when plans exist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The new plans ($125, $150, $200, $250) were created with auto-generated price IDs instead of custom IDs. Update the dropdown and amount mapping to use the actual Stripe IDs. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Notes
ArgumentErrorinstead of the real error. Upgrading the Stripe gem should be a follow-up.Test plan
🤖 Generated with Claude Code
screenshots from staging:


