Use proper stripe card path for the form (#2751)
* Remove special stripe id conditional code * Use the correct form path
This commit is contained in:
parent
b33b59ec96
commit
5912feb12f
1 changed files with 1 additions and 5 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<!-- cached at: <%= Time.current %> -->
|
||||
<h3>Billing Details</h3>
|
||||
<% if current_user.stripe_id_code.blank? %>
|
||||
<%= form_tag stripe_subscriptions_path, id: "credit-card-form" do %>
|
||||
<%= form_tag "/stripe_active_cards", id: "credit-card-form", method: :post do %>
|
||||
<article>
|
||||
<% if flash[:error].present? %>
|
||||
<div id="error_explanation">
|
||||
|
|
@ -13,10 +13,6 @@
|
|||
<button id="custom-stripe-button" class="credit-card-button">+ Add Credit Card</button>
|
||||
</div>
|
||||
<% end %>
|
||||
<% elsif current_user.stripe_id_code == "special" %>
|
||||
<h3>
|
||||
Billing questions? Send an email to <a href="mailto:yo@dev.to">yo@dev.to</a>.
|
||||
</h3>
|
||||
<% else %>
|
||||
<div class="billing-history-header">Your Credit Cards</div>
|
||||
<% @customer.sources.each do |source| %>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue