mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(router): send 2xx payments response for all the connector http responses (2xx, 4xx etc.) (#1924)
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							35963e279a
						
					
				
				
					commit
					0ab6827f6c
				
			| @ -182,6 +182,7 @@ pub async fn construct_payout_router_data<'a, F>( | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         payment_method_balance: None, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|  | ||||
|     Ok(router_data) | ||||
| @ -289,6 +290,7 @@ pub async fn construct_refund_router_data<'a, F>( | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         payment_method_balance: None, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|  | ||||
|     Ok(router_data) | ||||
| @ -506,6 +508,7 @@ pub async fn construct_accept_dispute_router_data<'a>( | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         payment_method_balance: None, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|     Ok(router_data) | ||||
| } | ||||
| @ -580,6 +583,7 @@ pub async fn construct_submit_evidence_router_data<'a>( | ||||
|         #[cfg(feature = "payouts")] | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|     Ok(router_data) | ||||
| } | ||||
| @ -655,6 +659,7 @@ pub async fn construct_upload_file_router_data<'a>( | ||||
|         #[cfg(feature = "payouts")] | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|     Ok(router_data) | ||||
| } | ||||
| @ -732,6 +737,7 @@ pub async fn construct_defend_dispute_router_data<'a>( | ||||
|         #[cfg(feature = "payouts")] | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|     Ok(router_data) | ||||
| } | ||||
| @ -804,6 +810,7 @@ pub async fn construct_retrieve_file_router_data<'a>( | ||||
|         #[cfg(feature = "payouts")] | ||||
|         quote_id: None, | ||||
|         test_mode, | ||||
|         connector_http_status_code: None, | ||||
|     }; | ||||
|     Ok(router_data) | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user