feat(router): add external authentication webhooks flow (#4339)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2024-04-16 15:54:46 +05:30
committed by GitHub
parent d4dbaadb06
commit 00cd96d097
22 changed files with 512 additions and 95 deletions

View File

@ -144,6 +144,9 @@ pub async fn create_new_authentication(
state: &AppState,
merchant_id: String,
authentication_connector: String,
profile_id: String,
payment_id: Option<String>,
merchant_connector_id: String,
) -> RouterResult<storage::Authentication> {
let authentication_id =
common_utils::generate_id_with_default_len(consts::AUTHENTICATION_ID_PREFIX);
@ -176,6 +179,9 @@ pub async fn create_new_authentication(
acs_trans_id: None,
three_dsserver_trans_id: None,
acs_signed_content: None,
profile_id,
payment_id,
merchant_connector_id,
};
state
.store