mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-11-04 05:59:48 +08:00 
			
		
		
		
	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:
		@ -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 {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user