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

chore(connector): [Payme] disable payme connector in code (#1561)

Arjun Karthik3cd474604d04
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rs
index 909334e6bf..6b395adb20 100644
--- a/crates/api_models/src/enums.rs
+++ b/crates/api_models/src/enums.rs
@@ -627,7 +627,7 @@ pub enum Connector {
Noon,
Nuvei,
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
- Payme,
+ // Payme,
Paypal,
Payu,
Rapyd,
@@ -713,7 +713,7 @@ pub enum RoutableConnectors {
Nuvei,
Opennode,
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
- Payme,
+ // Payme,
Paypal,
Payu,
Rapyd,
diff --git a/crates/router/src/types/api.rs b/crates/router/src/types/api.rs
index e9fe23c828..fea703307f 100644
--- a/crates/router/src/types/api.rs
+++ b/crates/router/src/types/api.rs
@@ -231,7 +231,7 @@ impl ConnectorData {
enums::Connector::Nuvei => Ok(Box::new(&connector::Nuvei)),
enums::Connector::Opennode => Ok(Box::new(&connector::Opennode)),
// "payeezy" => Ok(Box::new(&connector::Payeezy)), As psync and rsync are not supported by this connector, it is added as template code for future usage
- enums::Connector::Payme => Ok(Box::new(&connector::Payme)),
+ //enums::Connector::Payme => Ok(Box::new(&connector::Payme)),
enums::Connector::Payu => Ok(Box::new(&connector::Payu)),
enums::Connector::Rapyd => Ok(Box::new(&connector::Rapyd)),
enums::Connector::Shift4 => Ok(Box::new(&connector::Shift4)),
diff --git a/crates/router/tests/connectors/payme.rs b/crates/router/tests/connectors/payme.rs
index 6c0e0cac92..0b9edc84dc 100644
--- a/crates/router/tests/connectors/payme.rs
+++ b/crates/router/tests/connectors/payme.rs
@@ -14,7 +14,7 @@ impl utils::Connector for PaymeTest {
use router::connector::Payme;
types::api::ConnectorData {
connector: Box::new(&Payme),
- connector_name: types::Connector::Payme,
+ connector_name: types::Connector::DummyConnector1,
get_token: types::api::GetToken::Connector,
}
}