From 5912feb12f46d976038bf30d295064be9691ab48 Mon Sep 17 00:00:00 2001 From: Andy Zhao Date: Tue, 7 May 2019 15:33:47 -0400 Subject: [PATCH] Use proper stripe card path for the form (#2751) * Remove special stripe id conditional code * Use the correct form path --- app/views/users/_billing.html.erb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/views/users/_billing.html.erb b/app/views/users/_billing.html.erb index 497dfcd93..3c6f2be7f 100644 --- a/app/views/users/_billing.html.erb +++ b/app/views/users/_billing.html.erb @@ -1,7 +1,7 @@

Billing Details

<% 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 %>
<% if flash[:error].present? %>
@@ -13,10 +13,6 @@
<% end %> -<% elsif current_user.stripe_id_code == "special" %> -

- Billing questions? Send an email to yo@dev.to. -

<% else %>
Your Credit Cards
<% @customer.sources.each do |source| %>