Added stripe failed payment error handler

This commit is contained in:
Siarhei Puhach 2017-08-03 12:47:34 +03:00
commit 34acf2310b
2 changed files with 13 additions and 0 deletions

View file

@ -49,6 +49,15 @@
</div>
</div>
</div>
<div class="help-block with-errors">
{% for message in messages %}
{% if 'failed_payment' in message.tags %}
<ul class="list-unstyled"><li>
<p class="alert alert-danger">{{ message|safe }}</p>
</li></ul>
{% endif %}
{% endfor %}
</div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 dcl-billing-sec">
<div class="col-xs-12 col-sm-5 col-md-6 billing dcl-billing">