mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	feat(core): use profile_id passed from auth layer within core functions (#5553)
This commit is contained in:
		@ -12,7 +12,7 @@ pub async fn verify_merchant_creds_for_applepay(
 | 
			
		||||
    state: SessionState,
 | 
			
		||||
    body: verifications::ApplepayMerchantVerificationRequest,
 | 
			
		||||
    merchant_id: common_utils::id_type::MerchantId,
 | 
			
		||||
    _profile_id: Option<String>,
 | 
			
		||||
    profile_id: Option<String>,
 | 
			
		||||
) -> CustomResult<services::ApplicationResponse<ApplepayMerchantResponse>, errors::ApiErrorResponse>
 | 
			
		||||
{
 | 
			
		||||
    let applepay_merchant_configs = state.conf.applepay_merchant_configs.get_inner();
 | 
			
		||||
@ -62,6 +62,7 @@ pub async fn verify_merchant_creds_for_applepay(
 | 
			
		||||
            utils::check_existence_and_add_domain_to_db(
 | 
			
		||||
                &state,
 | 
			
		||||
                merchant_id,
 | 
			
		||||
                profile_id,
 | 
			
		||||
                body.merchant_connector_account_id.clone(),
 | 
			
		||||
                body.domain_names.clone(),
 | 
			
		||||
            )
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user