Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(unified_connector_service): add Tesouro ConnectorSpecificConfig (#13421)
Tushar Shukla72b7d26a6004
diff --git a/config/config.example.toml b/config/config.example.tomlindex c3b4344b11..78c6d6b654 100644--- a/config/config.example.toml+++ b/config/config.example.toml@@ -1429,7 +1429,7 @@ dashboard_url = "http://localhost:5173" # Decision Engine dashboard (browser) URbase_url = "http://localhost:8000" # Unified Connector Service Base URLconnection_timeout = 10 # Connection Timeout Duration in Secondsrequest_timeout = 35 # Per-RPC Request Timeout in Seconds-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments" # Comma-separated list of connectors that use UCS only+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro" # Comma-separated list of connectors that use UCS onlyucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call[grpc_client.recovery_decider_client] # Revenue recovery client base urldiff --git a/config/deployments/env_specific.toml b/config/deployments/env_specific.tomlindex 3a55356489..f74727f6bd 100644--- a/config/deployments/env_specific.toml+++ b/config/deployments/env_specific.toml@@ -452,7 +452,7 @@ payment_method = "payment_method_types" # <payment_method> = comma-separated clobase_url = "http://localhost:8000" # Unified Connector Service Base URLconnection_timeout = 10 # Connection Timeout Duration in Secondsrequest_timeout = 35 # Per-RPC Request Timeout in Seconds-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit, givepayments" # Comma-separated list of connectors that use UCS only+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit, givepayments, tesouro" # Comma-separated list of connectors that use UCS onlyucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call[revenue_recovery]diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.tomlindex fce991a811..ee2d9a564c 100644--- a/config/deployments/integration_test.toml+++ b/config/deployments/integration_test.toml@@ -1030,7 +1030,7 @@ connector_list = "juspaythreedsserver, ctp_mastercard, ctp_visa"connector_list = "worldpayvantiv"[grpc_client.unified_connector_service]-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments" # Comma-separated list of connectors that use UCS only+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro" # Comma-separated list of connectors that use UCS onlyucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call# Merchant Advice Code Configurationdiff --git a/config/development.toml b/config/development.tomlindex 9f862f8603..87fead73c4 100644--- a/config/development.toml+++ b/config/development.toml@@ -1568,7 +1568,7 @@ enabled = "true"base_url = "http://localhost:8000"connection_timeout = 10request_timeout = 35-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments" # Comma-separated list of connectors that use UCS only+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro" # Comma-separated list of connectors that use UCS onlyucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call[revenue_recovery]diff --git a/crates/router/src/core/payments/operations/payment_create.rs b/crates/router/src/core/payments/operations/payment_create.rsindex 93a90378b4..b3e4360c40 100644--- a/crates/router/src/core/payments/operations/payment_create.rs+++ b/crates/router/src/core/payments/operations/payment_create.rs@@ -450,7 +450,7 @@ impl<F: Send + Clone + Sync> GetTracker<F, PaymentData<F>, api::PaymentsRequest>connector_id.get_connector_mandate_id(),connector_id.get_payment_method_id(),None,- None,+ connector_id.get_mandate_metadata(),connector_id.get_connector_mandate_request_reference_id(),None,diff --git a/crates/router/src/core/unified_connector_service/connector_config.rs b/crates/router/src/core/unified_connector_service/connector_config.rsindex 935ef1fe16..67d720e6f3 100644--- a/crates/router/src/core/unified_connector_service/connector_config.rs+++ b/crates/router/src/core/unified_connector_service/connector_config.rs@@ -569,6 +569,12 @@ pub enum ConnectorSpecificConfig {merchant_account: Secret<String>,api_secret: Secret<String>,},+ /// Tesouro connector configuration+ Tesouro {+ api_key: Secret<String>,+ key1: Secret<String>,+ api_secret: Secret<String>,+ },/// Finix connector configurationFinix {finix_user_name: Secret<String>,@@ -1087,6 +1093,18 @@ impl ForeignTryFrom<(Connector, &ConnectorAuthType, Option<&serde_json::Value>)>}),_ => Err(err("Barclaycard requires SignatureKey auth type")),},+ Connector::Tesouro => match auth {+ ConnectorAuthType::SignatureKey {+ api_key,+ key1,+ api_secret,+ } => Ok(Self::Tesouro {+ api_key: api_key.clone(),+ key1: key1.clone(),+ api_secret: api_secret.clone(),+ }),+ _ => Err(err("Tesouro requires SignatureKey auth type")),+ },Connector::Checkout => match auth {ConnectorAuthType::SignatureKey {api_key,