Capture both actions requires_action and requires_source_action
This commit is contained in:
		
					parent
					
						
							
								4c7b9eaa52
							
						
					
				
			
			
				commit
				
					
						81ec1125cb
					
				
			
		
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1205,7 +1205,7 @@ class OrdersHostingDetailView(LoginRequiredMixin, DetailView, FormView):
 | 
			
		|||
        ret = stripe.PaymentIntent.confirm(
 | 
			
		||||
            latest_invoice.payment_intent
 | 
			
		||||
        )
 | 
			
		||||
        if ret.status == 'requires_action':
 | 
			
		||||
        if ret.status == 'requires_source_action' or ret.status == 'requires_action':
 | 
			
		||||
            pi = stripe.PaymentIntent.retrieve(
 | 
			
		||||
                latest_invoice.payment_intent
 | 
			
		||||
            )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue