Add error detail to the message
This commit is contained in:
		
					parent
					
						
							
								4add1af933
							
						
					
				
			
			
				commit
				
					
						46925c29c4
					
				
			
		
					 1 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -536,9 +536,10 @@ class OrderConfirmationView(DetailView):
 | 
				
			||||||
                    section='payment_error'),
 | 
					                    section='payment_error'),
 | 
				
			||||||
                'msg_title': str(_('Error.')),
 | 
					                'msg_title': str(_('Error.')),
 | 
				
			||||||
                'msg_body': str(
 | 
					                'msg_body': str(
 | 
				
			||||||
                    _('There was a payment related error.'
 | 
					                    _('There was a payment related error.<br/>'
 | 
				
			||||||
                      ' On close of this popup, you will be redirected back to'
 | 
					                      'Details: {error_detail}<br/>' 
 | 
				
			||||||
                      ' the payment page.'))
 | 
					                      'On close of this popup, you will be redirected back to'
 | 
				
			||||||
 | 
					                      ' the payment page.'.format(error_detail=msg)))
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            return HttpResponse(json.dumps(response),
 | 
					            return HttpResponse(json.dumps(response),
 | 
				
			||||||
                                content_type="application/json")
 | 
					                                content_type="application/json")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue