fix: store and retrieve merchant secret from MCA table for webhooks source verification (#1331)

Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
This commit is contained in:
Hrithikesh
2023-07-14 12:13:33 +05:30
committed by GitHub
parent ce1d205219
commit a6645bd354
39 changed files with 271 additions and 439 deletions

View File

@ -934,8 +934,8 @@ pub fn collect_and_sort_values_by_removing_signature(
}
#[inline]
pub fn get_webhook_merchant_secret_key(connector: &str, merchant_id: &str) -> String {
format!("whsec_verification_{connector}_{merchant_id}")
pub fn get_webhook_merchant_secret_key(connector_label: &str, merchant_id: &str) -> String {
format!("whsec_verification_{connector_label}_{merchant_id}")
}
impl ForeignTryFrom<String> for UsStatesAbbreviation {