mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
- Migrate from deprecated sources API to modern payment_methods API in SubscriptionsController - Update subscription plan modifications to use Subscription.modify instead of direct assignment - Fix payment method creation/deletion to use PaymentMethod.create/detach instead of sources - Update view templates to use new payment_methods data structure - Migrate price.id usage from deprecated plan.id in data integrity tasks - Add comprehensive test suite with proper Stripe API stubs - Add missing test gems: rspec-rails, webmock, factory_bot_rails, shoulda-matchers This resolves Error 500 when users try to upgrade to Premium subscriptions. The original error was: NoMethodError - undefined method 'total_count' for nil:NilClass caused by stripe_customer.sources.total_count when sources API returned nil. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api/v1 | ||
| autocomplete | ||
| documents | ||
| basil_service.rb | ||
| content_formatter_service.rb | ||
| contributor_service.rb | ||
| emotion_service.rb | ||
| export_service.rb | ||
| field_type_service.rb | ||
| forum_replacement_service.rb | ||
| forums_linkbuilder_service.rb | ||
| forums_prosify_service.rb | ||
| green_service.rb | ||
| page_tag_service.rb | ||
| paypal_service.rb | ||
| permission_service.rb | ||
| promo_service.rb | ||
| prompt_service.rb | ||
| referrals_service.rb | ||
| serendipitous_service.rb | ||
| service.rb | ||
| slack_service.rb | ||
| stripe_account_events.rb | ||
| stripe_charge_events.rb | ||
| stripe_customer_subscription_events.rb | ||
| stripe_invoice_events.rb | ||
| stripe_service.rb | ||
| subscription_service.rb | ||
| temporary_field_migration_service.rb | ||