feat(core): use profile_id passed from auth layer within core functions (#5553)

This commit is contained in:
Hrithikesh
2024-08-09 12:28:47 +05:30
committed by GitHub
parent fc581e08ff
commit 9fa631d2b9
12 changed files with 233 additions and 32 deletions

View File

@ -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(),
)