mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(router): allow payments update for requires_payment_method and requires_confirmation intent status only (#5616)
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							66cc0a3b39
						
					
				
				
					commit
					805540a1d0
				
			| @ -95,13 +95,11 @@ impl<F: Send + Clone> GetTracker<F, PaymentData<F>, api::PaymentsRequest> for Pa | |||||||
|                 .and_then(|pmd| pmd.payment_method_data.clone()), |                 .and_then(|pmd| pmd.payment_method_data.clone()), | ||||||
|         )?; |         )?; | ||||||
|  |  | ||||||
|         helpers::validate_payment_status_against_not_allowed_statuses( |         helpers::validate_payment_status_against_allowed_statuses( | ||||||
|             &payment_intent.status, |             &payment_intent.status, | ||||||
|             &[ |             &[ | ||||||
|                 storage_enums::IntentStatus::Failed, |                 storage_enums::IntentStatus::RequiresPaymentMethod, | ||||||
|                 storage_enums::IntentStatus::Succeeded, |                 storage_enums::IntentStatus::RequiresConfirmation, | ||||||
|                 storage_enums::IntentStatus::PartiallyCaptured, |  | ||||||
|                 storage_enums::IntentStatus::RequiresCapture, |  | ||||||
|             ], |             ], | ||||||
|             "update", |             "update", | ||||||
|         )?; |         )?; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user