mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 01:57:45 +08:00 
			
		
		
		
	feat(router): add mandates incoming webhooks flow (#2464)
This commit is contained in:
		 Sai Harsha Vardhan
					Sai Harsha Vardhan
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							3f0d927cb8
						
					
				
				
					commit
					1cf8b6cf53
				
			| @ -2115,6 +2115,7 @@ pub fn check_if_operation_confirm<Op: std::fmt::Debug>(operations: Op) -> bool { | ||||
| #[allow(clippy::too_many_arguments)] | ||||
| pub fn generate_mandate( | ||||
|     merchant_id: String, | ||||
|     payment_id: String, | ||||
|     connector: String, | ||||
|     setup_mandate_details: Option<MandateData>, | ||||
|     customer: &Option<domain::Customer>, | ||||
| @ -2137,6 +2138,7 @@ pub fn generate_mandate( | ||||
|                 .set_mandate_id(mandate_id) | ||||
|                 .set_customer_id(cus.customer_id.clone()) | ||||
|                 .set_merchant_id(merchant_id) | ||||
|                 .set_original_payment_id(Some(payment_id)) | ||||
|                 .set_payment_method_id(payment_method_id) | ||||
|                 .set_connector(connector) | ||||
|                 .set_mandate_status(storage_enums::MandateStatus::Active) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user