For generic payments, take users to invoice page after purchase
This commit is contained in:
		
					parent
					
						
							
								6a7373523e
							
						
					
				
			
			
				commit
				
					
						968eaaf6a4
					
				
			
		
					 1 changed files with 7 additions and 4 deletions
				
			
		|  | @ -987,15 +987,18 @@ class OrderConfirmationView(DetailView, FormView): | |||
|                         'success': { | ||||
|                             'status': True, | ||||
|                             'redirect': ( | ||||
|                                 reverse('hosting:virtual_machines') | ||||
|                                 reverse('hosting:invoices') | ||||
|                                 if request.user.is_authenticated() | ||||
|                                 else reverse('datacenterlight:index') | ||||
|                             ), | ||||
|                             'msg_title': str(_('Thank you for the order.')), | ||||
|                             'msg_body': str( | ||||
|                                 _('Your VM will be up and running in a few moments.' | ||||
|                                   ' We will send you a confirmation email as soon as' | ||||
|                                   ' it is ready.')) | ||||
|                                 _('Your product will be provisioned as soon as' | ||||
|                                   ' we receive a payment confirmation from ' | ||||
|                                   'Stripe. We will send you a confirmation ' | ||||
|                                   'email. You can always contact us at ' | ||||
|                                   'support@datacenterlight.ch') | ||||
|                             ) | ||||
|                         }, | ||||
|                         'error': { | ||||
|                             'status': False, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue