Bug: FEATURE: [LOONIO] Add template code



Add template code for Loonio
diff --git a/config/config.example.toml b/config/config.example.toml
index 56da591f1fc..7d01564db87 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -253,6 +253,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://sandbox.katapult.com/api/v3"
 jpmorgan.secondary_base_url= "https://id.payments.jpmorgan.com"
 klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://demo.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 moneris.base_url = "https://api.sb.moneris.io"
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index 02ee0124bae..1741835712e 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -91,6 +91,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://sandbox.katapult.com/api/v3"
 jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
 klarna.base_url =  "https://api{{klarna_region}}.playground.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://demo.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index 998986b3829..9f74603c866 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -95,6 +95,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://www.katapult.com/api/v3"
 jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
 klarna.base_url = "https://api{{klarna_region}}.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://secure.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index 3f16af80c6f..09877fd802d 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -95,6 +95,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://sandbox.katapult.com/api/v3"
 jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
 klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://demo.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 mollie.secondary_base_url = "https://api.cc.mollie.com/v1/"
diff --git a/config/development.toml b/config/development.toml
index c15532805db..387d0f0ba6f 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -291,6 +291,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://sandbox.katapult.com/api/v3"
 jpmorgan.secondary_base_url = "https://id.payments.jpmorgan.com"
 klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://demo.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 moneris.base_url = "https://api.sb.moneris.io"
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index b5101c53ad0..f29d2093b7c 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -179,6 +179,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://sandbox.katapult.com/api/v3"
 jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
 klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://demo.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 moneris.base_url = "https://api.sb.moneris.io"
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index aed9dbf70de..c01ac16c0e1 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -296,6 +296,7 @@ pub struct ConnectorConfig {
     pub inespay: Option<ConnectorTomlConfig>,
     pub jpmorgan: Option<ConnectorTomlConfig>,
     pub klarna: Option<ConnectorTomlConfig>,
+    pub loonio: Option<ConnectorTomlConfig>,
     pub mifinity: Option<ConnectorTomlConfig>,
     pub mollie: Option<ConnectorTomlConfig>,
     pub moneris: Option<ConnectorTomlConfig>,
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index 4b4bbc6ec83..0f98861cc04 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -7186,4 +7186,7 @@ api_key = "API Key"
 [tesouro]
 [tesouro.connector_auth.BodyKey]
 api_key="Client ID"
-key1="Client Secret"
\ No newline at end of file
+key1="Client Secret"
+[loonio]
+[loonio.connector_auth.HeaderKey]
+api_key = "API Key"
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index 86eea4d3534..aea8277906e 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -5923,4 +5923,7 @@ api_key = "API Key"
 [tesouro]
 [tesouro.connector_auth.BodyKey]
 api_key="Client ID"
-key1="Client Secret"
\ No newline at end of file
+key1="Client Secret"
+[loonio]
+[loonio.connector_auth.HeaderKey]
+api_key = "API Key"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index 08ae831a52e..f7c7ed3e997 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -7165,4 +7165,7 @@ api_key = "API Key"
 [tesouro]
 [tesouro.connector_auth.BodyKey]
 api_key="Client ID"
-key1="Client Secret"
\ No newline at end of file
+key1="Client Secret"
+[loonio]
+[loonio.connector_auth.HeaderKey]
+api_key = "API Key"
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs
index 70abd02eaaa..63257b72a90 100644
--- a/crates/hyperswitch_connectors/src/connectors.rs
+++ b/crates/hyperswitch_connectors/src/connectors.rs
@@ -63,6 +63,7 @@ pub mod jpmorgan;
 pub mod juspaythreedsserver;
 pub mod katapult;
 pub mod klarna;
+pub mod loonio;
 pub mod mifinity;
 pub mod mollie;
 pub mod moneris;
@@ -150,12 +151,12 @@ pub use self::{
     gpayments::Gpayments, helcim::Helcim, hipay::Hipay, hyperswitch_vault::HyperswitchVault,
     hyperwallet::Hyperwallet, iatapay::Iatapay, inespay::Inespay, itaubank::Itaubank,
     jpmorgan::Jpmorgan, juspaythreedsserver::Juspaythreedsserver, katapult::Katapult,
-    klarna::Klarna, mifinity::Mifinity, mollie::Mollie, moneris::Moneris, mpgs::Mpgs,
-    multisafepay::Multisafepay, netcetera::Netcetera, nexinets::Nexinets, nexixpay::Nexixpay,
-    nmi::Nmi, nomupay::Nomupay, noon::Noon, nordea::Nordea, novalnet::Novalnet, nuvei::Nuvei,
-    opayo::Opayo, opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payload::Payload,
-    payme::Payme, payone::Payone, paypal::Paypal, paysafe::Paysafe, paystack::Paystack,
-    paytm::Paytm, payu::Payu, peachpayments::Peachpayments, phonepe::Phonepe,
+    klarna::Klarna, loonio::Loonio, mifinity::Mifinity, mollie::Mollie, moneris::Moneris,
+    mpgs::Mpgs, multisafepay::Multisafepay, netcetera::Netcetera, nexinets::Nexinets,
+    nexixpay::Nexixpay, nmi::Nmi, nomupay::Nomupay, noon::Noon, nordea::Nordea, novalnet::Novalnet,
+    nuvei::Nuvei, opayo::Opayo, opennode::Opennode, paybox::Paybox, payeezy::Payeezy,
+    payload::Payload, payme::Payme, payone::Payone, paypal::Paypal, paysafe::Paysafe,
+    paystack::Paystack, paytm::Paytm, payu::Payu, peachpayments::Peachpayments, phonepe::Phonepe,
     placetopay::Placetopay, plaid::Plaid, powertranz::Powertranz, prophetpay::Prophetpay,
     rapyd::Rapyd, razorpay::Razorpay, recurly::Recurly, redsys::Redsys, riskified::Riskified,
     santander::Santander, shift4::Shift4, sift::Sift, signifyd::Signifyd, silverflow::Silverflow,
diff --git a/crates/hyperswitch_connectors/src/connectors/loonio.rs b/crates/hyperswitch_connectors/src/connectors/loonio.rs
new file mode 100644
index 00000000000..ad57fad435e
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/loonio.rs
@@ -0,0 +1,621 @@
+pub mod transformers;
+
+use std::sync::LazyLock;
+
+use common_enums::enums;
+use common_utils::{
+    errors::CustomResult,
+    ext_traits::BytesExt,
+    request::{Method, Request, RequestBuilder, RequestContent},
+    types::{AmountConvertor, StringMinorUnit, StringMinorUnitForConnector},
+};
+use error_stack::{report, ResultExt};
+use hyperswitch_domain_models::{
+    payment_method_data::PaymentMethodData,
+    router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
+    router_flow_types::{
+        access_token_auth::AccessTokenAuth,
+        payments::{Authorize, Capture, PSync, PaymentMethodToken, Session, SetupMandate, Void},
+        refunds::{Execute, RSync},
+    },
+    router_request_types::{
+        AccessTokenRequestData, PaymentMethodTokenizationData, PaymentsAuthorizeData,
+        PaymentsCancelData, PaymentsCaptureData, PaymentsSessionData, PaymentsSyncData,
+        RefundsData, SetupMandateRequestData,
+    },
+    router_response_types::{
+        ConnectorInfo, PaymentsResponseData, RefundsResponseData, SupportedPaymentMethods,
+    },
+    types::{
+        PaymentsAuthorizeRouterData, PaymentsCaptureRouterData, PaymentsSyncRouterData,
+        RefundSyncRouterData, RefundsRouterData,
+    },
+};
+use hyperswitch_interfaces::{
+    api::{
+        self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
+        ConnectorValidation,
+    },
+    configs::Connectors,
+    errors,
+    events::connector_api_logs::ConnectorEvent,
+    types::{self, Response},
+    webhooks,
+};
+use masking::{ExposeInterface, Mask};
+use transformers as loonio;
+
+use crate::{constants::headers, types::ResponseRouterData, utils};
+
+#[derive(Clone)]
+pub struct Loonio {
+    amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
+}
+
+impl Loonio {
+    pub fn new() -> &'static Self {
+        &Self {
+            amount_converter: &StringMinorUnitForConnector,
+        }
+    }
+}
+
+impl api::Payment for Loonio {}
+impl api::PaymentSession for Loonio {}
+impl api::ConnectorAccessToken for Loonio {}
+impl api::MandateSetup for Loonio {}
+impl api::PaymentAuthorize for Loonio {}
+impl api::PaymentSync for Loonio {}
+impl api::PaymentCapture for Loonio {}
+impl api::PaymentVoid for Loonio {}
+impl api::Refund for Loonio {}
+impl api::RefundExecute for Loonio {}
+impl api::RefundSync for Loonio {}
+impl api::PaymentToken for Loonio {}
+
+impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
+    for Loonio
+{
+    // Not Implemented (R)
+}
+
+impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for Loonio
+where
+    Self: ConnectorIntegration<Flow, Request, Response>,
+{
+    fn build_headers(
+        &self,
+        req: &RouterData<Flow, Request, Response>,
+        _connectors: &Connectors,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        let mut header = vec![(
+            headers::CONTENT_TYPE.to_string(),
+            self.get_content_type().to_string().into(),
+        )];
+        let mut api_key = self.get_auth_header(&req.connector_auth_type)?;
+        header.append(&mut api_key);
+        Ok(header)
+    }
+}
+
+impl ConnectorCommon for Loonio {
+    fn id(&self) -> &'static str {
+        "loonio"
+    }
+
+    fn get_currency_unit(&self) -> api::CurrencyUnit {
+        api::CurrencyUnit::Base
+    }
+
+    fn common_get_content_type(&self) -> &'static str {
+        "application/json"
+    }
+
+    fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {
+        connectors.loonio.base_url.as_ref()
+    }
+
+    fn get_auth_header(
+        &self,
+        auth_type: &ConnectorAuthType,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        let auth = loonio::LoonioAuthType::try_from(auth_type)
+            .change_context(errors::ConnectorError::FailedToObtainAuthType)?;
+        Ok(vec![(
+            headers::AUTHORIZATION.to_string(),
+            auth.api_key.expose().into_masked(),
+        )])
+    }
+
+    fn build_error_response(
+        &self,
+        res: Response,
+        event_builder: Option<&mut ConnectorEvent>,
+    ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+        let response: loonio::LoonioErrorResponse = res
+            .response
+            .parse_struct("LoonioErrorResponse")
+            .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+
+        event_builder.map(|i| i.set_response_body(&response));
+        router_env::logger::info!(connector_response=?response);
+
+        Ok(ErrorResponse {
+            status_code: res.status_code,
+            code: response.code,
+            message: response.message,
+            reason: response.reason,
+            attempt_status: None,
+            connector_transaction_id: None,
+            network_advice_code: None,
+            network_decline_code: None,
+            network_error_message: None,
+            connector_metadata: None,
+        })
+    }
+}
+
+impl ConnectorValidation for Loonio {
+    fn validate_mandate_payment(
+        &self,
+        _pm_type: Option<enums::PaymentMethodType>,
+        pm_data: PaymentMethodData,
+    ) -> CustomResult<(), errors::ConnectorError> {
+        match pm_data {
+            PaymentMethodData::Card(_) => Err(errors::ConnectorError::NotImplemented(
+                "validate_mandate_payment does not support cards".to_string(),
+            )
+            .into()),
+            _ => Ok(()),
+        }
+    }
+
+    fn validate_psync_reference_id(
+        &self,
+        _data: &PaymentsSyncData,
+        _is_three_ds: bool,
+        _status: enums::AttemptStatus,
+        _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>,
+    ) -> CustomResult<(), errors::ConnectorError> {
+        Ok(())
+    }
+}
+
+impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Loonio {
+    //TODO: implement sessions flow
+}
+
+impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Loonio {}
+
+impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Loonio {}
+
+impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Loonio {
+    fn get_headers(
+        &self,
+        req: &PaymentsAuthorizeRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        self.build_headers(req, connectors)
+    }
+
+    fn get_content_type(&self) -> &'static str {
+        self.common_get_content_type()
+    }
+
+    fn get_url(
+        &self,
+        _req: &PaymentsAuthorizeRouterData,
+        _connectors: &Connectors,
+    ) -> CustomResult<String, errors::ConnectorError> {
+        Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+    }
+
+    fn get_request_body(
+        &self,
+        req: &PaymentsAuthorizeRouterData,
+        _connectors: &Connectors,
+    ) -> CustomResult<RequestContent, errors::ConnectorError> {
+        let amount = utils::convert_amount(
+            self.amount_converter,
+            req.request.minor_amount,
+            req.request.currency,
+        )?;
+
+        let connector_router_data = loonio::LoonioRouterData::from((amount, req));
+        let connector_req = loonio::LoonioPaymentsRequest::try_from(&connector_router_data)?;
+        Ok(RequestContent::Json(Box::new(connector_req)))
+    }
+
+    fn build_request(
+        &self,
+        req: &PaymentsAuthorizeRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+        Ok(Some(
+            RequestBuilder::new()
+                .method(Method::Post)
+                .url(&types::PaymentsAuthorizeType::get_url(
+                    self, req, connectors,
+                )?)
+                .attach_default_headers()
+                .headers(types::PaymentsAuthorizeType::get_headers(
+                    self, req, connectors,
+                )?)
+                .set_body(types::PaymentsAuthorizeType::get_request_body(
+                    self, req, connectors,
+                )?)
+                .build(),
+        ))
+    }
+
+    fn handle_response(
+        &self,
+        data: &PaymentsAuthorizeRouterData,
+        event_builder: Option<&mut ConnectorEvent>,
+        res: Response,
+    ) -> CustomResult<PaymentsAuthorizeRouterData, errors::ConnectorError> {
+        let response: loonio::LoonioPaymentsResponse = res
+            .response
+            .parse_struct("Loonio PaymentsAuthorizeResponse")
+            .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+        event_builder.map(|i| i.set_response_body(&response));
+        router_env::logger::info!(connector_response=?response);
+        RouterData::try_from(ResponseRouterData {
+            response,
+            data: data.clone(),
+            http_code: res.status_code,
+        })
+    }
+
+    fn get_error_response(
+        &self,
+        res: Response,
+        event_builder: Option<&mut ConnectorEvent>,
+    ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+        self.build_error_response(res, event_builder)
+    }
+}
+
+impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Loonio {
+    fn get_headers(
+        &self,
+        req: &PaymentsSyncRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        self.build_headers(req, connectors)
+    }
+
+    fn get_content_type(&self) -> &'static str {
+        self.common_get_content_type()
+    }
+
+    fn get_url(
+        &self,
+        _req: &PaymentsSyncRouterData,
+        _connectors: &Connectors,
+    ) -> CustomResult<String, errors::ConnectorError> {
+        Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+    }
+
+    fn build_request(
+        &self,
+        req: &PaymentsSyncRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+        Ok(Some(
+            RequestBuilder::new()
+                .method(Method::Get)
+                .url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
+                .attach_default_headers()
+                .headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
+                .build(),
+        ))
+    }
+
+    fn handle_response(
+        &self,
+        data: &PaymentsSyncRouterData,
+        event_builder: Option<&mut ConnectorEvent>,
+        res: Response,
+    ) -> CustomResult<PaymentsSyncRouterData, errors::ConnectorError> {
+        let response: loonio::LoonioPaymentsResponse = res
+            .response
+            .parse_struct("loonio PaymentsSyncResponse")
+            .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+        event_builder.map(|i| i.set_response_body(&response));
+        router_env::logger::info!(connector_response=?response);
+        RouterData::try_from(ResponseRouterData {
+            response,
+            data: data.clone(),
+            http_code: res.status_code,
+        })
+    }
+
+    fn get_error_response(
+        &self,
+        res: Response,
+        event_builder: Option<&mut ConnectorEvent>,
+    ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+        self.build_error_response(res, event_builder)
+    }
+}
+
+impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Loonio {
+    fn get_headers(
+        &self,
+        req: &PaymentsCaptureRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        self.build_headers(req, connectors)
+    }
+
+    fn get_content_type(&self) -> &'static str {
+        self.common_get_content_type()
+    }
+
+    fn get_url(
+        &self,
+        _req: &PaymentsCaptureRouterData,
+        _connectors: &Connectors,
+    ) -> CustomResult<String, errors::ConnectorError> {
+        Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+    }
+
+    fn get_request_body(
+        &self,
+        _req: &PaymentsCaptureRouterData,
+        _connectors: &Connectors,
+    ) -> CustomResult<RequestContent, errors::ConnectorError> {
+        Err(errors::ConnectorError::NotImplemented("get_request_body method".to_string()).into())
+    }
+
+    fn build_request(
+        &self,
+        req: &PaymentsCaptureRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+        Ok(Some(
+            RequestBuilder::new()
+                .method(Method::Post)
+                .url(&types::PaymentsCaptureType::get_url(self, req, connectors)?)
+                .attach_default_headers()
+                .headers(types::PaymentsCaptureType::get_headers(
+                    self, req, connectors,
+                )?)
+                .set_body(types::PaymentsCaptureType::get_request_body(
+                    self, req, connectors,
+                )?)
+                .build(),
+        ))
+    }
+
+    fn handle_response(
+        &self,
+        data: &PaymentsCaptureRouterData,
+        event_builder: Option<&mut ConnectorEvent>,
+        res: Response,
+    ) -> CustomResult<PaymentsCaptureRouterData, errors::ConnectorError> {
+        let response: loonio::LoonioPaymentsResponse = res
+            .response
+            .parse_struct("Loonio PaymentsCaptureResponse")
+            .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+        event_builder.map(|i| i.set_response_body(&response));
+        router_env::logger::info!(connector_response=?response);
+        RouterData::try_from(ResponseRouterData {
+            response,
+            data: data.clone(),
+            http_code: res.status_code,
+        })
+    }
+
+    fn get_error_response(
+        &self,
+        res: Response,
+        event_builder: Option<&mut ConnectorEvent>,
+    ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+        self.build_error_response(res, event_builder)
+    }
+}
+
+impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Loonio {}
+
+impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Loonio {
+    fn get_headers(
+        &self,
+        req: &RefundsRouterData<Execute>,
+        connectors: &Connectors,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        self.build_headers(req, connectors)
+    }
+
+    fn get_content_type(&self) -> &'static str {
+        self.common_get_content_type()
+    }
+
+    fn get_url(
+        &self,
+        _req: &RefundsRouterData<Execute>,
+        _connectors: &Connectors,
+    ) -> CustomResult<String, errors::ConnectorError> {
+        Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+    }
+
+    fn get_request_body(
+        &self,
+        req: &RefundsRouterData<Execute>,
+        _connectors: &Connectors,
+    ) -> CustomResult<RequestContent, errors::ConnectorError> {
+        let refund_amount = utils::convert_amount(
+            self.amount_converter,
+            req.request.minor_refund_amount,
+            req.request.currency,
+        )?;
+
+        let connector_router_data = loonio::LoonioRouterData::from((refund_amount, req));
+        let connector_req = loonio::LoonioRefundRequest::try_from(&connector_router_data)?;
+        Ok(RequestContent::Json(Box::new(connector_req)))
+    }
+
+    fn build_request(
+        &self,
+        req: &RefundsRouterData<Execute>,
+        connectors: &Connectors,
+    ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+        let request = RequestBuilder::new()
+            .method(Method::Post)
+            .url(&types::RefundExecuteType::get_url(self, req, connectors)?)
+            .attach_default_headers()
+            .headers(types::RefundExecuteType::get_headers(
+                self, req, connectors,
+            )?)
+            .set_body(types::RefundExecuteType::get_request_body(
+                self, req, connectors,
+            )?)
+            .build();
+        Ok(Some(request))
+    }
+
+    fn handle_response(
+        &self,
+        data: &RefundsRouterData<Execute>,
+        event_builder: Option<&mut ConnectorEvent>,
+        res: Response,
+    ) -> CustomResult<RefundsRouterData<Execute>, errors::ConnectorError> {
+        let response: loonio::RefundResponse =
+            res.response
+                .parse_struct("loonio RefundResponse")
+                .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+        event_builder.map(|i| i.set_response_body(&response));
+        router_env::logger::info!(connector_response=?response);
+        RouterData::try_from(ResponseRouterData {
+            response,
+            data: data.clone(),
+            http_code: res.status_code,
+        })
+    }
+
+    fn get_error_response(
+        &self,
+        res: Response,
+        event_builder: Option<&mut ConnectorEvent>,
+    ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+        self.build_error_response(res, event_builder)
+    }
+}
+
+impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Loonio {
+    fn get_headers(
+        &self,
+        req: &RefundSyncRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        self.build_headers(req, connectors)
+    }
+
+    fn get_content_type(&self) -> &'static str {
+        self.common_get_content_type()
+    }
+
+    fn get_url(
+        &self,
+        _req: &RefundSyncRouterData,
+        _connectors: &Connectors,
+    ) -> CustomResult<String, errors::ConnectorError> {
+        Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+    }
+
+    fn build_request(
+        &self,
+        req: &RefundSyncRouterData,
+        connectors: &Connectors,
+    ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+        Ok(Some(
+            RequestBuilder::new()
+                .method(Method::Get)
+                .url(&types::RefundSyncType::get_url(self, req, connectors)?)
+                .attach_default_headers()
+                .headers(types::RefundSyncType::get_headers(self, req, connectors)?)
+                .set_body(types::RefundSyncType::get_request_body(
+                    self, req, connectors,
+                )?)
+                .build(),
+        ))
+    }
+
+    fn handle_response(
+        &self,
+        data: &RefundSyncRouterData,
+        event_builder: Option<&mut ConnectorEvent>,
+        res: Response,
+    ) -> CustomResult<RefundSyncRouterData, errors::ConnectorError> {
+        let response: loonio::RefundResponse = res
+            .response
+            .parse_struct("loonio RefundSyncResponse")
+            .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+        event_builder.map(|i| i.set_response_body(&response));
+        router_env::logger::info!(connector_response=?response);
+        RouterData::try_from(ResponseRouterData {
+            response,
+            data: data.clone(),
+            http_code: res.status_code,
+        })
+    }
+
+    fn get_error_response(
+        &self,
+        res: Response,
+        event_builder: Option<&mut ConnectorEvent>,
+    ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+        self.build_error_response(res, event_builder)
+    }
+}
+
+#[async_trait::async_trait]
+impl webhooks::IncomingWebhook for Loonio {
+    fn get_webhook_object_reference_id(
+        &self,
+        _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+    ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
+        Err(report!(errors::ConnectorError::WebhooksNotImplemented))
+    }
+
+    fn get_webhook_event_type(
+        &self,
+        _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+    ) -> CustomResult<api_models::webhooks::IncomingWebhookEvent, errors::ConnectorError> {
+        Err(report!(errors::ConnectorError::WebhooksNotImplemented))
+    }
+
+    fn get_webhook_resource_object(
+        &self,
+        _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+    ) -> CustomResult<Box<dyn masking::ErasedMaskSerialize>, errors::ConnectorError> {
+        Err(report!(errors::ConnectorError::WebhooksNotImplemented))
+    }
+}
+
+static LOONIO_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
+    LazyLock::new(SupportedPaymentMethods::new);
+
+static LOONIO_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {
+    display_name: "Loonio",
+    description: "Loonio connector",
+    connector_type: enums::HyperswitchConnectorCategory::PaymentGateway,
+    integration_status: enums::ConnectorIntegrationStatus::Sandbox,
+};
+
+static LOONIO_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 0] = [];
+
+impl ConnectorSpecifications for Loonio {
+    fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
+        Some(&LOONIO_CONNECTOR_INFO)
+    }
+
+    fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
+        Some(&*LOONIO_SUPPORTED_PAYMENT_METHODS)
+    }
+
+    fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {
+        Some(&LOONIO_SUPPORTED_WEBHOOK_FLOWS)
+    }
+}
diff --git a/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs b/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs
new file mode 100644
index 00000000000..0bdaf494cea
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs
@@ -0,0 +1,219 @@
+use common_enums::enums;
+use common_utils::types::StringMinorUnit;
+use hyperswitch_domain_models::{
+    payment_method_data::PaymentMethodData,
+    router_data::{ConnectorAuthType, RouterData},
+    router_flow_types::refunds::{Execute, RSync},
+    router_request_types::ResponseId,
+    router_response_types::{PaymentsResponseData, RefundsResponseData},
+    types::{PaymentsAuthorizeRouterData, RefundsRouterData},
+};
+use hyperswitch_interfaces::errors;
+use masking::Secret;
+use serde::{Deserialize, Serialize};
+
+use crate::types::{RefundsResponseRouterData, ResponseRouterData};
+
+//TODO: Fill the struct with respective fields
+pub struct LoonioRouterData<T> {
+    pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
+    pub router_data: T,
+}
+
+impl<T> From<(StringMinorUnit, T)> for LoonioRouterData<T> {
+    fn from((amount, item): (StringMinorUnit, T)) -> Self {
+        //Todo :  use utils to convert the amount to the type of amount that a connector accepts
+        Self {
+            amount,
+            router_data: item,
+        }
+    }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Serialize, PartialEq)]
+pub struct LoonioPaymentsRequest {
+    amount: StringMinorUnit,
+    card: LoonioCard,
+}
+
+#[derive(Default, Debug, Serialize, Eq, PartialEq)]
+pub struct LoonioCard {
+    number: cards::CardNumber,
+    expiry_month: Secret<String>,
+    expiry_year: Secret<String>,
+    cvc: Secret<String>,
+    complete: bool,
+}
+
+impl TryFrom<&LoonioRouterData<&PaymentsAuthorizeRouterData>> for LoonioPaymentsRequest {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(
+        item: &LoonioRouterData<&PaymentsAuthorizeRouterData>,
+    ) -> Result<Self, Self::Error> {
+        match item.router_data.request.payment_method_data.clone() {
+            PaymentMethodData::Card(_) => Err(errors::ConnectorError::NotImplemented(
+                "Card payment method not implemented".to_string(),
+            )
+            .into()),
+            _ => Err(errors::ConnectorError::NotImplemented("Payment method".to_string()).into()),
+        }
+    }
+}
+
+//TODO: Fill the struct with respective fields
+// Auth Struct
+pub struct LoonioAuthType {
+    pub(super) api_key: Secret<String>,
+}
+
+impl TryFrom<&ConnectorAuthType> for LoonioAuthType {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {
+        match auth_type {
+            ConnectorAuthType::HeaderKey { api_key } => Ok(Self {
+                api_key: api_key.to_owned(),
+            }),
+            _ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
+        }
+    }
+}
+// PaymentsResponse
+//TODO: Append the remaining status flags
+#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize, PartialEq)]
+#[serde(rename_all = "lowercase")]
+pub enum LoonioPaymentStatus {
+    Succeeded,
+    Failed,
+    #[default]
+    Processing,
+}
+
+impl From<LoonioPaymentStatus> for common_enums::AttemptStatus {
+    fn from(item: LoonioPaymentStatus) -> Self {
+        match item {
+            LoonioPaymentStatus::Succeeded => Self::Charged,
+            LoonioPaymentStatus::Failed => Self::Failure,
+            LoonioPaymentStatus::Processing => Self::Authorizing,
+        }
+    }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
+pub struct LoonioPaymentsResponse {
+    status: LoonioPaymentStatus,
+    id: String,
+}
+
+impl<F, T> TryFrom<ResponseRouterData<F, LoonioPaymentsResponse, T, PaymentsResponseData>>
+    for RouterData<F, T, PaymentsResponseData>
+{
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(
+        item: ResponseRouterData<F, LoonioPaymentsResponse, T, PaymentsResponseData>,
+    ) -> Result<Self, Self::Error> {
+        Ok(Self {
+            status: common_enums::AttemptStatus::from(item.response.status),
+            response: Ok(PaymentsResponseData::TransactionResponse {
+                resource_id: ResponseId::ConnectorTransactionId(item.response.id),
+                redirection_data: Box::new(None),
+                mandate_reference: Box::new(None),
+                connector_metadata: None,
+                network_txn_id: None,
+                connector_response_reference_id: None,
+                incremental_authorization_allowed: None,
+                charges: None,
+            }),
+            ..item.data
+        })
+    }
+}
+
+//TODO: Fill the struct with respective fields
+// REFUND :
+// Type definition for RefundRequest
+#[derive(Default, Debug, Serialize)]
+pub struct LoonioRefundRequest {
+    pub amount: StringMinorUnit,
+}
+
+impl<F> TryFrom<&LoonioRouterData<&RefundsRouterData<F>>> for LoonioRefundRequest {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(item: &LoonioRouterData<&RefundsRouterData<F>>) -> Result<Self, Self::Error> {
+        Ok(Self {
+            amount: item.amount.to_owned(),
+        })
+    }
+}
+
+// Type definition for Refund Response
+
+#[allow(dead_code)]
+#[derive(Debug, Copy, Serialize, Default, Deserialize, Clone)]
+pub enum RefundStatus {
+    Succeeded,
+    Failed,
+    #[default]
+    Processing,
+}
+
+impl From<RefundStatus> for enums::RefundStatus {
+    fn from(item: RefundStatus) -> Self {
+        match item {
+            RefundStatus::Succeeded => Self::Success,
+            RefundStatus::Failed => Self::Failure,
+            RefundStatus::Processing => Self::Pending,
+            //TODO: Review mapping
+        }
+    }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Clone, Serialize, Deserialize)]
+pub struct RefundResponse {
+    id: String,
+    status: RefundStatus,
+}
+
+impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(
+        item: RefundsResponseRouterData<Execute, RefundResponse>,
+    ) -> Result<Self, Self::Error> {
+        Ok(Self {
+            response: Ok(RefundsResponseData {
+                connector_refund_id: item.response.id.to_string(),
+                refund_status: enums::RefundStatus::from(item.response.status),
+            }),
+            ..item.data
+        })
+    }
+}
+
+impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(
+        item: RefundsResponseRouterData<RSync, RefundResponse>,
+    ) -> Result<Self, Self::Error> {
+        Ok(Self {
+            response: Ok(RefundsResponseData {
+                connector_refund_id: item.response.id.to_string(),
+                refund_status: enums::RefundStatus::from(item.response.status),
+            }),
+            ..item.data
+        })
+    }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Serialize, Deserialize, PartialEq)]
+pub struct LoonioErrorResponse {
+    pub status_code: u16,
+    pub code: String,
+    pub message: String,
+    pub reason: Option<String>,
+    pub network_advice_code: Option<String>,
+    pub network_decline_code: Option<String>,
+    pub network_error_message: Option<String>,
+}
diff --git a/crates/hyperswitch_connectors/src/default_implementations.rs b/crates/hyperswitch_connectors/src/default_implementations.rs
index f742437f400..7aaf51f554f 100644
--- a/crates/hyperswitch_connectors/src/default_implementations.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations.rs
@@ -231,6 +231,7 @@ default_imp_for_authorize_session_token!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -377,6 +378,7 @@ default_imp_for_calculate_tax!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -517,6 +519,7 @@ default_imp_for_session_update!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Rapyd,
     connectors::Razorpay,
     connectors::Recurly,
@@ -664,6 +667,7 @@ default_imp_for_post_session_tokens!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Rapyd,
     connectors::Razorpay,
     connectors::Recurly,
@@ -809,6 +813,7 @@ default_imp_for_create_order!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Rapyd,
     connectors::Recurly,
     connectors::Redsys,
@@ -956,6 +961,7 @@ default_imp_for_update_metadata!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Paypal,
     connectors::Paysafe,
     connectors::Rapyd,
@@ -1103,6 +1109,7 @@ default_imp_for_cancel_post_capture!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Paypal,
     connectors::Paysafe,
     connectors::Rapyd,
@@ -1249,6 +1256,7 @@ default_imp_for_complete_authorize!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Moneris,
     connectors::Mpgs,
@@ -1383,6 +1391,7 @@ default_imp_for_incremental_authorization!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -1522,6 +1531,7 @@ default_imp_for_create_customer!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -1664,6 +1674,7 @@ default_imp_for_connector_redirect_response!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Moneris,
     connectors::Mpgs,
@@ -1796,6 +1807,7 @@ default_imp_for_pre_authenticate_steps!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -1942,6 +1954,7 @@ default_imp_for_authenticate_steps!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -2088,6 +2101,7 @@ default_imp_for_post_authenticate_steps!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -2231,6 +2245,7 @@ default_imp_for_pre_processing_steps!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nomupay,
     connectors::Noon,
@@ -2367,6 +2382,7 @@ default_imp_for_post_processing_steps!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -2515,6 +2531,7 @@ default_imp_for_approve!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nomupay,
     connectors::Noon,
@@ -2664,6 +2681,7 @@ default_imp_for_reject!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -2814,6 +2832,7 @@ default_imp_for_webhook_source_verification!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -2960,6 +2979,7 @@ default_imp_for_accept_dispute!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -3106,6 +3126,7 @@ default_imp_for_submit_evidence!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -3250,6 +3271,7 @@ default_imp_for_defend_dispute!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Helcim,
     connectors::Netcetera,
     connectors::Nmi,
@@ -3398,6 +3420,7 @@ default_imp_for_fetch_disputes!(
     connectors::Jpmorgan,
     connectors::Juspaythreedsserver,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Katapult,
     connectors::Helcim,
     connectors::Netcetera,
@@ -3546,6 +3569,7 @@ default_imp_for_dispute_sync!(
     connectors::Jpmorgan,
     connectors::Juspaythreedsserver,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Katapult,
     connectors::Helcim,
     connectors::Netcetera,
@@ -3703,6 +3727,7 @@ default_imp_for_file_upload!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -3840,6 +3865,7 @@ default_imp_for_payouts!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -3983,6 +4009,7 @@ default_imp_for_payouts_create!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -4130,6 +4157,7 @@ default_imp_for_payouts_retrieve!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -4275,6 +4303,7 @@ default_imp_for_payouts_eligibility!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -4421,6 +4450,7 @@ default_imp_for_payouts_fulfill!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Noon,
     connectors::Nordea,
@@ -4564,6 +4594,7 @@ default_imp_for_payouts_cancel!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -4711,6 +4742,7 @@ default_imp_for_payouts_quote!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -4859,6 +4891,7 @@ default_imp_for_payouts_recipient!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -5007,6 +5040,7 @@ default_imp_for_payouts_recipient_account!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Noon,
@@ -5156,6 +5190,7 @@ default_imp_for_frm_sale!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nomupay,
     connectors::Nmi,
@@ -5305,6 +5340,7 @@ default_imp_for_frm_checkout!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -5454,6 +5490,7 @@ default_imp_for_frm_transaction!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -5603,6 +5640,7 @@ default_imp_for_frm_fulfillment!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -5752,6 +5790,7 @@ default_imp_for_frm_record_return!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -5896,6 +5935,7 @@ default_imp_for_revoking_mandates!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -6042,6 +6082,7 @@ default_imp_for_uas_pre_authentication!(
     connectors::Jpmorgan,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -6188,6 +6229,7 @@ default_imp_for_uas_post_authentication!(
     connectors::Jpmorgan,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -6335,6 +6377,7 @@ default_imp_for_uas_authentication_confirmation!(
     connectors::Jpmorgan,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -6474,6 +6517,7 @@ default_imp_for_connector_request_id!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -6616,6 +6660,7 @@ default_imp_for_fraud_check!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -6786,6 +6831,7 @@ default_imp_for_connector_authentication!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nmi,
     connectors::Nomupay,
     connectors::Noon,
@@ -6930,6 +6976,7 @@ default_imp_for_uas_authentication!(
     connectors::Jpmorgan,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -7070,6 +7117,7 @@ default_imp_for_revenue_recovery!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -7241,6 +7289,7 @@ default_imp_for_subscriptions!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -7391,6 +7440,7 @@ default_imp_for_billing_connector_payment_sync!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Netcetera,
     connectors::Nmi,
@@ -7539,6 +7589,7 @@ default_imp_for_revenue_recovery_record_back!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nmi,
     connectors::Nomupay,
@@ -7687,6 +7738,7 @@ default_imp_for_billing_connector_invoice_sync!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Nmi,
     connectors::Noon,
@@ -7829,6 +7881,7 @@ default_imp_for_external_vault!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nordea,
     connectors::Nomupay,
@@ -7976,6 +8029,7 @@ default_imp_for_external_vault_insert!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nordea,
     connectors::Nomupay,
@@ -8121,6 +8175,7 @@ default_imp_for_gift_card_balance_check!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -8270,6 +8325,7 @@ default_imp_for_external_vault_retrieve!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nordea,
     connectors::Nomupay,
@@ -8417,6 +8473,7 @@ default_imp_for_external_vault_delete!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nordea,
     connectors::Nomupay,
@@ -8565,6 +8622,7 @@ default_imp_for_external_vault_create!(
     connectors::Katapult,
     connectors::Jpmorgan,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nordea,
     connectors::Nomupay,
@@ -8714,6 +8772,7 @@ default_imp_for_connector_authentication_token!(
     connectors::Jpmorgan,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mpgs,
     connectors::Netcetera,
     connectors::Nomupay,
@@ -8860,6 +8919,7 @@ default_imp_for_external_vault_proxy_payments_create!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
diff --git a/crates/hyperswitch_connectors/src/default_implementations_v2.rs b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
index 42236aa86af..260f5984a89 100644
--- a/crates/hyperswitch_connectors/src/default_implementations_v2.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
@@ -331,6 +331,7 @@ default_imp_for_new_connector_integration_payment!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -480,6 +481,7 @@ default_imp_for_new_connector_integration_refund!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -621,6 +623,7 @@ default_imp_for_new_connector_integration_connector_authentication_token!(
     connectors::Jpmorgan,
     connectors::Juspaythreedsserver,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -761,6 +764,7 @@ default_imp_for_new_connector_integration_connector_access_token!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -910,6 +914,7 @@ default_imp_for_new_connector_integration_accept_dispute!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -1059,6 +1064,7 @@ default_imp_for_new_connector_integration_fetch_disputes!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -1209,6 +1215,7 @@ default_imp_for_new_connector_integration_dispute_sync!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
@@ -1359,6 +1366,7 @@ default_imp_for_new_connector_integration_defend_dispute!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -1506,6 +1514,7 @@ default_imp_for_new_connector_integration_submit_evidence!(
     connectors::Jpmorgan,
     connectors::Juspaythreedsserver,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Katapult,
     connectors::Nomupay,
     connectors::Noon,
@@ -1666,6 +1675,7 @@ default_imp_for_new_connector_integration_file_upload!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -1817,6 +1827,7 @@ default_imp_for_new_connector_integration_payouts_create!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -1968,6 +1979,7 @@ default_imp_for_new_connector_integration_payouts_eligibility!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -2119,6 +2131,7 @@ default_imp_for_new_connector_integration_payouts_fulfill!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -2270,6 +2283,7 @@ default_imp_for_new_connector_integration_payouts_cancel!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -2421,6 +2435,7 @@ default_imp_for_new_connector_integration_payouts_quote!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -2572,6 +2587,7 @@ default_imp_for_new_connector_integration_payouts_recipient!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -2723,6 +2739,7 @@ default_imp_for_new_connector_integration_payouts_sync!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -2874,6 +2891,7 @@ default_imp_for_new_connector_integration_payouts_recipient_account!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3023,6 +3041,7 @@ default_imp_for_new_connector_integration_webhook_source_verification!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3174,6 +3193,7 @@ default_imp_for_new_connector_integration_frm_sale!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3325,6 +3345,7 @@ default_imp_for_new_connector_integration_frm_checkout!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3476,6 +3497,7 @@ default_imp_for_new_connector_integration_frm_transaction!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3627,6 +3649,7 @@ default_imp_for_new_connector_integration_frm_fulfillment!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3778,6 +3801,7 @@ default_imp_for_new_connector_integration_frm_record_return!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -3927,6 +3951,7 @@ default_imp_for_new_connector_integration_revoking_mandates!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Nomupay,
     connectors::Noon,
     connectors::Nordea,
@@ -4005,6 +4030,7 @@ macro_rules! default_imp_for_new_connector_integration_frm {
 
 #[cfg(feature = "frm")]
 default_imp_for_new_connector_integration_frm!(
+    connectors::Loonio,
     connectors::Gigadat,
     connectors::Affirm,
     connectors::Paytm,
@@ -4153,6 +4179,7 @@ macro_rules! default_imp_for_new_connector_integration_connector_authentication
 }
 
 default_imp_for_new_connector_integration_connector_authentication!(
+    connectors::Loonio,
     connectors::Gigadat,
     connectors::Affirm,
     connectors::Paytm,
@@ -4290,6 +4317,7 @@ macro_rules! default_imp_for_new_connector_integration_revenue_recovery {
 }
 
 default_imp_for_new_connector_integration_revenue_recovery!(
+    connectors::Loonio,
     connectors::Gigadat,
     connectors::Affirm,
     connectors::Paytm,
@@ -4500,6 +4528,7 @@ default_imp_for_new_connector_integration_external_vault!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Netcetera,
     connectors::Nordea,
     connectors::Nomupay,
@@ -4648,6 +4677,7 @@ default_imp_for_new_connector_integration_external_vault_proxy!(
     connectors::Juspaythreedsserver,
     connectors::Katapult,
     connectors::Klarna,
+    connectors::Loonio,
     connectors::Mifinity,
     connectors::Mollie,
     connectors::Moneris,
diff --git a/crates/hyperswitch_domain_models/src/connector_endpoints.rs b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
index a1514c01bc4..5847ba826e2 100644
--- a/crates/hyperswitch_domain_models/src/connector_endpoints.rs
+++ b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
@@ -79,6 +79,7 @@ pub struct Connectors {
     pub cardinal: NoParams,
     pub katapult: ConnectorParams,
     pub klarna: ConnectorParams,
+    pub loonio: ConnectorParams,
     pub mifinity: ConnectorParams,
     pub mollie: ConnectorParams,
     pub moneris: ConnectorParams,
diff --git a/crates/router/src/connector.rs b/crates/router/src/connector.rs
index 78ed84edf3f..b4eab9ea6e2 100644
--- a/crates/router/src/connector.rs
+++ b/crates/router/src/connector.rs
@@ -26,24 +26,25 @@ pub use hyperswitch_connectors::connectors::{
     hyperswitch_vault::HyperswitchVault, hyperwallet, hyperwallet::Hyperwallet, iatapay,
     iatapay::Iatapay, inespay, inespay::Inespay, itaubank, itaubank::Itaubank, jpmorgan,
     jpmorgan::Jpmorgan, juspaythreedsserver, juspaythreedsserver::Juspaythreedsserver, katapult,
-    katapult::Katapult, klarna, klarna::Klarna, mifinity, mifinity::Mifinity, mollie,
-    mollie::Mollie, moneris, moneris::Moneris, mpgs, mpgs::Mpgs, multisafepay,
-    multisafepay::Multisafepay, netcetera, netcetera::Netcetera, nexinets, nexinets::Nexinets,
-    nexixpay, nexixpay::Nexixpay, nmi, nmi::Nmi, nomupay, nomupay::Nomupay, noon, noon::Noon,
-    nordea, nordea::Nordea, novalnet, novalnet::Novalnet, nuvei, nuvei::Nuvei, opayo, opayo::Opayo,
-    opennode, opennode::Opennode, paybox, paybox::Paybox, payeezy, payeezy::Payeezy, payload,
-    payload::Payload, payme, payme::Payme, payone, payone::Payone, paypal, paypal::Paypal, paysafe,
-    paysafe::Paysafe, paystack, paystack::Paystack, paytm, paytm::Paytm, payu, payu::Payu,
-    peachpayments, peachpayments::Peachpayments, phonepe, phonepe::Phonepe, placetopay,
-    placetopay::Placetopay, plaid, plaid::Plaid, powertranz, powertranz::Powertranz, prophetpay,
-    prophetpay::Prophetpay, rapyd, rapyd::Rapyd, razorpay, razorpay::Razorpay, recurly,
-    recurly::Recurly, redsys, redsys::Redsys, riskified, riskified::Riskified, santander,
-    santander::Santander, shift4, shift4::Shift4, sift, sift::Sift, signifyd, signifyd::Signifyd,
-    silverflow, silverflow::Silverflow, square, square::Square, stax, stax::Stax, stripe,
-    stripe::Stripe, stripebilling, stripebilling::Stripebilling, taxjar, taxjar::Taxjar, tesouro,
-    tesouro::Tesouro, threedsecureio, threedsecureio::Threedsecureio, thunes, thunes::Thunes,
-    tokenex, tokenex::Tokenex, tokenio, tokenio::Tokenio, trustpay, trustpay::Trustpay,
-    trustpayments, trustpayments::Trustpayments, tsys, tsys::Tsys, unified_authentication_service,
+    katapult::Katapult, klarna, klarna::Klarna, loonio, loonio::Loonio, mifinity,
+    mifinity::Mifinity, mollie, mollie::Mollie, moneris, moneris::Moneris, mpgs, mpgs::Mpgs,
+    multisafepay, multisafepay::Multisafepay, netcetera, netcetera::Netcetera, nexinets,
+    nexinets::Nexinets, nexixpay, nexixpay::Nexixpay, nmi, nmi::Nmi, nomupay, nomupay::Nomupay,
+    noon, noon::Noon, nordea, nordea::Nordea, novalnet, novalnet::Novalnet, nuvei, nuvei::Nuvei,
+    opayo, opayo::Opayo, opennode, opennode::Opennode, paybox, paybox::Paybox, payeezy,
+    payeezy::Payeezy, payload, payload::Payload, payme, payme::Payme, payone, payone::Payone,
+    paypal, paypal::Paypal, paysafe, paysafe::Paysafe, paystack, paystack::Paystack, paytm,
+    paytm::Paytm, payu, payu::Payu, peachpayments, peachpayments::Peachpayments, phonepe,
+    phonepe::Phonepe, placetopay, placetopay::Placetopay, plaid, plaid::Plaid, powertranz,
+    powertranz::Powertranz, prophetpay, prophetpay::Prophetpay, rapyd, rapyd::Rapyd, razorpay,
+    razorpay::Razorpay, recurly, recurly::Recurly, redsys, redsys::Redsys, riskified,
+    riskified::Riskified, santander, santander::Santander, shift4, shift4::Shift4, sift,
+    sift::Sift, signifyd, signifyd::Signifyd, silverflow, silverflow::Silverflow, square,
+    square::Square, stax, stax::Stax, stripe, stripe::Stripe, stripebilling,
+    stripebilling::Stripebilling, taxjar, taxjar::Taxjar, tesouro, tesouro::Tesouro,
+    threedsecureio, threedsecureio::Threedsecureio, thunes, thunes::Thunes, tokenex,
+    tokenex::Tokenex, tokenio, tokenio::Tokenio, trustpay, trustpay::Trustpay, trustpayments,
+    trustpayments::Trustpayments, tsys, tsys::Tsys, unified_authentication_service,
     unified_authentication_service::UnifiedAuthenticationService, vgs, vgs::Vgs, volt, volt::Volt,
     wellsfargo, wellsfargo::Wellsfargo, wellsfargopayout, wellsfargopayout::Wellsfargopayout, wise,
     wise::Wise, worldline, worldline::Worldline, worldpay, worldpay::Worldpay, worldpayvantiv,
diff --git a/crates/router/tests/connectors/loonio.rs b/crates/router/tests/connectors/loonio.rs
new file mode 100644
index 00000000000..c9756e22807
--- /dev/null
+++ b/crates/router/tests/connectors/loonio.rs
@@ -0,0 +1,421 @@
+use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
+use masking::Secret;
+use router::types::{self, api, storage::enums};
+use test_utils::connector_auth;
+
+use crate::utils::{self, ConnectorActions};
+
+#[derive(Clone, Copy)]
+struct LoonioTest;
+impl ConnectorActions for LoonioTest {}
+impl utils::Connector for LoonioTest {
+    fn get_data(&self) -> api::ConnectorData {
+        use router::connector::Loonio;
+        utils::construct_connector_data_old(
+            Box::new(Loonio::new()),
+            types::Connector::Plaid,
+            api::GetToken::Connector,
+            None,
+        )
+    }
+
+    fn get_auth_token(&self) -> types::ConnectorAuthType {
+        utils::to_connector_auth_type(
+            connector_auth::ConnectorAuthentication::new()
+                .loonio
+                .expect("Missing connector authentication configuration")
+                .into(),
+        )
+    }
+
+    fn get_name(&self) -> String {
+        "loonio".to_string()
+    }
+}
+
+static CONNECTOR: LoonioTest = LoonioTest {};
+
+fn get_default_payment_info() -> Option<utils::PaymentInfo> {
+    None
+}
+
+fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
+    None
+}
+
+// Cards Positive Tests
+// Creates a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_only_authorize_payment() {
+    let response = CONNECTOR
+        .authorize_payment(payment_method_details(), get_default_payment_info())
+        .await
+        .expect("Authorize payment response");
+    assert_eq!(response.status, enums::AttemptStatus::Authorized);
+}
+
+// Captures a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_capture_authorized_payment() {
+    let response = CONNECTOR
+        .authorize_and_capture_payment(payment_method_details(), None, get_default_payment_info())
+        .await
+        .expect("Capture payment response");
+    assert_eq!(response.status, enums::AttemptStatus::Charged);
+}
+
+// Partially captures a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_partially_capture_authorized_payment() {
+    let response = CONNECTOR
+        .authorize_and_capture_payment(
+            payment_method_details(),
+            Some(types::PaymentsCaptureData {
+                amount_to_capture: 50,
+                ..utils::PaymentCaptureType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .expect("Capture payment response");
+    assert_eq!(response.status, enums::AttemptStatus::Charged);
+}
+
+// Synchronizes a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_authorized_payment() {
+    let authorize_response = CONNECTOR
+        .authorize_payment(payment_method_details(), get_default_payment_info())
+        .await
+        .expect("Authorize payment response");
+    let txn_id = utils::get_connector_transaction_id(authorize_response.response);
+    let response = CONNECTOR
+        .psync_retry_till_status_matches(
+            enums::AttemptStatus::Authorized,
+            Some(types::PaymentsSyncData {
+                connector_transaction_id: types::ResponseId::ConnectorTransactionId(
+                    txn_id.unwrap(),
+                ),
+                ..Default::default()
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .expect("PSync response");
+    assert_eq!(response.status, enums::AttemptStatus::Authorized,);
+}
+
+// Voids a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_void_authorized_payment() {
+    let response = CONNECTOR
+        .authorize_and_void_payment(
+            payment_method_details(),
+            Some(types::PaymentsCancelData {
+                connector_transaction_id: String::from(""),
+                cancellation_reason: Some("requested_by_customer".to_string()),
+                ..Default::default()
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .expect("Void payment response");
+    assert_eq!(response.status, enums::AttemptStatus::Voided);
+}
+
+// Refunds a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_refund_manually_captured_payment() {
+    let response = CONNECTOR
+        .capture_payment_and_refund(
+            payment_method_details(),
+            None,
+            None,
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap().refund_status,
+        enums::RefundStatus::Success,
+    );
+}
+
+// Partially refunds a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_partially_refund_manually_captured_payment() {
+    let response = CONNECTOR
+        .capture_payment_and_refund(
+            payment_method_details(),
+            None,
+            Some(types::RefundsData {
+                refund_amount: 50,
+                ..utils::PaymentRefundType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap().refund_status,
+        enums::RefundStatus::Success,
+    );
+}
+
+// Synchronizes a refund using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_manually_captured_refund() {
+    let refund_response = CONNECTOR
+        .capture_payment_and_refund(
+            payment_method_details(),
+            None,
+            None,
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    let response = CONNECTOR
+        .rsync_retry_till_status_matches(
+            enums::RefundStatus::Success,
+            refund_response.response.unwrap().connector_refund_id,
+            None,
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap().refund_status,
+        enums::RefundStatus::Success,
+    );
+}
+
+// Creates a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_make_payment() {
+    let authorize_response = CONNECTOR
+        .make_payment(payment_method_details(), get_default_payment_info())
+        .await
+        .unwrap();
+    assert_eq!(authorize_response.status, enums::AttemptStatus::Charged);
+}
+
+// Synchronizes a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_auto_captured_payment() {
+    let authorize_response = CONNECTOR
+        .make_payment(payment_method_details(), get_default_payment_info())
+        .await
+        .unwrap();
+    assert_eq!(authorize_response.status, enums::AttemptStatus::Charged);
+    let txn_id = utils::get_connector_transaction_id(authorize_response.response);
+    assert_ne!(txn_id, None, "Empty connector transaction id");
+    let response = CONNECTOR
+        .psync_retry_till_status_matches(
+            enums::AttemptStatus::Charged,
+            Some(types::PaymentsSyncData {
+                connector_transaction_id: types::ResponseId::ConnectorTransactionId(
+                    txn_id.unwrap(),
+                ),
+                capture_method: Some(enums::CaptureMethod::Automatic),
+                ..Default::default()
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(response.status, enums::AttemptStatus::Charged,);
+}
+
+// Refunds a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_refund_auto_captured_payment() {
+    let response = CONNECTOR
+        .make_payment_and_refund(payment_method_details(), None, get_default_payment_info())
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap().refund_status,
+        enums::RefundStatus::Success,
+    );
+}
+
+// Partially refunds a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_partially_refund_succeeded_payment() {
+    let refund_response = CONNECTOR
+        .make_payment_and_refund(
+            payment_method_details(),
+            Some(types::RefundsData {
+                refund_amount: 50,
+                ..utils::PaymentRefundType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        refund_response.response.unwrap().refund_status,
+        enums::RefundStatus::Success,
+    );
+}
+
+// Creates multiple refunds against a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_refund_succeeded_payment_multiple_times() {
+    CONNECTOR
+        .make_payment_and_multiple_refund(
+            payment_method_details(),
+            Some(types::RefundsData {
+                refund_amount: 50,
+                ..utils::PaymentRefundType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await;
+}
+
+// Synchronizes a refund using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_refund() {
+    let refund_response = CONNECTOR
+        .make_payment_and_refund(payment_method_details(), None, get_default_payment_info())
+        .await
+        .unwrap();
+    let response = CONNECTOR
+        .rsync_retry_till_status_matches(
+            enums::RefundStatus::Success,
+            refund_response.response.unwrap().connector_refund_id,
+            None,
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap().refund_status,
+        enums::RefundStatus::Success,
+    );
+}
+
+// Cards Negative scenarios
+// Creates a payment with incorrect CVC.
+#[actix_web::test]
+async fn should_fail_payment_for_incorrect_cvc() {
+    let response = CONNECTOR
+        .make_payment(
+            Some(types::PaymentsAuthorizeData {
+                payment_method_data: PaymentMethodData::Card(Card {
+                    card_cvc: Secret::new("12345".to_string()),
+                    ..utils::CCardType::default().0
+                }),
+                ..utils::PaymentAuthorizeType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap_err().message,
+        "Your card's security code is invalid.".to_string(),
+    );
+}
+
+// Creates a payment with incorrect expiry month.
+#[actix_web::test]
+async fn should_fail_payment_for_invalid_exp_month() {
+    let response = CONNECTOR
+        .make_payment(
+            Some(types::PaymentsAuthorizeData {
+                payment_method_data: PaymentMethodData::Card(Card {
+                    card_exp_month: Secret::new("20".to_string()),
+                    ..utils::CCardType::default().0
+                }),
+                ..utils::PaymentAuthorizeType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap_err().message,
+        "Your card's expiration month is invalid.".to_string(),
+    );
+}
+
+// Creates a payment with incorrect expiry year.
+#[actix_web::test]
+async fn should_fail_payment_for_incorrect_expiry_year() {
+    let response = CONNECTOR
+        .make_payment(
+            Some(types::PaymentsAuthorizeData {
+                payment_method_data: PaymentMethodData::Card(Card {
+                    card_exp_year: Secret::new("2000".to_string()),
+                    ..utils::CCardType::default().0
+                }),
+                ..utils::PaymentAuthorizeType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap_err().message,
+        "Your card's expiration year is invalid.".to_string(),
+    );
+}
+
+// Voids a payment using automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_fail_void_payment_for_auto_capture() {
+    let authorize_response = CONNECTOR
+        .make_payment(payment_method_details(), get_default_payment_info())
+        .await
+        .unwrap();
+    assert_eq!(authorize_response.status, enums::AttemptStatus::Charged);
+    let txn_id = utils::get_connector_transaction_id(authorize_response.response);
+    assert_ne!(txn_id, None, "Empty connector transaction id");
+    let void_response = CONNECTOR
+        .void_payment(txn_id.unwrap(), None, get_default_payment_info())
+        .await
+        .unwrap();
+    assert_eq!(
+        void_response.response.unwrap_err().message,
+        "You cannot cancel this PaymentIntent because it has a status of succeeded."
+    );
+}
+
+// Captures a payment using invalid connector payment id.
+#[actix_web::test]
+async fn should_fail_capture_for_invalid_payment() {
+    let capture_response = CONNECTOR
+        .capture_payment("123456789".to_string(), None, get_default_payment_info())
+        .await
+        .unwrap();
+    assert_eq!(
+        capture_response.response.unwrap_err().message,
+        String::from("No such payment_intent: '123456789'")
+    );
+}
+
+// Refunds a payment with refund amount higher than payment amount.
+#[actix_web::test]
+async fn should_fail_for_refund_amount_higher_than_payment_amount() {
+    let response = CONNECTOR
+        .make_payment_and_refund(
+            payment_method_details(),
+            Some(types::RefundsData {
+                refund_amount: 150,
+                ..utils::PaymentRefundType::default().0
+            }),
+            get_default_payment_info(),
+        )
+        .await
+        .unwrap();
+    assert_eq!(
+        response.response.unwrap_err().message,
+        "Refund amount (₹1.50) is greater than charge amount (₹1.00)",
+    );
+}
+
+// Connector dependent test cases goes here
+
+// [#478]: add unit tests for non 3DS, wallets & webhooks in connector tests
diff --git a/crates/router/tests/connectors/main.rs b/crates/router/tests/connectors/main.rs
index 9738f6a2b72..a43b1ef45f2 100644
--- a/crates/router/tests/connectors/main.rs
+++ b/crates/router/tests/connectors/main.rs
@@ -65,6 +65,7 @@ mod itaubank;
 mod jpmorgan;
 mod juspaythreedsserver;
 mod katapult;
+mod loonio;
 mod mifinity;
 mod mollie;
 mod moneris;
diff --git a/crates/test_utils/src/connector_auth.rs b/crates/test_utils/src/connector_auth.rs
index fbcded72d56..1f4dbbef0f9 100644
--- a/crates/test_utils/src/connector_auth.rs
+++ b/crates/test_utils/src/connector_auth.rs
@@ -75,6 +75,7 @@ pub struct ConnectorAuthentication {
     pub jpmorgan: Option<BodyKey>,
     pub juspaythreedsserver: Option<HeaderKey>,
     pub katapult: Option<HeaderKey>,
+    pub loonio: Option<HeaderKey>,
     pub mifinity: Option<HeaderKey>,
     pub mollie: Option<BodyKey>,
     pub moneris: Option<SignatureKey>,
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index 695a9593e26..0ad216f4486 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -146,6 +146,7 @@ juspaythreedsserver.base_url = "http://localhost:8000"
 katapult.base_url = "https://sandbox.katapult.com/api/v3"
 jpmorgan.secondary_base_url = "https://id.payments.jpmorgan.com"
 klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
+loonio.base_url = "https://loonio.ca/"
 mifinity.base_url = "https://demo.mifinity.com/"
 mollie.base_url = "https://api.mollie.com/v2/"
 moneris.base_url = "https://api.sb.moneris.io"
diff --git a/scripts/add_connector.sh b/scripts/add_connector.sh
index 4e16b0b7357..38269ef8f5d 100755
--- a/scripts/add_connector.sh
+++ b/scripts/add_connector.sh
@@ -6,7 +6,7 @@ function find_prev_connector() {
     git checkout $self
     cp $self $self.tmp
     # Add new connector to existing list and sort it
-    connectors=(aci adyen adyenplatform affirm airwallex amazonpay applepay archipel authipay authorizedotnet bambora bamboraapac bankofamerica barclaycard billwerk bitpay blackhawknetwork bluecode bluesnap boku braintree breadpay cashtocode celero chargebee checkbook checkout coinbase cryptopay ctp_visa custombilling cybersource datatrans deutschebank digitalvirgo dlocal dummyconnector dwolla ebanx elavon facilitapay finix fiserv fiservemea fiuu flexiti forte getnet gigadat globalpay globepay gocardless gpayments helcim hipay hyperswitch_vault hyperwallet hyperwallet iatapay inespay itaubank jpmorgan juspaythreedsserver katapult klarna mifinity mollie moneris mpgs multisafepay netcetera nexinets nexixpay nomupay noon nordea novalnet nuvei opayo opennode paybox payeezy payload payme payone paypal paysafe paystack paytm payu peachpayments phonepe placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys santander shift4 sift silverflow square stax stripe stripebilling taxjar tesouro threedsecureio thunes tokenex tokenio trustpay trustpayments tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpayvantiv worldpayxml xendit zsl "$1")
+    connectors=(aci adyen adyenplatform affirm airwallex amazonpay applepay archipel authipay authorizedotnet bambora bamboraapac bankofamerica barclaycard billwerk bitpay blackhawknetwork bluecode bluesnap boku braintree breadpay cashtocode celero chargebee checkbook checkout coinbase cryptopay ctp_visa custombilling cybersource datatrans deutschebank digitalvirgo dlocal dummyconnector dwolla ebanx elavon facilitapay finix fiserv fiservemea fiuu flexiti forte getnet gigadat globalpay globepay gocardless gpayments helcim hipay hyperswitch_vault hyperwallet hyperwallet iatapay inespay itaubank jpmorgan juspaythreedsserver katapult klarna loonio mifinity mollie moneris mpgs multisafepay netcetera nexinets nexixpay nomupay noon nordea novalnet nuvei opayo opennode paybox payeezy payload payme payone paypal paysafe paystack paytm payu peachpayments phonepe placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys santander shift4 sift silverflow square stax stripe stripebilling taxjar tesouro threedsecureio thunes tokenex tokenio trustpay trustpayments tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpayvantiv worldpayxml xendit zsl "$1")
 
 
     IFS=$'\n' sorted=($(sort <<<"${connectors[*]}")); unset IFS

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
Add template code for Loonio connector

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!--
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?
No test required as it is template code


## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
