Change your payment details


<% if @card.present? %>

<%= @card.brand %>
Card: **** **** **** <%= @card.last4 %>
Expiry: <%= "#{@card.exp_month}/#{@card.exp_year}" %>

<% else %>

You do not have a card on file.

<% end %>
<%= link_to 'Use a new card', new_account_card_path, class: 'btn btn-secondary' %> <% if @can_delete_card? %> <%= link_to 'Remove card', account_card_path, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %> <% end %> <%= link_to 'Cancel', account_subscription_path, class: 'btn btn-secondary' %>