Skip to content

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

feat(connector): [Netcetera] Update Base URL and WASM (#13145)

Anuragfca17403e7c5
diff --git a/config/config.example.toml b/config/config.example.toml
index 49d77af189..530d86d3a3 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -331,7 +331,7 @@ moneris.base_url = "https://api.sb.moneris.io"
mpgs.base_url = "https://test-gateway.mastercard.com"
mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
multisafepay.base_url = "https://testapi.multisafepay.com/"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prev.euc1.acquiring.cloud.netcetera.com/3ds-server"
nexinets.base_url = "https://apitest.payengine.de/v1"
nexixpay.base_url = "https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1"
payconex.base_url = "https://cert.payconex.net"
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index 01e753d451..6160219071 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -189,7 +189,7 @@ zen.base_url = "https://api.zen-test.com/"
zen.secondary_base_url = "https://secure.zen-test.com/"
zsl.base_url = "https://api.sitoffalb.net/"
threedsecureio.base_url = "https://service.sandbox.3dsecure.io"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prev.euc1.acquiring.cloud.netcetera.com/3ds-server"
[dummy_connector]
enabled = true # Whether dummy connector is enabled or not
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index 47ddcd84c5..810383ae1d 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -192,7 +192,7 @@ zen.base_url = "https://api.zen.com/"
zen.secondary_base_url = "https://secure.zen.com/"
zsl.base_url = "https://apirh.prodoffalb.net/"
threedsecureio.base_url = "https://service.3dsecure.io"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prod.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prod.euc1.acquiring.cloud.netcetera.com/3ds-server"
[delayed_session_response]
connectors_with_delayed_session_response = "trustpay,payme" # List of connectors which have delayed session response
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index 696d93d38c..0fbf410a5b 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -192,7 +192,7 @@ zen.base_url = "https://api.zen-test.com/"
zen.secondary_base_url = "https://secure.zen-test.com/"
zsl.base_url = "https://api.sitoffalb.net/"
threedsecureio.base_url = "https://service.sandbox.3dsecure.io"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prev.euc1.acquiring.cloud.netcetera.com/3ds-server"
[delayed_session_response]
connectors_with_delayed_session_response = "trustpay,payme" # List of connectors which have delayed session response
diff --git a/config/development.toml b/config/development.toml
index ce90c73857..f2aa2455b8 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -359,7 +359,7 @@ moneris.base_url = "https://api.sb.moneris.io"
mpgs.base_url = "https://test-gateway.mastercard.com"
mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
multisafepay.base_url = "https://testapi.multisafepay.com/"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prev.euc1.acquiring.cloud.netcetera.com/3ds-server"
nexinets.base_url = "https://apitest.payengine.de/v1"
nexixpay.base_url = "https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1"
payconex.base_url = "https://cert.payconex.net"
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index 8726d5fcaf..879eab019f 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -260,7 +260,7 @@ moneris.base_url = "https://api.sb.moneris.io"
mpgs.base_url = "https://test-gateway.mastercard.com"
mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
multisafepay.base_url = "https://testapi.multisafepay.com/"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prev.euc1.acquiring.cloud.netcetera.com/3ds-server"
nexinets.base_url = "https://apitest.payengine.de/v1"
nexixpay.base_url = "https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1"
payconex.base_url = "https://cert.payconex.net"
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index 1cdc38b7b5..0dc9e9ab39 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -6038,12 +6038,6 @@ label="MCC"
placeholder="Enter MCC"
required=false
type="Text"
-[netcetera.metadata.endpoint_prefix]
-name="endpoint_prefix"
-label="Live endpoint prefix"
-placeholder="string that will replace '{prefix}' in this base url 'https://{prefix}.3ds-server.prev.netcetera-cloud-payment.ch'"
-required=true
-type="Text"
[netcetera.metadata.merchant_country_code]
name="merchant_country_code"
label="3 digit numeric country code"
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index 8c8c212ded..1fb2c70832 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -5015,12 +5015,6 @@ key1 = "Merchant ID"
certificate = "Base64 encoded PEM formatted certificate chain"
private_key = "Base64 encoded PEM formatted private key"
-[netcetera.metadata.endpoint_prefix]
-name = "endpoint_prefix"
-label = "Live endpoint prefix"
-placeholder = "string that will replace '{prefix}' in this base url 'https://{prefix}.3ds-server.prev.netcetera-cloud-payment.ch'"
-required = true
-type = "Text"
[netcetera.metadata.mcc]
name = "mcc"
label = "MCC"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index 676b77a686..b470242948 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -5993,12 +5993,6 @@ type = "Text"
certificate = "Base64 encoded PEM formatted certificate chain"
private_key = "Base64 encoded PEM formatted private key"
-[netcetera.metadata.endpoint_prefix]
-name = "endpoint_prefix"
-label = "Live endpoint prefix"
-placeholder = "string that will replace '{prefix}' in this base url 'https://{prefix}.3ds-server.prev.netcetera-cloud-payment.ch'"
-required = true
-type = "Text"
[netcetera.metadata.mcc]
name = "mcc"
label = "MCC"
diff --git a/crates/hyperswitch_connectors/src/connectors/netcetera.rs b/crates/hyperswitch_connectors/src/connectors/netcetera.rs
index 8673bf0d16..f22b8b322a 100644
--- a/crates/hyperswitch_connectors/src/connectors/netcetera.rs
+++ b/crates/hyperswitch_connectors/src/connectors/netcetera.rs
@@ -243,15 +243,6 @@ impl IncomingWebhook for Netcetera {
}
}
-fn build_endpoint(
- base_url: &str,
- connector_metadata: &Option<common_utils::pii::SecretSerdeValue>,
-) -> CustomResult<String, ConnectorError> {
- let metadata = netcetera::NetceteraMetaData::try_from(connector_metadata)?;
- let endpoint_prefix = metadata.endpoint_prefix;
- Ok(base_url.replace("{{merchant_endpoint_prefix}}", &endpoint_prefix))
-}
-
impl ConnectorPreAuthentication for Netcetera {}
impl ConnectorPreAuthenticationVersionCall for Netcetera {}
impl ExternalAuthentication for Netcetera {}
@@ -275,11 +266,10 @@ impl ConnectorIntegration<PreAuthentication, PreAuthNRequestData, Authentication
fn get_url(
&self,
- req: &PreAuthNRouterData,
+ _req: &PreAuthNRouterData,
connectors: &Connectors,
) -> CustomResult<String, ConnectorError> {
- let base_url = build_endpoint(self.base_url(connectors), &req.connector_meta_data)?;
- Ok(format!("{base_url}/3ds/versioning"))
+ Ok(format!("{}/3ds/versioning", self.base_url(connectors)))
}
fn get_request_body(
@@ -367,11 +357,10 @@ impl
fn get_url(
&self,
- req: &ConnectorAuthenticationRouterData,
+ _req: &ConnectorAuthenticationRouterData,
connectors: &Connectors,
) -> CustomResult<String, ConnectorError> {
- let base_url = build_endpoint(self.base_url(connectors), &req.connector_meta_data)?;
- Ok(format!("{base_url}/3ds/authentication"))
+ Ok(format!("{}/3ds/authentication", self.base_url(connectors)))
}
fn get_request_body(
diff --git a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
index 245b7f8a6b..07b956df8a 100644
--- a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs
@@ -291,7 +291,6 @@ pub struct NetceteraMetaData {
pub mcc: Option<String>,
pub merchant_country_code: Option<String>,
pub merchant_name: Option<String>,
- pub endpoint_prefix: String,
pub three_ds_requestor_name: Option<String>,
pub three_ds_requestor_id: Option<String>,
pub merchant_configuration_id: Option<String>,
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index 6383fd1d9b..ffe197d68b 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -175,7 +175,7 @@ moneris.base_url = "https://api.sb.moneris.io"
mpgs.base_url = "https://test-gateway.mastercard.com"
mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
multisafepay.base_url = "https://testapi.multisafepay.com/"
-netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netcetera-cloud-payment.ch"
+netcetera.base_url = "https://api.prev.euc1.acquiring.cloud.netcetera.com/3ds-server"
nexinets.base_url = "https://apitest.payengine.de/v1"
nexixpay.base_url = "https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1"
payconex.base_url = "https://cert.payconex.net"