<% if @account.credit_card_stored? %>

  <p>
    <table class="list">
      <tr>
	<th>Credit card number</th>
	<td><%= @account.credit_card_display_number.presence || 'not provided' %></td>
      </tr>

      <% unless @account.provider_account.payment_gateway_type == :authorize_net %>
	<tr>
	  <th>Expiration date</th>

	  <td><%= @account.credit_card_expires_on.strftime('%B, %Y').presence || 'not provided' %></td>
	</tr>
      <% end -%>
    </table>
  </p>

<% end -%>
