Skip SSH key page for generic products page
This commit is contained in:
		
					parent
					
						
							
								2c74eae3f9
							
						
					
				
			
			
				commit
				
					
						207c3a6c6c
					
				
			
		
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -522,6 +522,12 @@ class PaymentOrderView(FormView): | |||
|                 request.session['customer'] = customer.stripe_id | ||||
|             else: | ||||
|                 request.session['customer'] = customer | ||||
| 
 | ||||
|             # For generic payment we take the user directly to confirmation | ||||
|             if ('generic_payment_type' in request.session and | ||||
|                     self.request.session['generic_payment_type'] == 'generic'): | ||||
|                 return HttpResponseRedirect( | ||||
|                     reverse('datacenterlight:order_confirmation')) | ||||
|             return HttpResponseRedirect( | ||||
|                 reverse('datacenterlight:add_ssh_key')) | ||||
|         else: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue