diff --git a/datacenterlight/templates/datacenterlight/landing_payment.html b/datacenterlight/templates/datacenterlight/landing_payment.html
index 69c80d35..5ac601ce 100644
--- a/datacenterlight/templates/datacenterlight/landing_payment.html
+++ b/datacenterlight/templates/datacenterlight/landing_payment.html
@@ -112,44 +112,6 @@
{% endif %}
{% include "hosting/includes/_card_input.html" %}
- {% comment %}
-
- {% if credit_card_data.last4 %}
-
- {% if not messages and not form.non_field_errors %}
-
- {% trans "You are not making any payment yet. After submitting your card information, you will be taken to the Confirm Order Page." %}
-
- {% endif %}
-
- {% for message in messages %}
- {% if 'failed_payment' or 'make_charge_error' in message.tags %}
-
- -
-
{{ message|safe }}
-
-
- {% endif %}
- {% endfor %}
- {% for error in form.non_field_errors %}
-
- {{ error|escape }}
-
- {% endfor %}
-
-
-
-
- {% else %}
- {% include "hosting/includes/_card_input.html" %}
- {% endif %}
-
- {% endcomment %}
{% endwith %}
diff --git a/datacenterlight/views.py b/datacenterlight/views.py
index 50148418..3a8bdac6 100644
--- a/datacenterlight/views.py
+++ b/datacenterlight/views.py
@@ -359,7 +359,6 @@ class PaymentOrderView(FormView):
billing_address_data = self.request.session['billing_address_data']
else:
billing_address_data = {}
-
if self.request.user.is_authenticated():
if billing_address_data:
billing_address_form = BillingAddressForm(
@@ -369,24 +368,10 @@ class PaymentOrderView(FormView):
billing_address_form = BillingAddressForm(
instance=self.request.user.billing_addresses.first()
)
- # Get user last order
- last_hosting_order = HostingOrder.objects.filter(
- customer__user=self.request.user
- ).last()
-
- # If user has already an hosting order, get the credit card
- # data from it
- if last_hosting_order:
- credit_card_data = last_hosting_order.get_cc_data()
- if credit_card_data:
- context['credit_card_data'] = credit_card_data
- else:
- context['credit_card_data'] = None
else:
billing_address_form = BillingAddressFormSignup(
initial=billing_address_data
)
-
context.update({
'cards_list': cards_list,
'stripe_key': settings.STRIPE_API_PUBLIC_KEY,
diff --git a/hosting/templates/hosting/settings.html b/hosting/templates/hosting/settings.html
index 6b5acbee..64057747 100644
--- a/hosting/templates/hosting/settings.html
+++ b/hosting/templates/hosting/settings.html
@@ -123,14 +123,4 @@
})();
{%endif%}
-
- {% comment %}
- {% if credit_card_data.last4 and credit_card_data.cc_brand %}
-
- {%endif%}
- {% endcomment %}
{%endblock%}