mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(payouts): extend routing capabilities to payout operation (#3531)
Co-authored-by: Kashif <mohammed.kashif@juspay.in>
This commit is contained in:
		| @ -117,7 +117,14 @@ pub async fn construct_payout_router_data<'a, F>( | ||||
|     let payouts = &payout_data.payouts; | ||||
|     let payout_attempt = &payout_data.payout_attempt; | ||||
|     let customer_details = &payout_data.customer_details; | ||||
|     let connector_label = format!("{}_{}", payout_data.profile_id, payout_attempt.connector); | ||||
|     let connector_name = payout_attempt | ||||
|         .connector | ||||
|         .clone() | ||||
|         .get_required_value("connector") | ||||
|         .change_context(errors::ApiErrorResponse::InvalidRequestData { | ||||
|             message: "Could not decide to route the connector".to_string(), | ||||
|         })?; | ||||
|     let connector_label = format!("{}_{}", payout_data.profile_id, connector_name); | ||||
|     let connector_customer_id = customer_details | ||||
|         .as_ref() | ||||
|         .and_then(|c| c.connector_customer.as_ref()) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kashif
					Kashif