feat(webhooks): webhooks effect tracker (#2260)

This commit is contained in:
Narayan Bhat
2023-10-03 14:57:34 +05:30
committed by GitHub
parent abfdea20b0
commit 5048d248e5
4 changed files with 103 additions and 31 deletions

View File

@ -29,6 +29,9 @@ const IRRELEVANT_ATTEMPT_ID_IN_SOURCE_VERIFICATION_FLOW: &str =
const IRRELEVANT_CONNECTOR_REQUEST_REFERENCE_ID_IN_SOURCE_VERIFICATION_FLOW: &str =
"irrelevant_connector_request_reference_id_in_source_verification_flow";
/// Check whether the merchant has configured to process the webhook `event` for the `connector`
/// First check for the key "whconf_{merchant_id}_{connector_id}" in redis,
/// if not found, fetch from configs table in database, if not found use default
pub async fn lookup_webhook_event(
db: &dyn StorageInterface,
connector_id: &str,