mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	fix(core): add should_call_connector_customer function to connector specification (#9569)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -564,6 +564,17 @@ impl ConnectorSpecifications for ConnectorEnum { | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /// Check if connector requires create customer call | ||||
|     fn should_call_connector_customer( | ||||
|         &self, | ||||
|         payment_attempt: &hyperswitch_domain_models::payments::payment_attempt::PaymentAttempt, | ||||
|     ) -> bool { | ||||
|         match self { | ||||
|             Self::Old(connector) => connector.should_call_connector_customer(payment_attempt), | ||||
|             Self::New(connector) => connector.should_call_connector_customer(payment_attempt), | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl ConnectorCommon for ConnectorEnum { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 AkshayaFoiger
					AkshayaFoiger