Bug: [FEATURE] Barclaycard: Add template PR



### Feature Description

Barclaycard: Add template PR

### Possible Implementation

Barclaycard: Add template PR

### Have you spent some time checking if this feature request has been raised before?

- [x] I checked and didn't find a similar issue

### Have you read the Contributing Guidelines?

- [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md)

### Are you willing to submit a PR?

Yes, I am willing to submit a PR!
diff --git a/config/config.example.toml b/config/config.example.toml
index 6be49be237f..c735da47d89 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -188,6 +188,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
 bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://test.bitpay.com"
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index cb454b73731..ad39ee3ad19 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -32,6 +32,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
 bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://test.bitpay.com"
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index efdce9d016c..f53e255253b 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -36,6 +36,7 @@ authorizedotnet.base_url = "https://api.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://www.bambora.co.nz/interface/api/dts.asmx"
 bankofamerica.base_url = "https://api.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://bitpay.com"
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index 3c3b5f5f403..c68c41ac7b8 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -36,6 +36,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
 bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://test.bitpay.com"
diff --git a/config/development.toml b/config/development.toml
index 2bdb4d6a806..c3da1fa04d4 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -123,6 +123,7 @@ cards = [
     "bambora",
     "bamboraapac",
     "bankofamerica",
+    "barclaycard",
     "billwerk",
     "bitpay",
     "bluesnap",
@@ -237,6 +238,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
 bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://test.bitpay.com"
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index 2f8ff2b2ab0..a617b928bab 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -119,6 +119,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
 bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://test.bitpay.com"
@@ -243,6 +244,7 @@ cards = [
     "bambora",
     "bamboraapac",
     "bankofamerica",
+    "barclaycard",
     "billwerk",
     "bitpay",
     "bluesnap",
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rs
index a0ef01f4f11..76979d26d62 100644
--- a/crates/common_enums/src/connector_enums.rs
+++ b/crates/common_enums/src/connector_enums.rs
@@ -65,6 +65,7 @@ pub enum RoutableConnectors {
     Archipel,
     Authorizedotnet,
     Bankofamerica,
+    // Barclaycard,
     Billwerk,
     Bitpay,
     Bambora,
@@ -217,6 +218,7 @@ pub enum Connector {
     Bambora,
     Bamboraapac,
     Bankofamerica,
+    // Barclaycard,
     Billwerk,
     Bitpay,
     Bluesnap,
@@ -389,6 +391,7 @@ impl Connector {
             | Self::Bambora
             | Self::Bamboraapac
             | Self::Bankofamerica
+            // | Self::Barclaycard
             | Self::Billwerk
             | Self::Bitpay
             | Self::Bluesnap
@@ -540,6 +543,7 @@ impl From<RoutableConnectors> for Connector {
             RoutableConnectors::Archipel => Self::Archipel,
             RoutableConnectors::Authorizedotnet => Self::Authorizedotnet,
             RoutableConnectors::Bankofamerica => Self::Bankofamerica,
+            // RoutableConnectors::Barclaycard => Self::Barclaycard,
             RoutableConnectors::Billwerk => Self::Billwerk,
             RoutableConnectors::Bitpay => Self::Bitpay,
             RoutableConnectors::Bambora => Self::Bambora,
@@ -652,6 +656,7 @@ impl TryFrom<Connector> for RoutableConnectors {
             Connector::Archipel => Ok(Self::Archipel),
             Connector::Authorizedotnet => Ok(Self::Authorizedotnet),
             Connector::Bankofamerica => Ok(Self::Bankofamerica),
+            // Connector::Barclaycard => Ok(Self::Barclaycard),
             Connector::Billwerk => Ok(Self::Billwerk),
             Connector::Bitpay => Ok(Self::Bitpay),
             Connector::Bambora => Ok(Self::Bambora),
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index 61c9e1ca692..bfa63d59394 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -174,6 +174,7 @@ pub struct ConnectorConfig {
     pub authorizedotnet: Option<ConnectorTomlConfig>,
     pub bamboraapac: Option<ConnectorTomlConfig>,
     pub bankofamerica: Option<ConnectorTomlConfig>,
+    pub barclaycard: Option<ConnectorTomlConfig>,
     pub billwerk: Option<ConnectorTomlConfig>,
     pub bitpay: Option<ConnectorTomlConfig>,
     pub bluesnap: Option<ConnectorTomlConfig>,
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs
index 283c6a9a3a4..b2f6bb1e708 100644
--- a/crates/hyperswitch_connectors/src/connectors.rs
+++ b/crates/hyperswitch_connectors/src/connectors.rs
@@ -8,6 +8,7 @@ pub mod authorizedotnet;
 pub mod bambora;
 pub mod bamboraapac;
 pub mod bankofamerica;
+pub mod barclaycard;
 pub mod billwerk;
 pub mod bitpay;
 pub mod bluesnap;
@@ -101,21 +102,22 @@ pub mod zsl;
 pub use self::{
     aci::Aci, adyen::Adyen, adyenplatform::Adyenplatform, airwallex::Airwallex,
     amazonpay::Amazonpay, archipel::Archipel, authorizedotnet::Authorizedotnet, bambora::Bambora,
-    bamboraapac::Bamboraapac, bankofamerica::Bankofamerica, billwerk::Billwerk, bitpay::Bitpay,
-    bluesnap::Bluesnap, boku::Boku, braintree::Braintree, cashtocode::Cashtocode,
-    chargebee::Chargebee, checkout::Checkout, coinbase::Coinbase, coingate::Coingate,
-    cryptopay::Cryptopay, ctp_mastercard::CtpMastercard, cybersource::Cybersource,
-    datatrans::Datatrans, deutschebank::Deutschebank, digitalvirgo::Digitalvirgo, dlocal::Dlocal,
-    ebanx::Ebanx, elavon::Elavon, facilitapay::Facilitapay, fiserv::Fiserv, fiservemea::Fiservemea,
-    fiuu::Fiuu, forte::Forte, getnet::Getnet, globalpay::Globalpay, globepay::Globepay,
-    gocardless::Gocardless, gpayments::Gpayments, helcim::Helcim, hipay::Hipay, iatapay::Iatapay,
-    inespay::Inespay, itaubank::Itaubank, jpmorgan::Jpmorgan,
-    juspaythreedsserver::Juspaythreedsserver, klarna::Klarna, mifinity::Mifinity, mollie::Mollie,
-    moneris::Moneris, multisafepay::Multisafepay, netcetera::Netcetera, nexinets::Nexinets,
-    nexixpay::Nexixpay, nmi::Nmi, nomupay::Nomupay, noon::Noon, novalnet::Novalnet, nuvei::Nuvei,
-    opayo::Opayo, opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payme::Payme,
-    payone::Payone, paypal::Paypal, paystack::Paystack, payu::Payu, placetopay::Placetopay,
-    plaid::Plaid, powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, razorpay::Razorpay,
+    bamboraapac::Bamboraapac, bankofamerica::Bankofamerica, barclaycard::Barclaycard,
+    billwerk::Billwerk, bitpay::Bitpay, bluesnap::Bluesnap, boku::Boku, braintree::Braintree,
+    cashtocode::Cashtocode, chargebee::Chargebee, checkout::Checkout, coinbase::Coinbase,
+    coingate::Coingate, cryptopay::Cryptopay, ctp_mastercard::CtpMastercard,
+    cybersource::Cybersource, datatrans::Datatrans, deutschebank::Deutschebank,
+    digitalvirgo::Digitalvirgo, dlocal::Dlocal, ebanx::Ebanx, elavon::Elavon,
+    facilitapay::Facilitapay, fiserv::Fiserv, fiservemea::Fiservemea, fiuu::Fiuu, forte::Forte,
+    getnet::Getnet, globalpay::Globalpay, globepay::Globepay, gocardless::Gocardless,
+    gpayments::Gpayments, helcim::Helcim, hipay::Hipay, iatapay::Iatapay, inespay::Inespay,
+    itaubank::Itaubank, jpmorgan::Jpmorgan, juspaythreedsserver::Juspaythreedsserver,
+    klarna::Klarna, mifinity::Mifinity, mollie::Mollie, moneris::Moneris,
+    multisafepay::Multisafepay, netcetera::Netcetera, nexinets::Nexinets, nexixpay::Nexixpay,
+    nmi::Nmi, nomupay::Nomupay, noon::Noon, novalnet::Novalnet, nuvei::Nuvei, opayo::Opayo,
+    opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payme::Payme, payone::Payone,
+    paypal::Paypal, paystack::Paystack, payu::Payu, placetopay::Placetopay, plaid::Plaid,
+    powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, razorpay::Razorpay,
     recurly::Recurly, redsys::Redsys, riskified::Riskified, shift4::Shift4, signifyd::Signifyd,
     square::Square, stax::Stax, stripe::Stripe, stripebilling::Stripebilling, taxjar::Taxjar,
     threedsecureio::Threedsecureio, thunes::Thunes, trustpay::Trustpay, tsys::Tsys,
diff --git a/crates/hyperswitch_connectors/src/connectors/barclaycard.rs b/crates/hyperswitch_connectors/src/connectors/barclaycard.rs
new file mode 100644
index 00000000000..9397d063ff6
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/barclaycard.rs
@@ -0,0 +1,573 @@
+pub mod transformers;
+
+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::{
+    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::{PaymentsResponseData, RefundsResponseData},
+    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 barclaycard;
+
+use crate::{constants::headers, types::ResponseRouterData, utils};
+
+#[derive(Clone)]
+pub struct Barclaycard {
+    amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
+}
+
+impl Barclaycard {
+    pub fn new() -> &'static Self {
+        &Self {
+            amount_converter: &StringMinorUnitForConnector,
+        }
+    }
+}
+
+impl api::Payment for Barclaycard {}
+impl api::PaymentSession for Barclaycard {}
+impl api::ConnectorAccessToken for Barclaycard {}
+impl api::MandateSetup for Barclaycard {}
+impl api::PaymentAuthorize for Barclaycard {}
+impl api::PaymentSync for Barclaycard {}
+impl api::PaymentCapture for Barclaycard {}
+impl api::PaymentVoid for Barclaycard {}
+impl api::Refund for Barclaycard {}
+impl api::RefundExecute for Barclaycard {}
+impl api::RefundSync for Barclaycard {}
+impl api::PaymentToken for Barclaycard {}
+
+impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
+    for Barclaycard
+{
+    // Not Implemented (R)
+}
+
+impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for Barclaycard
+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 Barclaycard {
+    fn id(&self) -> &'static str {
+        "barclaycard"
+    }
+
+    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.barclaycard.base_url.as_ref()
+    }
+
+    fn get_auth_header(
+        &self,
+        auth_type: &ConnectorAuthType,
+    ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+        let auth = barclaycard::BarclaycardAuthType::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: barclaycard::BarclaycardErrorResponse = res
+            .response
+            .parse_struct("BarclaycardErrorResponse")
+            .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_decline_code: None,
+            network_advice_code: None,
+            network_error_message: None,
+        })
+    }
+}
+
+impl ConnectorValidation for Barclaycard {
+    //TODO: implement functions when support enabled
+}
+
+impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Barclaycard {
+    //TODO: implement sessions flow
+}
+
+impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Barclaycard {}
+
+impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData>
+    for Barclaycard
+{
+}
+
+impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Barclaycard {
+    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 = barclaycard::BarclaycardRouterData::from((amount, req));
+        let connector_req =
+            barclaycard::BarclaycardPaymentsRequest::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: barclaycard::BarclaycardPaymentsResponse = res
+            .response
+            .parse_struct("Barclaycard 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 Barclaycard {
+    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: barclaycard::BarclaycardPaymentsResponse = res
+            .response
+            .parse_struct("barclaycard 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 Barclaycard {
+    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: barclaycard::BarclaycardPaymentsResponse = res
+            .response
+            .parse_struct("Barclaycard 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 Barclaycard {}
+
+impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Barclaycard {
+    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 = barclaycard::BarclaycardRouterData::from((refund_amount, req));
+        let connector_req =
+            barclaycard::BarclaycardRefundRequest::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: barclaycard::RefundResponse = res
+            .response
+            .parse_struct("barclaycard 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 Barclaycard {
+    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: barclaycard::RefundResponse = res
+            .response
+            .parse_struct("barclaycard 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 Barclaycard {
+    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))
+    }
+}
+
+impl ConnectorSpecifications for Barclaycard {}
diff --git a/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs b/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
new file mode 100644
index 00000000000..1a994d3d2a0
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs
@@ -0,0 +1,228 @@
+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},
+    utils::PaymentsAuthorizeRequestData,
+};
+
+//TODO: Fill the struct with respective fields
+pub struct BarclaycardRouterData<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 BarclaycardRouterData<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 BarclaycardPaymentsRequest {
+    amount: StringMinorUnit,
+    card: BarclaycardCard,
+}
+
+#[derive(Default, Debug, Serialize, Eq, PartialEq)]
+pub struct BarclaycardCard {
+    number: cards::CardNumber,
+    expiry_month: Secret<String>,
+    expiry_year: Secret<String>,
+    cvc: Secret<String>,
+    complete: bool,
+}
+
+impl TryFrom<&BarclaycardRouterData<&PaymentsAuthorizeRouterData>> for BarclaycardPaymentsRequest {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(
+        item: &BarclaycardRouterData<&PaymentsAuthorizeRouterData>,
+    ) -> Result<Self, Self::Error> {
+        match item.router_data.request.payment_method_data.clone() {
+            PaymentMethodData::Card(req_card) => {
+                let card = BarclaycardCard {
+                    number: req_card.card_number,
+                    expiry_month: req_card.card_exp_month,
+                    expiry_year: req_card.card_exp_year,
+                    cvc: req_card.card_cvc,
+                    complete: item.router_data.request.is_auto_capture()?,
+                };
+                Ok(Self {
+                    amount: item.amount.clone(),
+                    card,
+                })
+            }
+            _ => Err(errors::ConnectorError::NotImplemented("Payment method".to_string()).into()),
+        }
+    }
+}
+
+//TODO: Fill the struct with respective fields
+// Auth Struct
+pub struct BarclaycardAuthType {
+    pub(super) api_key: Secret<String>,
+}
+
+impl TryFrom<&ConnectorAuthType> for BarclaycardAuthType {
+    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, Default, Serialize, Deserialize, PartialEq)]
+#[serde(rename_all = "lowercase")]
+pub enum BarclaycardPaymentStatus {
+    Succeeded,
+    Failed,
+    #[default]
+    Processing,
+}
+
+impl From<BarclaycardPaymentStatus> for common_enums::AttemptStatus {
+    fn from(item: BarclaycardPaymentStatus) -> Self {
+        match item {
+            BarclaycardPaymentStatus::Succeeded => Self::Charged,
+            BarclaycardPaymentStatus::Failed => Self::Failure,
+            BarclaycardPaymentStatus::Processing => Self::Authorizing,
+        }
+    }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
+pub struct BarclaycardPaymentsResponse {
+    status: BarclaycardPaymentStatus,
+    id: String,
+}
+
+impl<F, T> TryFrom<ResponseRouterData<F, BarclaycardPaymentsResponse, T, PaymentsResponseData>>
+    for RouterData<F, T, PaymentsResponseData>
+{
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(
+        item: ResponseRouterData<F, BarclaycardPaymentsResponse, 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 BarclaycardRefundRequest {
+    pub amount: StringMinorUnit,
+}
+
+impl<F> TryFrom<&BarclaycardRouterData<&RefundsRouterData<F>>> for BarclaycardRefundRequest {
+    type Error = error_stack::Report<errors::ConnectorError>;
+    fn try_from(item: &BarclaycardRouterData<&RefundsRouterData<F>>) -> Result<Self, Self::Error> {
+        Ok(Self {
+            amount: item.amount.to_owned(),
+        })
+    }
+}
+
+// Type definition for Refund Response
+
+#[allow(dead_code)]
+#[derive(Debug, 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 BarclaycardErrorResponse {
+    pub status_code: u16,
+    pub code: String,
+    pub message: String,
+    pub reason: Option<String>,
+}
diff --git a/crates/hyperswitch_connectors/src/default_implementations.rs b/crates/hyperswitch_connectors/src/default_implementations.rs
index e8013933d6d..ed5f0135a65 100644
--- a/crates/hyperswitch_connectors/src/default_implementations.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations.rs
@@ -127,6 +127,7 @@ default_imp_for_authorize_session_token!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -242,6 +243,7 @@ default_imp_for_calculate_tax!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -358,6 +360,7 @@ default_imp_for_session_update!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -474,6 +477,7 @@ default_imp_for_post_session_tokens!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Bitpay,
     connectors::Bluesnap,
     connectors::Braintree,
@@ -589,6 +593,7 @@ default_imp_for_update_metadata!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Bitpay,
     connectors::Bluesnap,
     connectors::Braintree,
@@ -705,6 +710,7 @@ default_imp_for_complete_authorize!(
     connectors::Archipel,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Boku,
@@ -804,6 +810,7 @@ default_imp_for_incremental_authorization!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -920,6 +927,7 @@ default_imp_for_create_customer!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1035,6 +1043,7 @@ default_imp_for_connector_redirect_response!(
     connectors::Bitpay,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Boku,
     connectors::Cashtocode,
     connectors::Chargebee,
@@ -1130,6 +1139,7 @@ default_imp_for_pre_processing_steps!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1237,6 +1247,7 @@ default_imp_for_post_processing_steps!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1354,6 +1365,7 @@ default_imp_for_approve!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1472,6 +1484,7 @@ default_imp_for_reject!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1590,6 +1603,7 @@ default_imp_for_webhook_source_verification!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1707,6 +1721,7 @@ default_imp_for_accept_dispute!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1823,6 +1838,7 @@ default_imp_for_submit_evidence!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1938,6 +1954,7 @@ default_imp_for_defend_dispute!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2063,6 +2080,7 @@ default_imp_for_file_upload!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2170,6 +2188,7 @@ default_imp_for_payouts!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2281,6 +2300,7 @@ default_imp_for_payouts_create!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2396,6 +2416,7 @@ default_imp_for_payouts_retrieve!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2513,6 +2534,7 @@ default_imp_for_payouts_eligibility!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2628,6 +2650,7 @@ default_imp_for_payouts_fulfill!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2740,6 +2763,7 @@ default_imp_for_payouts_cancel!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2856,6 +2880,7 @@ default_imp_for_payouts_quote!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2973,6 +2998,7 @@ default_imp_for_payouts_recipient!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3089,6 +3115,7 @@ default_imp_for_payouts_recipient_account!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3207,6 +3234,7 @@ default_imp_for_frm_sale!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3325,6 +3353,7 @@ default_imp_for_frm_checkout!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3443,6 +3472,7 @@ default_imp_for_frm_transaction!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3561,6 +3591,7 @@ default_imp_for_frm_fulfillment!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3679,6 +3710,7 @@ default_imp_for_frm_record_return!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3794,6 +3826,7 @@ default_imp_for_revoking_mandates!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3907,6 +3940,7 @@ default_imp_for_uas_pre_authentication!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4022,6 +4056,7 @@ default_imp_for_uas_post_authentication!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -4138,6 +4173,7 @@ default_imp_for_uas_authentication_confirmation!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4246,6 +4282,7 @@ default_imp_for_connector_request_id!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4356,6 +4393,7 @@ default_imp_for_fraud_check!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4496,6 +4534,7 @@ default_imp_for_connector_authentication!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4609,6 +4648,7 @@ default_imp_for_uas_authentication!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -4717,6 +4757,7 @@ default_imp_for_revenue_recovery! {
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4836,6 +4877,7 @@ default_imp_for_billing_connector_payment_sync!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -4954,6 +4996,7 @@ default_imp_for_revenue_recovery_record_back!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
@@ -5070,6 +5113,7 @@ default_imp_for_billing_connector_invoice_sync!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bluesnap,
     connectors::Bitpay,
diff --git a/crates/hyperswitch_connectors/src/default_implementations_v2.rs b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
index e6b0a24574f..9148bdb1135 100644
--- a/crates/hyperswitch_connectors/src/default_implementations_v2.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
@@ -248,6 +248,7 @@ default_imp_for_new_connector_integration_payment!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -366,6 +367,7 @@ default_imp_for_new_connector_integration_refund!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -479,6 +481,7 @@ default_imp_for_new_connector_integration_connector_access_token!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -598,6 +601,7 @@ default_imp_for_new_connector_integration_accept_dispute!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -715,6 +719,7 @@ default_imp_for_new_connector_integration_submit_evidence!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -832,6 +837,7 @@ default_imp_for_new_connector_integration_defend_dispute!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -960,6 +966,7 @@ default_imp_for_new_connector_integration_file_upload!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1080,6 +1087,7 @@ default_imp_for_new_connector_integration_payouts_create!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1200,6 +1208,7 @@ default_imp_for_new_connector_integration_payouts_eligibility!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1320,6 +1329,7 @@ default_imp_for_new_connector_integration_payouts_fulfill!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1440,6 +1450,7 @@ default_imp_for_new_connector_integration_payouts_cancel!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1560,6 +1571,7 @@ default_imp_for_new_connector_integration_payouts_quote!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1680,6 +1692,7 @@ default_imp_for_new_connector_integration_payouts_recipient!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1800,6 +1813,7 @@ default_imp_for_new_connector_integration_payouts_sync!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -1920,6 +1934,7 @@ default_imp_for_new_connector_integration_payouts_recipient_account!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2038,6 +2053,7 @@ default_imp_for_new_connector_integration_webhook_source_verification!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2158,6 +2174,7 @@ default_imp_for_new_connector_integration_frm_sale!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2278,6 +2295,7 @@ default_imp_for_new_connector_integration_frm_checkout!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2398,6 +2416,7 @@ default_imp_for_new_connector_integration_frm_transaction!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2518,6 +2537,7 @@ default_imp_for_new_connector_integration_frm_fulfillment!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2638,6 +2658,7 @@ default_imp_for_new_connector_integration_frm_record_return!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2755,6 +2776,7 @@ default_imp_for_new_connector_integration_revoking_mandates!(
     connectors::Bambora,
     connectors::Bamboraapac,
     connectors::Bankofamerica,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2861,6 +2883,7 @@ default_imp_for_new_connector_integration_frm!(
     connectors::Amazonpay,
     connectors::Bambora,
     connectors::Bamboraapac,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -2978,6 +3001,7 @@ default_imp_for_new_connector_integration_connector_authentication!(
     connectors::Amazonpay,
     connectors::Bambora,
     connectors::Bamboraapac,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
@@ -3084,6 +3108,7 @@ default_imp_for_new_connector_integration_revenue_recovery!(
     connectors::Amazonpay,
     connectors::Bambora,
     connectors::Bamboraapac,
+    connectors::Barclaycard,
     connectors::Billwerk,
     connectors::Bitpay,
     connectors::Bluesnap,
diff --git a/crates/hyperswitch_domain_models/src/configs.rs b/crates/hyperswitch_domain_models/src/configs.rs
index d5d7f225150..7ce8b2cad01 100644
--- a/crates/hyperswitch_domain_models/src/configs.rs
+++ b/crates/hyperswitch_domain_models/src/configs.rs
@@ -22,6 +22,7 @@ pub struct Connectors {
     pub bambora: ConnectorParams,
     pub bamboraapac: ConnectorParams,
     pub bankofamerica: ConnectorParams,
+    pub barclaycard: ConnectorParams,
     pub billwerk: ConnectorParams,
     pub bitpay: ConnectorParams,
     pub bluesnap: ConnectorParamsWithSecondaryBaseUrl,
diff --git a/crates/router/src/connector.rs b/crates/router/src/connector.rs
index da49aaed74e..20f09c0ab9a 100644
--- a/crates/router/src/connector.rs
+++ b/crates/router/src/connector.rs
@@ -6,13 +6,13 @@ pub use hyperswitch_connectors::connectors::{
     aci, aci::Aci, adyen, adyen::Adyen, adyenplatform, adyenplatform::Adyenplatform, airwallex,
     airwallex::Airwallex, amazonpay, amazonpay::Amazonpay, archipel, archipel::Archipel,
     authorizedotnet, authorizedotnet::Authorizedotnet, bambora, bambora::Bambora, bamboraapac,
-    bamboraapac::Bamboraapac, bankofamerica, bankofamerica::Bankofamerica, billwerk,
-    billwerk::Billwerk, bitpay, bitpay::Bitpay, bluesnap, bluesnap::Bluesnap, boku, boku::Boku,
-    braintree, braintree::Braintree, cashtocode, cashtocode::Cashtocode, chargebee,
-    chargebee::Chargebee, checkout, checkout::Checkout, coinbase, coinbase::Coinbase, coingate,
-    coingate::Coingate, cryptopay, cryptopay::Cryptopay, ctp_mastercard,
-    ctp_mastercard::CtpMastercard, cybersource, cybersource::Cybersource, datatrans,
-    datatrans::Datatrans, deutschebank, deutschebank::Deutschebank, digitalvirgo,
+    bamboraapac::Bamboraapac, bankofamerica, bankofamerica::Bankofamerica, barclaycard,
+    barclaycard::Barclaycard, billwerk, billwerk::Billwerk, bitpay, bitpay::Bitpay, bluesnap,
+    bluesnap::Bluesnap, boku, boku::Boku, braintree, braintree::Braintree, cashtocode,
+    cashtocode::Cashtocode, chargebee, chargebee::Chargebee, checkout, checkout::Checkout,
+    coinbase, coinbase::Coinbase, coingate, coingate::Coingate, cryptopay, cryptopay::Cryptopay,
+    ctp_mastercard, ctp_mastercard::CtpMastercard, cybersource, cybersource::Cybersource,
+    datatrans, datatrans::Datatrans, deutschebank, deutschebank::Deutschebank, digitalvirgo,
     digitalvirgo::Digitalvirgo, dlocal, dlocal::Dlocal, ebanx, ebanx::Ebanx, elavon,
     elavon::Elavon, facilitapay, facilitapay::Facilitapay, fiserv, fiserv::Fiserv, fiservemea,
     fiservemea::Fiservemea, fiuu, fiuu::Fiuu, forte, forte::Forte, getnet, getnet::Getnet,
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rs
index 14a6900693e..8abdc4216bc 100644
--- a/crates/router/src/core/admin.rs
+++ b/crates/router/src/core/admin.rs
@@ -1340,6 +1340,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
                 bankofamerica::transformers::BankOfAmericaAuthType::try_from(self.auth_type)?;
                 Ok(())
             }
+            // api_enums::Connector::Barclaycard => {
+            //     barclaycard::transformers::BarclaycardAuthType::try_from(self.auth_type)?;
+            //     Ok(())
+            // },
             api_enums::Connector::Billwerk => {
                 billwerk::transformers::BillwerkAuthType::try_from(self.auth_type)?;
                 Ok(())
diff --git a/crates/router/src/types/api.rs b/crates/router/src/types/api.rs
index 5009b993710..9296503c36e 100644
--- a/crates/router/src/types/api.rs
+++ b/crates/router/src/types/api.rs
@@ -329,6 +329,9 @@ impl ConnectorData {
                 enums::Connector::Bankofamerica => {
                     Ok(ConnectorEnum::Old(Box::new(&connector::Bankofamerica)))
                 }
+                // enums::Connector::Barclaycard => {
+                //     Ok(ConnectorEnum::Old(Box::new(connector::Barclaycard)))
+                // }
                 enums::Connector::Billwerk => {
                     Ok(ConnectorEnum::Old(Box::new(connector::Billwerk::new())))
                 }
diff --git a/crates/router/src/types/transformers.rs b/crates/router/src/types/transformers.rs
index ebdb0bfe1cd..e40456b7d98 100644
--- a/crates/router/src/types/transformers.rs
+++ b/crates/router/src/types/transformers.rs
@@ -219,6 +219,7 @@ impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors {
             api_enums::Connector::Bambora => Self::Bambora,
             api_enums::Connector::Bamboraapac => Self::Bamboraapac,
             api_enums::Connector::Bankofamerica => Self::Bankofamerica,
+            // api_enums::Connector::Barclaycard => Self::Barclaycard,
             api_enums::Connector::Billwerk => Self::Billwerk,
             api_enums::Connector::Bitpay => Self::Bitpay,
             api_enums::Connector::Bluesnap => Self::Bluesnap,
diff --git a/crates/router/tests/connectors/barclaycard.rs b/crates/router/tests/connectors/barclaycard.rs
new file mode 100644
index 00000000000..2087131c4e6
--- /dev/null
+++ b/crates/router/tests/connectors/barclaycard.rs
@@ -0,0 +1,420 @@
+use masking::Secret;
+use router::types::{self, api, domain, storage::enums};
+use test_utils::connector_auth;
+
+use crate::utils::{self, ConnectorActions};
+
+#[derive(Clone, Copy)]
+struct BarclaycardTest;
+impl ConnectorActions for BarclaycardTest {}
+impl utils::Connector for BarclaycardTest {
+    fn get_data(&self) -> api::ConnectorData {
+        use router::connector::Barclaycard;
+        utils::construct_connector_data_old(
+            Box::new(Barclaycard::new()),
+            types::Connector::DummyConnector1,
+            api::GetToken::Connector,
+            None,
+        )
+    }
+
+    fn get_auth_token(&self) -> types::ConnectorAuthType {
+        utils::to_connector_auth_type(
+            connector_auth::ConnectorAuthentication::new()
+                .barclaycard
+                .expect("Missing connector authentication configuration")
+                .into(),
+        )
+    }
+
+    fn get_name(&self) -> String {
+        "barclaycard".to_string()
+    }
+}
+
+static CONNECTOR: BarclaycardTest = BarclaycardTest {};
+
+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: domain::PaymentMethodData::Card(domain::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: domain::PaymentMethodData::Card(domain::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: domain::PaymentMethodData::Card(domain::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 144f464b9db..2726363635e 100644
--- a/crates/router/tests/connectors/main.rs
+++ b/crates/router/tests/connectors/main.rs
@@ -16,6 +16,7 @@ mod bambora;
 mod bamboraapac;
 #[cfg(feature = "dummy_connector")]
 mod bankofamerica;
+mod barclaycard;
 #[cfg(feature = "dummy_connector")]
 mod billwerk;
 mod bitpay;
diff --git a/crates/router/tests/connectors/sample_auth.toml b/crates/router/tests/connectors/sample_auth.toml
index 05a6060e8cb..7d208c5464e 100644
--- a/crates/router/tests/connectors/sample_auth.toml
+++ b/crates/router/tests/connectors/sample_auth.toml
@@ -329,4 +329,9 @@ api_key= "API Key"
 api_key = "API Key"
 
 [recurly]
-api_key= "API Key"
\ No newline at end of file
+api_key= "API Key"
+
+[barclaycard]
+api_key = "MyApiKey"
+key1 = "Merchant id"
+api_secret = "Secret key"
\ No newline at end of file
diff --git a/crates/test_utils/src/connector_auth.rs b/crates/test_utils/src/connector_auth.rs
index 9b0a393fd8a..b9873776e09 100644
--- a/crates/test_utils/src/connector_auth.rs
+++ b/crates/test_utils/src/connector_auth.rs
@@ -23,6 +23,7 @@ pub struct ConnectorAuthentication {
     pub bambora: Option<BodyKey>,
     pub bamboraapac: Option<HeaderKey>,
     pub bankofamerica: Option<SignatureKey>,
+    pub barclaycard: Option<SignatureKey>,
     pub billwerk: Option<HeaderKey>,
     pub bitpay: Option<HeaderKey>,
     pub bluesnap: Option<BodyKey>,
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index d682b5c3f8a..8ccb694a386 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -86,6 +86,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api"
 bambora.base_url = "https://api.na.bambora.com"
 bamboraapac.base_url = "https://demo.ippayments.com.au/interface/api"
 bankofamerica.base_url = "https://apitest.merchant-services.bankofamerica.com/"
+barclaycard.base_url = "https://api.smartpayfuse-test.barclaycard/pts/v2/"
 billwerk.base_url = "https://api.reepay.com/"
 billwerk.secondary_base_url = "https://card.reepay.com/"
 bitpay.base_url = "https://test.bitpay.com"
@@ -209,6 +210,7 @@ cards = [
     "bambora",
     "bamboraapac",
     "bankofamerica",
+    "barclaycard",
     "billwerk",
     "bitpay",
     "bluesnap",
diff --git a/scripts/add_connector.sh b/scripts/add_connector.sh
index 3023c2e541e..bf27a84958c 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 airwallex amazonpay applepay archipel authorizedotnet bambora bamboraapac bankofamerica billwerk bitpay bluesnap boku braintree cashtocode chargebee checkout coinbase cryptopay ctp_visa cybersource datatrans deutschebank digitalvirgo dlocal dummyconnector ebanx elavon facilitapay fiserv fiservemea fiuu forte getnet globalpay globepay gocardless gpayments helcim hipay iatapay inespay itaubank jpmorgan juspaythreedsserver klarna mifinity mollie moneris multisafepay netcetera nexinets nexixpay nomupay noon novalnet nuvei opayo opennode paybox payeezy payme payone paypal paystack payu placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys shift4 square stax stripe stripebilling taxjar threedsecureio thunes trustpay tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpayxml xendit zsl "$1")
+    connectors=(aci adyen adyenplatform airwallex amazonpay applepay archipel authorizedotnet bambora bamboraapac bankofamerica barclaycard billwerk bitpay bluesnap boku braintree cashtocode chargebee checkout coinbase cryptopay ctp_visa cybersource datatrans deutschebank digitalvirgo dlocal dummyconnector ebanx elavon facilitapay fiserv fiservemea fiuu forte getnet globalpay globepay gocardless gpayments helcim hipay iatapay inespay itaubank jpmorgan juspaythreedsserver klarna mifinity mollie moneris multisafepay netcetera nexinets nexixpay nomupay noon novalnet nuvei opayo opennode paybox payeezy payme payone paypal paystack payu placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys shift4 square stax stripe stripebilling taxjar threedsecureio thunes trustpay tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpayxml xendit zsl "$1")
     IFS=$'\n' sorted=($(sort <<<"${connectors[*]}")); unset IFS
     res="$(echo ${sorted[@]})"
     sed -i'' -e "s/^    connectors=.*/    connectors=($res \"\$1\")/" $self.tmp

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

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

Closes this [issue](https://github.com/juspay/hyperswitch/issues/8015)

## Description
<!-- Describe your changes in detail -->
added barclaycard template code

### 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).
-->
Added template code for barclaycard
Docs Link: [https://developer.smartpayfuse.barclaycard/api-reference-assets/index.html](https://developer.smartpayfuse.barclaycard/api-reference-assets/index.html)

## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Only template PR hence no testing required

## 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
