Andrew Brown
d69f8f80c7
more stripe safety
2025-07-11 00:37:50 -07:00
Andrew Brown
ac96a001a8
Fix Stripe subscription errors by migrating deprecated sources API to payment_methods API
...
- 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>
2025-07-10 23:40:36 -07:00
drusepth
f2583356af
remove logging and enable live update
2022-04-02 00:39:59 -07:00
drusepth
d6db90adc2
a lil extra reporting
2022-04-01 21:52:29 -07:00
drusepth
18dfbd16ea
add lenience on storage integrity update
2022-04-01 21:29:52 -07:00
drusepth
fb2097bbcc
remove old var
2022-04-01 21:18:03 -07:00
drusepth
b5af01501a
staging dry run
2022-04-01 20:55:18 -07:00
drusepth
81fbfc95ec
extract upload integrity logic to service
2022-04-01 20:10:10 -07:00
drusepth
3875f3dc41
rake task to murder orphan children
2022-03-28 11:44:34 -07:00
drusepth
505d85dd77
unguard integrity rake task
2022-03-20 16:58:03 -07:00
drusepth
d694381be3
no bp = starter
2022-03-10 16:42:52 -08:00
drusepth
a82f7f6c97
handle free-for-lifers
2022-03-10 15:54:38 -08:00
drusepth
81ff2b6436
debugging
2022-03-10 15:14:54 -08:00
drusepth
bdd0c47695
incorporate referral bonuses in integrity task
2022-03-10 15:05:01 -08:00
drusepth
0375e46a08
add data integrity task for upload bandwidths
2022-03-10 14:41:10 -08:00
Andrew Brown
d27ebc4068
unnecessary puts
2021-05-11 00:50:27 -07:00
Andrew Brown
82a4d16fbb
add data integrity task
2021-05-10 14:14:44 -07:00
Andrew Brown
49a0da8c9b
send unsubscribe emails to auto-downgraded users
2020-05-10 18:10:29 -05:00
Andrew Brown
a1b27e63ab
skip validations on migration flag
2020-03-27 19:33:29 -05:00
Andrew Brown
64eba500b8
whoopsies
2020-03-27 14:41:58 -05:00
Andrew Brown
209b43e0c4
a bit more progress reporting
2020-03-27 13:51:24 -05:00
Andrew Brown
883be62577
increase records processed per cycle
2020-03-27 13:40:38 -05:00
Andrew Brown
2e36b546e2
why isn't this working
2020-03-27 00:29:32 -05:00
Andrew Brown
44971e8d6b
remove pry
2020-03-27 00:21:08 -05:00
Andrew Brown
b3612ccfd2
debugs
2020-03-26 22:29:49 -05:00
Andrew Brown
23c777e6b7
disable logger during migration
2020-03-26 20:01:43 -05:00
Andrew Brown
85299e1fcf
don't find_each here since it clobbers our sorting
2020-03-26 19:55:30 -05:00
Andrew Brown
37baf03b4d
first runthrough
2020-03-26 19:40:38 -05:00
Andrew Brown
a8b2296883
rake task
2020-03-26 19:06:59 -05:00
Andrew Brown
25f20c9522
add migration rake task
2020-03-26 19:00:41 -05:00
Andrew Brown
e183987f0f
potential tag error fix
2020-03-26 03:44:09 -05:00
Andrew Brown
0b70dbac16
PR polish
2020-01-30 23:35:48 -06:00
Andrew Brown
5692a32355
reorganize site landing page cards
2020-01-29 16:05:49 -06:00
Andrew Brown
dd7f1abc79
wip integrity
2020-01-27 15:03:06 -06:00
Andrew Brown
2b0065acbb
more info
2020-01-22 14:40:39 -06:00
Andrew Brown
a0b6f4f7bd
remove debug
2020-01-22 14:34:31 -06:00
Andrew Brown
284e1725f4
just aboot ready
2020-01-22 14:28:29 -06:00
Andrew Brown
173a8baae4
derp
2020-01-22 14:12:39 -06:00
Andrew Brown
39dc8c2338
one last fix
2020-01-22 14:07:51 -06:00
Andrew Brown
232aafb4d8
safety check
2020-01-22 14:04:00 -06:00
Andrew Brown
544c7b5948
wowser don't mind me
2020-01-22 13:57:07 -06:00
Andrew Brown
4496fd7fcc
i'm typo man
2020-01-22 13:52:01 -06:00
Andrew Brown
6eae851efc
don't bother with ffl accounts
2020-01-22 13:47:59 -06:00
Andrew Brown
9129d96f8e
debug output for staging demo
2020-01-22 13:42:05 -06:00
Andrew Brown
99b4db7f64
stripe sync task
2020-01-22 13:33:45 -06:00
Andrew Brown
190cdff990
start work on integrity-enforcing tasks
2020-01-22 12:41:46 -06:00