Add error detail to the message

This commit is contained in:
M.Ravi 2017-09-28 14:57:03 +02:00
parent 4add1af933
commit 46925c29c4

View file

@ -536,9 +536,10 @@ class OrderConfirmationView(DetailView):
section='payment_error'),
'msg_title': str(_('Error.')),
'msg_body': str(
_('There was a payment related error.'
_('There was a payment related error.<br/>'
'Details: {error_detail}<br/>'
'On close of this popup, you will be redirected back to'
' the payment page.'))
' the payment page.'.format(error_detail=msg)))
}
return HttpResponse(json.dumps(response),
content_type="application/json")