Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add errors display in pay card
Michal Ociepka8ae272ef9189
diff --git a/payment/templates/payment/paypal-card.html b/payment/templates/payment/paypal-card.htmlindex 4052ed476b..1abd2fe6c7 100644--- a/payment/templates/payment/paypal-card.html+++ b/payment/templates/payment/paypal-card.html@@ -9,10 +9,16 @@{{ form.non_field_errors|as_bootstrap }}{{ form.name|as_bootstrap }}{{ form.number|as_bootstrap }}- <div class="control-group name required">+ <div class="control-group name required{% if form.expiration.errors %} error{% endif %}"><label class="control-label">Expiry date</label><div class="controls controls-row">{{ form.expiration }}+ {% if form.expiration.errors %}+ <span class="help-inline error">+ {% for error in form.expiration.errors %}+ {{ error }}+ {% endfor %}+ </span>{% endif %}</div></div>{{ form.cvv2|as_bootstrap }}