mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	fix(router): make customer_id optional when billing and shipping address is passed in payments create, update (#2762)
This commit is contained in:
		| @ -566,7 +566,7 @@ impl CustomerAddress for api_models::customers::CustomerRequest { | ||||
|                     .async_lift(|inner| encrypt_optional(inner, key)) | ||||
|                     .await?, | ||||
|                 country_code: self.phone_country_code.clone(), | ||||
|                 customer_id: customer_id.to_string(), | ||||
|                 customer_id: Some(customer_id.to_string()), | ||||
|                 merchant_id: merchant_id.to_string(), | ||||
|                 address_id: generate_id(consts::ID_LENGTH, "add"), | ||||
|                 payment_id: None, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Prasunna Soppa
					Prasunna Soppa