mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(router): add api_version and make profile_id mandatory in mca v2 (#5602)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
19a9180925
commit
56791c2743
@ -347,12 +347,7 @@ async fn incoming_webhooks_core<W: types::OutgoingWebhookType>(
|
||||
)?,
|
||||
};
|
||||
|
||||
let profile_id = merchant_connector_account
|
||||
.profile_id
|
||||
.as_ref()
|
||||
.get_required_value("profile_id")
|
||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||
.attach_printable("Could not find profile_id in merchant connector account")?;
|
||||
let profile_id = merchant_connector_account.profile_id.as_ref();
|
||||
|
||||
let business_profile = state
|
||||
.store
|
||||
|
||||
Reference in New Issue
Block a user