/
update_pmt_info.html
28 lines (28 loc) · 1.06 KB
/
update_pmt_info.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends 'registration/settings_base.html' %} {% load static %} {% block title %}Update payment
information{% endblock %} {% block settings %}
<div class="card card-body card-inner">
<h2 class="card-title">Update payment information</h2>
<form method="post" id="payment-form">
{% csrf_token %} {% if request.user.customer and request.user.card_info %}
{% with card_info=request.user.customer.card_info %}
<div class="row justify-content-between w-100 mt-3 mb-4">
<div class="col col-auto">
<p>Current payment method</p>
<p>
<i class="far fa-credit-card mr-1"></i><strong>{{card_info.brand}}</strong> ending ****
**** **** {{card_info.last4}}
</p>
</div>
<div class="col col-auto">
<p>Expires</p>
<p>{{card_info.exp_month}}/{{card_info.exp_year}}</p>
</div>
</div>
{% endwith %}{% endif %}
<div class="stripe-input">
{% include 'billing/base.html' %}
</div>
<button type="submit" class="btn btn-success mt-4">Update</button>
</form>
</div>
{% endblock %}