mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	feat(core): add support for multiple merchant_connector_account  (#2655)
				
					
				
			Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Shanks <shashank.attarde@juspay.in>
This commit is contained in:
		| @ -63,6 +63,7 @@ pub async fn get_mca_for_payout<'a>( | ||||
|                 key_store, | ||||
|                 &profile_id, | ||||
|                 connector_id, | ||||
|                 payout_attempt.merchant_connector_id.as_ref(), | ||||
|             ) | ||||
|             .await?; | ||||
|             Ok((merchant_connector_account, profile_id)) | ||||
| @ -222,6 +223,7 @@ pub async fn construct_refund_router_data<'a, F>( | ||||
|         key_store, | ||||
|         &profile_id, | ||||
|         connector_id, | ||||
|         payment_attempt.merchant_connector_id.as_ref(), | ||||
|     ) | ||||
|     .await?; | ||||
|  | ||||
| @ -508,6 +510,7 @@ pub async fn construct_accept_dispute_router_data<'a>( | ||||
|         key_store, | ||||
|         &profile_id, | ||||
|         &dispute.connector, | ||||
|         payment_attempt.merchant_connector_id.as_ref(), | ||||
|     ) | ||||
|     .await?; | ||||
|  | ||||
| @ -597,6 +600,7 @@ pub async fn construct_submit_evidence_router_data<'a>( | ||||
|         key_store, | ||||
|         &profile_id, | ||||
|         connector_id, | ||||
|         payment_attempt.merchant_connector_id.as_ref(), | ||||
|     ) | ||||
|     .await?; | ||||
|  | ||||
| @ -684,8 +688,10 @@ pub async fn construct_upload_file_router_data<'a>( | ||||
|         key_store, | ||||
|         &profile_id, | ||||
|         connector_id, | ||||
|         payment_attempt.merchant_connector_id.as_ref(), | ||||
|     ) | ||||
|     .await?; | ||||
|  | ||||
|     let test_mode: Option<bool> = merchant_connector_account.is_test_mode_on(); | ||||
|     let auth_type: types::ConnectorAuthType = merchant_connector_account | ||||
|         .get_connector_account_details() | ||||
| @ -774,6 +780,7 @@ pub async fn construct_defend_dispute_router_data<'a>( | ||||
|         key_store, | ||||
|         &profile_id, | ||||
|         connector_id, | ||||
|         payment_attempt.merchant_connector_id.as_ref(), | ||||
|     ) | ||||
|     .await?; | ||||
|  | ||||
| @ -858,6 +865,7 @@ pub async fn construct_retrieve_file_router_data<'a>( | ||||
|         key_store, | ||||
|         profile_id, | ||||
|         connector_id, | ||||
|         file_metadata.merchant_connector_id.as_ref(), | ||||
|     ) | ||||
|     .await?; | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Narayan Bhat
					Narayan Bhat