Skip to content

Commit d407af2

Browse files
drusepthclaude
andcommitted
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>
1 parent c9a3acf commit d407af2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/views/subscriptions/history.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
<% @stripe_invoices.first(10).each do |invoice| %>
7474
<tr>
7575
<td>
76-
<%= Time.at(invoice.date).strftime("%B %d, %Y") %><br />
77-
at <%= Time.at(invoice.date).strftime("%I:%M %p") %><br />
78-
<%= '(Pending)' if Time.at(invoice.date) > Time.now %>
76+
<%= Time.at(invoice.created).strftime("%B %d, %Y") %><br />
77+
at <%= Time.at(invoice.created).strftime("%I:%M %p") %><br />
78+
<%= '(Pending)' if Time.at(invoice.created) > Time.now %>
7979
</td>
8080
<td>
8181
<ul>

0 commit comments

Comments
 (0)