From 2bd5702b09dae6f42d97d84c68f336b05708eebd Mon Sep 17 00:00:00 2001 From: PCoder Date: Sun, 16 Jul 2017 03:38:48 +0530 Subject: [PATCH] Modified payment.html to include credit card number , cvv and year as separate Stripe elements --- hosting/templates/hosting/payment.html | 178 ++++++++++++++----------- 1 file changed, 103 insertions(+), 75 deletions(-) diff --git a/hosting/templates/hosting/payment.html b/hosting/templates/hosting/payment.html index 7f3aa0ab..c96e408e 100644 --- a/hosting/templates/hosting/payment.html +++ b/hosting/templates/hosting/payment.html @@ -2,46 +2,49 @@ {% load staticfiles bootstrap3 i18n %} {% block content %} +
-

Your Order

+

{%trans "Your Order" %}

-
- Cores +
+ {%trans "Cores" %}
- Memory + {%trans "Memory" %}
-
- Disk space +
+ {%trans "Disk space" %}
- Configuration + {%trans "Configuration" %}
-
- 1 +
+ {{request.session.specs.cpu|floatformat}}
- 2 GB + {{request.session.specs.memory|floatformat}} GB
-
- 10 GB +
+ {{request.session.specs.disk_size|floatformat}} GB
- CentOS 7 + {{request.session.template.name}}
- Total including VAT + Total {%trans "including VAT" %}
-
15CHF
+
{{request.session.specs.price}} + CHF +
@@ -64,11 +67,13 @@
-

{% trans 'Please fill in your credit card information below. We are using Stripe for payment and do not - store - your - information in our database.' %}

+

+ {% blocktrans %} + Please fill in your credit card information below. We are using Stripe for payment and do not store + your information in our database. + {% endblocktrans %} +


@@ -81,78 +86,101 @@
-
-
-
-
-
- -
-
-
- {% else %} - - -
-
-
-
- -
-
-
- -
-
-

- {% trans "You are not making any payment yet. After submitting your card - information, you will be taken to the Confirm Order Page." %}

+

+ {% blocktrans %} + You are not making any payment yet. After submitting your card + information, you will be taken to the Confirm Order Page. + {% endblocktrans %} +

-
-