Commit Graph

84 Commits

Author SHA1 Message Date
Andrew Brown
3891a91993 new help docs 2025-07-17 15:58:21 -07:00
Andrew Brown
755bcab0af billing pages 2025-07-17 12:42:05 -07:00
Andrew Brown
d407af2878 Fix billing history page errors after Stripe gem upgrade
- Replace deprecated account_balance with balance on Customer objects
- Replace deprecated date with created on Invoice objects

These API attribute changes in the newer Stripe gem were causing
NoMethodError exceptions on the billing history page.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-16 23:59:17 -07:00
Andrew Brown
c9a3acf67f another stripe fix 2025-07-16 23:56:44 -07:00
Andrew Brown
cd8c948fcd stripe safety 2025-07-11 00:27:16 -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
Andrew Brown
6ae9a5a407 consistency in plan cost formatting 2025-05-18 15:11:52 -07:00
drusepth
87ec82fe74 verbiage tweaks 2022-10-24 17:21:33 -07:00
drusepth
5c3c76a002 add billing faq 2022-10-24 16:56:22 -07:00
drusepth
a4d2500201 tristan/ images new usage 2021-10-04 15:40:03 -07:00
Andrew Brown
ffee832158 s/.color}-text/.text_color}/ 2021-07-18 18:29:06 -07:00
Andrew Brown
ee3200976d s/.color %>-text/.text_color %>/ 2021-07-18 18:22:58 -07:00
Andrew Brown
a982958152 don't error when stripe can't detect card brand 2021-06-18 00:47:21 -07:00
Andrew Brown
2f918391f0 billing polish 2021-05-03 02:53:13 -07:00
Andrew Brown
bb0c0a6c06 nix all the .constantize calls in views 2021-04-29 19:47:57 -07:00
Andrew Brown
fce2a29303 move referrals logic from sub to data controller 2020-08-28 13:13:51 -07:00
Andrew Brown
f9983fcd91 move referrals link from billing page to data vault 2020-08-28 13:11:36 -07:00
Andrew Brown
e8e81de8a9 clean up billing page 2020-08-28 13:05:38 -07:00
Andrew Brown
07d5024443 allow clicking a prepaid code to prepopulate activation box 2020-08-28 12:26:40 -07:00
Andrew Brown
a77837859d add usd banner 2020-07-07 02:26:11 -07:00
Andrew Brown
716807025c tackling final todos 2020-07-05 20:29:41 -05:00
Andrew Brown
fa8c303dd3 more user preferences / dark mode work 2020-06-03 17:08:18 -05:00
Andrew Brown
ff6d8a96d8 more work on dark mode 2020-05-16 16:04:21 -05:00
Andrew Brown
f8c65c6411 refactor notice dismissals into views 2020-04-03 20:43:37 -05:00
Andrew Brown
9879397eaf more improvements 2020-03-24 17:11:51 -05:00
Andrew Brown
9005a4666a verbiage 2020-03-24 17:02:28 -05:00
Andrew Brown
84afb58af0 subscription page improvements wrt codes 2020-03-24 16:43:59 -05:00
Andrew Brown
7a956795c0 add another cta to billing page 2020-03-21 00:39:10 -05:00
Andrew Brown
5cdf9a7ec5 show promo code descriptions on prepay page 2020-03-20 16:10:05 -05:00
Andrew Brown
ddddb93602 prepay landing page redesign 2020-03-20 15:35:10 -05:00
Andrew Brown
718a674869 quick fix for debug data 2020-03-20 15:08:05 -05:00
Andrew Brown
f2663fddb1 polish 2020-01-18 14:23:28 -06:00
Andrew Brown
2deb04aa4c polish 2020-01-17 21:34:34 -06:00
Andrew Brown
f5ba401d67 lower prices for live testing lol 2020-01-17 19:13:11 -06:00
Andrew Brown
d7c05b1731 polishing 2020-01-16 20:57:56 -06:00
Andrew Brown
4082bbae2b Oh hey look it's paypal 2020-01-16 16:54:51 -06:00
Andrew Brown
786c8f5cfc add referrals page 2020-01-09 14:37:39 -06:00
Andrew Brown
7296651126 add separate billing history page 2020-01-09 13:43:26 -06:00
Andrew Brown
9a791f4e79 shh 2019-10-17 21:38:39 -05:00
Andrew Brown
579e4c5fb4 add share to facebook button 2019-10-10 20:20:26 -05:00
Andrew Brown
5b2b24b06b whitespace 2019-09-11 18:41:45 -05:00
Andrew Brown
f812a1a91b Styling 2019-08-06 16:49:51 -05:00
Andrew Brown
ecef856f19 dumb bug 2019-07-08 01:15:08 -05:00
Andrew Brown
728d6c9bbd reorder 2019-07-07 23:49:23 -05:00
Andrew Brown
c4308231d0 cleaning up 2019-07-07 21:40:44 -05:00
Andrew Brown
0ed40ca33f lol hwat 2019-07-07 16:54:00 -05:00
Andrew Brown
6c68975bd9 all the ui stuff for everything to work 2019-07-07 16:40:39 -05:00
Andrew Brown
69b5ab66ea wires to fill out tomorrow 2019-07-07 00:52:13 -05:00
Andrew Brown
f917ccf314 more code cleanup 2019-05-12 01:51:16 -05:00
Andrew Brown
2011a5e6d4 explain referral bonuses 2019-03-18 19:34:16 -05:00