Reset vat_validation_status when on payment page
This commit is contained in:
		
					parent
					
						
							
								d1fd57b730
							
						
					
				
			
			
				commit
				
					
						cde6c51d4b
					
				
			
		
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -309,6 +309,7 @@ class PaymentOrderView(FormView):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @cache_control(no_cache=True, must_revalidate=True, no_store=True)
 | 
					    @cache_control(no_cache=True, must_revalidate=True, no_store=True)
 | 
				
			||||||
    def get(self, request, *args, **kwargs):
 | 
					    def get(self, request, *args, **kwargs):
 | 
				
			||||||
 | 
					        request.session.pop('vat_validation_status')
 | 
				
			||||||
        if (('type' in request.GET and request.GET['type'] == 'generic')
 | 
					        if (('type' in request.GET and request.GET['type'] == 'generic')
 | 
				
			||||||
                or 'product_slug' in kwargs):
 | 
					                or 'product_slug' in kwargs):
 | 
				
			||||||
            request.session['generic_payment_type'] = 'generic'
 | 
					            request.session['generic_payment_type'] = 'generic'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue