mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	fix(dummyconnector): add tenant id in dummyconnector requests (#7008)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -11,6 +11,7 @@ use crate::{ | ||||
|     db::{get_and_deserialize_key, StorageInterface}, | ||||
|     services::logger, | ||||
|     types::{self, api, domain, PaymentAddress}, | ||||
|     SessionState, | ||||
| }; | ||||
|  | ||||
| const IRRELEVANT_ATTEMPT_ID_IN_SOURCE_VERIFICATION_FLOW: &str = | ||||
| @ -57,6 +58,7 @@ pub async fn is_webhook_event_disabled( | ||||
| } | ||||
|  | ||||
| pub async fn construct_webhook_router_data<'a>( | ||||
|     state: &SessionState, | ||||
|     connector_name: &str, | ||||
|     merchant_connector_account: domain::MerchantConnectorAccount, | ||||
|     merchant_account: &domain::MerchantAccount, | ||||
| @ -74,6 +76,7 @@ pub async fn construct_webhook_router_data<'a>( | ||||
|         merchant_id: merchant_account.get_id().clone(), | ||||
|         connector: connector_name.to_string(), | ||||
|         customer_id: None, | ||||
|         tenant_id: state.tenant.tenant_id.clone(), | ||||
|         payment_id: common_utils::id_type::PaymentId::get_irrelevant_id("source_verification_flow") | ||||
|             .get_string_repr() | ||||
|             .to_owned(), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Kartikeya Hegde
					Kartikeya Hegde