Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

feat(connector): [Interpayments] Implement UCS based default implementation (#12212)

Swangi Kumaricd6f0155cc73
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 9ce80bc8e4..414f944730 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -16257,6 +16257,7 @@
"helcim",
"hyperpg",
"hyperswitch_vault",
+ "interpayments",
"inespay",
"iatapay",
"imerchantsolutions",
@@ -16583,6 +16584,7 @@
"payment_method_auth",
"authentication_processor",
"tax_processor",
+ "surcharge_processor",
"billing_processor",
"vault_processor"
]
@@ -22527,6 +22529,7 @@
"authentication_provider",
"fraud_and_risk_management_provider",
"tax_calculation_provider",
+ "surcharge_calculation_provider",
"revenue_growth_management_platform"
]
},
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index e633f17068..2a0cf8a187 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -11113,6 +11113,7 @@
"helcim",
"hyperpg",
"hyperswitch_vault",
+ "interpayments",
"inespay",
"iatapay",
"imerchantsolutions",
@@ -11458,6 +11459,7 @@
"payment_method_auth",
"authentication_processor",
"tax_processor",
+ "surcharge_processor",
"billing_processor",
"vault_processor"
]
@@ -16170,6 +16172,7 @@
"authentication_provider",
"fraud_and_risk_management_provider",
"tax_calculation_provider",
+ "surcharge_calculation_provider",
"revenue_growth_management_platform"
]
},
diff --git a/config/config.example.toml b/config/config.example.toml
index 05523f5fe1..d3a32aa329 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -267,6 +267,7 @@ hipay.third_base_url = "https://stage-api-gateway.hipay.com/"
iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
@@ -1335,7 +1336,7 @@ url = "http://localhost:8080" # Open Router URL
[grpc_client.unified_connector_service]
base_url = "http://localhost:8000" # Unified Connector Service Base URL
connection_timeout = 10 # Connection Timeout Duration in Seconds
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam, interpayments" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
[grpc_client.recovery_decider_client] # Revenue recovery client base url
diff --git a/config/deployments/env_specific.toml b/config/deployments/env_specific.toml
index 0bee6e69a7..15ec4ab8a5 100644
--- a/config/deployments/env_specific.toml
+++ b/config/deployments/env_specific.toml
@@ -406,7 +406,7 @@ connector_names = "connector_names" # Comma-separated list of allowed connec
[grpc_client.unified_connector_service]
base_url = "http://localhost:8000" # Unified Connector Service Base URL
connection_timeout = 10 # Connection Timeout Duration in Seconds
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam, interpayments" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
[revenue_recovery]
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index 3c05211e7e..293d6044fb 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -91,6 +91,7 @@ hyperwallet.base_url = "https://uat-api.paylution.com"
iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
@@ -1017,7 +1018,7 @@ connector_list = "juspaythreedsserver, ctp_mastercard, ctp_visa"
connector_list = "worldpayvantiv"
[grpc_client.unified_connector_service]
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam, interpayments" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
# Merchant Advice Code Configuration
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index 7010da9009..41e244b5d9 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -94,6 +94,7 @@ hyperwallet.base_url = "https://uat-api.paylution.com"
iatapay.base_url = "https://iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://secure.api.itau/"
jpmorgan.base_url = "https://api-ms.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
@@ -1025,7 +1026,7 @@ click_to_pay = {connector_list = "adyen, cybersource, trustpay"}
connector_list = "juspaythreedsserver, ctp_mastercard, ctp_visa"
[grpc_client.unified_connector_service]
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam, interpayments" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
# Merchant Advice Code Configuration
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index 32251ca821..1e86409b14 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -94,6 +94,7 @@ hyperwallet.base_url = "https://uat-api.paylution.com"
iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
@@ -1036,7 +1037,7 @@ connector_list = "juspaythreedsserver, ctp_mastercard, ctp_visa"
connector_list = "worldpayvantiv"
[grpc_client.unified_connector_service]
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam, interpayments" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
# Merchant Advice Code Configuration
diff --git a/config/development.toml b/config/development.toml
index 0ab9025c57..0cc95697c8 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -297,6 +297,7 @@ hipay.third_base_url = "https://stage-api-gateway.hipay.com/"
iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
@@ -1473,7 +1474,7 @@ enabled = "true"
[grpc_client.unified_connector_service]
base_url = "http://localhost:8000"
connection_timeout = 10
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, sanlam, interpayments" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
[revenue_recovery]
diff --git a/config/docker_compose.toml b/config/docker_compose.toml
index a7e36b11f0..eefcd9eb6b 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -197,6 +197,7 @@ hipay.third_base_url = "https://stage-api-gateway.hipay.com/"
iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rs
index 1deab67296..fba434e3e3 100644
--- a/crates/api_models/src/enums.rs
+++ b/crates/api_models/src/enums.rs
@@ -209,6 +209,29 @@ pub enum TaxConnectors {
Taxjar,
}
+#[derive(
+ Clone,
+ Copy,
+ Debug,
+ Eq,
+ Hash,
+ PartialEq,
+ serde::Serialize,
+ serde::Deserialize,
+ strum::Display,
+ strum::EnumString,
+ ToSchema,
+)]
+#[serde(rename_all = "snake_case")]
+#[strum(serialize_all = "snake_case")]
+pub enum SurchargeConnectors {
+ Interpayments,
+}
+
+pub fn convert_surcharge_connector(connector_name: &str) -> Option<SurchargeConnectors> {
+ SurchargeConnectors::from_str(connector_name).ok()
+}
+
#[derive(Clone, Debug, serde::Serialize, strum::EnumString, Eq, PartialEq)]
#[serde(rename_all = "snake_case")]
pub enum BillingConnectors {
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rs
index aee781b4a5..348a609134 100644
--- a/crates/common_enums/src/connector_enums.rs
+++ b/crates/common_enums/src/connector_enums.rs
@@ -123,6 +123,7 @@ pub enum Connector {
Hyperpg,
HyperswitchVault,
// Hyperwallet, added as template code for future usage
+ Interpayments,
Inespay,
Iatapay,
Imerchantsolutions,
@@ -400,6 +401,7 @@ impl Connector {
| Self::Stax
| Self::Stripebilling
| Self::Taxjar
+ | Self::Interpayments
| Self::Tesouro
// | Self::Thunes
| Self::Truelayer
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs
index 31109e17a8..bc833d8c34 100644
--- a/crates/common_enums/src/enums.rs
+++ b/crates/common_enums/src/enums.rs
@@ -782,6 +782,8 @@ pub enum ConnectorType {
AuthenticationProcessor,
/// Tax Calculation Processor
TaxProcessor,
+ /// Surcharge Calculation Processor
+ SurchargeProcessor,
/// Represents billing processors that handle subscription management, invoicing,
/// and recurring payments. Examples include Chargebee, Recurly, and Stripe Billing.
BillingProcessor,
@@ -10472,6 +10474,7 @@ pub enum HyperswitchConnectorCategory {
AuthenticationProvider,
FraudAndRiskManagementProvider,
TaxCalculationProvider,
+ SurchargeCalculationProvider,
RevenueGrowthManagementPlatform,
}
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index fa1711355b..a42a4df71e 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -4,7 +4,8 @@ use std::collections::HashMap;
use api_models::enums::PayoutConnectors;
use api_models::{
enums::{
- AuthenticationConnectors, BillingConnectors, Connector, PmAuthConnectors, TaxConnectors,
+ AuthenticationConnectors, BillingConnectors, Connector, PmAuthConnectors,
+ SurchargeConnectors, TaxConnectors,
},
payments,
};
@@ -320,6 +321,7 @@ pub struct ConnectorConfig {
pub hyperswitch_vault: Option<ConnectorTomlConfig>,
pub hyperwallet: Option<ConnectorTomlConfig>,
pub inespay: Option<ConnectorTomlConfig>,
+ pub interpayments: Option<ConnectorTomlConfig>,
pub jpmorgan: Option<ConnectorTomlConfig>,
pub klarna: Option<ConnectorTomlConfig>,
pub loonio: Option<ConnectorTomlConfig>,
@@ -502,6 +504,15 @@ impl ConnectorConfig {
}
}
+ pub fn get_surcharge_processor_config(
+ connector: SurchargeConnectors,
+ ) -> Result<Option<ConnectorTomlConfig>, String> {
+ let connector_data = Self::new()?;
+ match connector {
+ SurchargeConnectors::Interpayments => Ok(connector_data.interpayments),
+ }
+ }
+
pub fn get_pm_authentication_processor_config(
connector: PmAuthConnectors,
) -> Result<Option<ConnectorTomlConfig>, String> {
@@ -635,6 +646,7 @@ impl ConnectorConfig {
Connector::Trustpayments => Ok(connector_data.trustpayments),
Connector::Threedsecureio => Ok(connector_data.threedsecureio),
Connector::Taxjar => Ok(connector_data.taxjar),
+ Connector::Interpayments => Ok(connector_data.interpayments),
Connector::Tsys => Ok(connector_data.tsys),
Connector::Vgs => Ok(connector_data.vgs),
Connector::Volt => Ok(connector_data.volt),
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index 84190eb583..bfc20d34b4 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -8565,4 +8565,7 @@ key1 = "Merchant Id"
[[sanlam.bank_debit]]
payment_method_type = "eft_debit_order"
[sanlam.connector_webhook_details]
-merchant_secret="Source verification key"
\ No newline at end of file
+merchant_secret="Source verification key"
+[interpayments]
+[interpayments.connector_auth.HeaderKey]
+api_key = "API Key"
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index c1984e0078..b0c1c916b9 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -7621,4 +7621,7 @@ key1 = "Merchant Id"
[[sanlam.bank_debit]]
payment_method_type = "eft_debit_order"
[sanlam.connector_webhook_details]
-merchant_secret="Source verification key"
\ No newline at end of file
+merchant_secret="Source verification key"
+[interpayments]
+[interpayments.connector_auth.HeaderKey]
+api_key = "API Key"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index 9f7fd9b792..18cbd07bf7 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -8538,4 +8538,7 @@ key1 = "Merchant Id"
[[sanlam.bank_debit]]
payment_method_type = "eft_debit_order"
[sanlam.connector_webhook_details]
-merchant_secret="Source verification key"
\ No newline at end of file
+merchant_secret="Source verification key"
+[interpayments]
+[interpayments.connector_auth.HeaderKey]
+api_key = "API Key"
diff --git a/crates/euclid/src/enums.rs b/crates/euclid/src/enums.rs
index 8fd2b4fe16..07e0d58078 100644
--- a/crates/euclid/src/enums.rs
+++ b/crates/euclid/src/enums.rs
@@ -522,6 +522,7 @@ impl TryFrom<Connector> for RoutableConnectors {
| Connector::Juspaythreedsserver
| Connector::Netcetera
| Connector::Taxjar
+ | Connector::Interpayments
| Connector::Threedsecureio
| Connector::Vgs
| Connector::CtpVisa
diff --git a/crates/euclid_wasm/src/lib.rs b/crates/euclid_wasm/src/lib.rs
index cab1cd1393..6fd14d6629 100644
--- a/crates/euclid_wasm/src/lib.rs
+++ b/crates/euclid_wasm/src/lib.rs
@@ -452,6 +452,14 @@ pub fn get_tax_processor_config(key: &str) -> JsResult {
Ok(serde_wasm_bindgen::to_value(&res)?)
}
+#[wasm_bindgen(js_name = getSurchargeProcessorConfig)]
+pub fn get_surcharge_processor_config(key: &str) -> JsResult {
+ let key = api_model_enums::SurchargeConnectors::from_str(key)
+ .map_err(|_| "Invalid key received".to_string())?;
+ let res = connector::ConnectorConfig::get_surcharge_processor_config(key)?;
+ Ok(serde_wasm_bindgen::to_value(&res)?)
+}
+
#[wasm_bindgen(js_name = getPMAuthenticationProcessorConfig)]
pub fn get_pm_authentication_processor_config(key: &str) -> JsResult {
let key: api_model_enums::PmAuthConnectors = api_model_enums::PmAuthConnectors::from_str(key)
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs
index 1fee27c3d1..04e645496f 100644
--- a/crates/hyperswitch_connectors/src/connectors.rs
+++ b/crates/hyperswitch_connectors/src/connectors.rs
@@ -63,6 +63,7 @@ pub mod hyperwallet;
pub mod iatapay;
pub mod imerchantsolutions;
pub mod inespay;
+pub mod interpayments;
pub mod itaubank;
pub mod jpmorgan;
pub mod juspaythreedsserver;
@@ -164,22 +165,22 @@ pub use self::{
flexiti::Flexiti, forte::Forte, getnet::Getnet, gigadat::Gigadat, globalpay::Globalpay,
globepay::Globepay, gocardless::Gocardless, gpayments::Gpayments, helcim::Helcim, hipay::Hipay,
hyperpg::Hyperpg, hyperswitch_vault::HyperswitchVault, hyperwallet::Hyperwallet,
- iatapay::Iatapay, imerchantsolutions::Imerchantsolutions, inespay::Inespay, itaubank::Itaubank,
- jpmorgan::Jpmorgan, juspaythreedsserver::Juspaythreedsserver, katapult::Katapult,
- 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,
- payjustnow::Payjustnow, payjustnowinstore::Payjustnowinstore, 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, revolv3::Revolv3, riskified::Riskified, sanlam::Sanlam,
- santander::Santander, shift4::Shift4, sift::Sift, signifyd::Signifyd, silverflow::Silverflow,
- square::Square, stax::Stax, stripe::Stripe, stripebilling::Stripebilling, taxjar::Taxjar,
- tesouro::Tesouro, threedsecureio::Threedsecureio, thunes::Thunes, tokenex::Tokenex,
- tokenio::Tokenio, truelayer::Truelayer, trustly::Trustly, trustpay::Trustpay,
- trustpayments::Trustpayments, tsys::Tsys,
+ iatapay::Iatapay, imerchantsolutions::Imerchantsolutions, inespay::Inespay,
+ interpayments::Interpayments, itaubank::Itaubank, jpmorgan::Jpmorgan,
+ juspaythreedsserver::Juspaythreedsserver, katapult::Katapult, 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, payjustnow::Payjustnow, payjustnowinstore::Payjustnowinstore,
+ 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, revolv3::Revolv3,
+ riskified::Riskified, sanlam::Sanlam, santander::Santander, shift4::Shift4, sift::Sift,
+ signifyd::Signifyd, silverflow::Silverflow, square::Square, stax::Stax, stripe::Stripe,
+ stripebilling::Stripebilling, taxjar::Taxjar, tesouro::Tesouro, threedsecureio::Threedsecureio,
+ thunes::Thunes, tokenex::Tokenex, tokenio::Tokenio, truelayer::Truelayer, trustly::Trustly,
+ trustpay::Trustpay, trustpayments::Trustpayments, tsys::Tsys,
unified_authentication_service::UnifiedAuthenticationService, vgs::Vgs, volt::Volt,
wellsfargo::Wellsfargo, wellsfargopayout::Wellsfargopayout, wise::Wise, worldline::Worldline,
worldpay::Worldpay, worldpaymodular::Worldpaymodular, worldpayvantiv::Worldpayvantiv,
diff --git a/crates/hyperswitch_connectors/src/connectors/interpayments.rs b/crates/hyperswitch_connectors/src/connectors/interpayments.rs
new file mode 100644
index 0000000000..145f52888f
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/interpayments.rs
@@ -0,0 +1,215 @@
+pub mod transformers;
+
+use common_utils::{errors::CustomResult, ext_traits::BytesExt};
+use error_stack::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::{
+ ConnectorInfo, PaymentsResponseData, RefundsResponseData, SupportedPaymentMethods,
+ },
+};
+use hyperswitch_interfaces::{
+ api::{
+ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
+ ConnectorValidation,
+ },
+ configs::Connectors,
+ errors,
+ events::connector_api_logs::ConnectorEvent,
+ types::Response,
+ webhooks,
+};
+use hyperswitch_masking::{ExposeInterface, Mask};
+use transformers as interpayments;
+
+use crate::constants::headers;
+
+#[derive(Clone)]
+pub struct Interpayments;
+
+impl Interpayments {
+ pub fn new() -> &'static Self {
+ &Self
+ }
+}
+
+impl api::Payment for Interpayments {}
+impl api::PaymentSession for Interpayments {}
+impl api::ConnectorAccessToken for Interpayments {}
+impl api::MandateSetup for Interpayments {}
+impl api::PaymentAuthorize for Interpayments {}
+impl api::PaymentSync for Interpayments {}
+impl api::PaymentCapture for Interpayments {}
+impl api::PaymentVoid for Interpayments {}
+impl api::PaymentToken for Interpayments {}
+impl api::Refund for Interpayments {}
+impl api::RefundExecute for Interpayments {}
+impl api::RefundSync for Interpayments {}
+
+impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
+ for Interpayments
+{
+ // Not Implemented (R)
+}
+
+impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for Interpayments
+where
+ Self: ConnectorIntegration<Flow, Request, Response>,
+{
+ fn build_headers(
+ &self,
+ req: &RouterData<Flow, Request, Response>,
+ _connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, hyperswitch_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 Interpayments {
+ fn id(&self) -> &'static str {
+ "interpayments"
+ }
+
+ 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.interpayments.base_url.as_ref()
+ }
+
+ fn get_auth_header(
+ &self,
+ auth_type: &ConnectorAuthType,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ let auth = interpayments::InterpaymentsAuthType::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: interpayments::InterpaymentsErrorResponse = res
+ .response
+ .parse_struct("Interpayments ErrorResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+
+ event_builder.map(|i| i.set_error_response_body(&response));
+
+ Ok(ErrorResponse {
+ status_code: res.status_code,
+ code: response.code,
+ message: response.message,
+ reason: response.reason,
+ attempt_status: None,
+ connector_transaction_id: None,
+ connector_response_reference_id: None,
+ network_advice_code: None,
+ network_decline_code: None,
+ network_error_message: None,
+ connector_metadata: None,
+ })
+ }
+}
+
+impl ConnectorValidation for Interpayments {}
+
+impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData>
+ for Interpayments
+{
+ // Not Implemented (R)
+}
+
+impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Interpayments {
+ // Not Implemented (R)
+}
+
+impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Interpayments {}
+
+impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData>
+ for Interpayments
+{
+}
+
+impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Interpayments {}
+
+impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Interpayments {}
+
+impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Interpayments {}
+
+impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Interpayments {}
+
+impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Interpayments {}
+
+impl webhooks::IncomingWebhook for Interpayments {
+ fn get_webhook_object_reference_id(
+ &self,
+ _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+ ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
+ Err(error_stack::report!(
+ errors::ConnectorError::WebhooksNotImplemented
+ ))
+ }
+
+ fn get_webhook_event_type(
+ &self,
+ _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+ _context: Option<&webhooks::WebhookContext>,
+ ) -> CustomResult<api_models::webhooks::IncomingWebhookEvent, errors::ConnectorError> {
+ Err(error_stack::report!(
+ errors::ConnectorError::WebhooksNotImplemented
+ ))
+ }
+
+ fn get_webhook_resource_object(
+ &self,
+ _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+ ) -> CustomResult<Box<dyn hyperswitch_masking::ErasedMaskSerialize>, errors::ConnectorError>
+ {
+ Err(error_stack::report!(
+ errors::ConnectorError::WebhooksNotImplemented
+ ))
+ }
+}
+
+impl ConnectorSpecifications for Interpayments {
+ fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
+ None
+ }
+
+ fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
+ None
+ }
+
+ fn get_supported_webhook_flows(&self) -> Option<&'static [common_enums::EventClass]> {
+ None
+ }
+}
diff --git a/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs b/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs
new file mode 100644
index 0000000000..3682def389
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/interpayments/transformers.rs
@@ -0,0 +1,224 @@
+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 hyperswitch_masking::Secret;
+use serde::{Deserialize, Serialize};
+
+use crate::types::{RefundsResponseRouterData, ResponseRouterData};
+
+//TODO: Fill the struct with respective fields
+pub struct InterpaymentsRouterData<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 InterpaymentsRouterData<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 InterpaymentsPaymentsRequest {
+ amount: StringMinorUnit,
+ card: InterpaymentsCard,
+}
+
+#[derive(Default, Debug, Serialize, Eq, PartialEq)]
+pub struct InterpaymentsCard {
+ number: cards::CardNumber,
+ expiry_month: Secret<String>,
+ expiry_year: Secret<String>,
+ cvc: Secret<String>,
+ complete: bool,
+}
+
+impl TryFrom<&InterpaymentsRouterData<&PaymentsAuthorizeRouterData>>
+ for InterpaymentsPaymentsRequest
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: &InterpaymentsRouterData<&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 InterpaymentsAuthType {
+ pub(super) api_key: Secret<String>,
+}
+
+impl TryFrom<&ConnectorAuthType> for InterpaymentsAuthType {
+ 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 InterpaymentsPaymentStatus {
+ Succeeded,
+ Failed,
+ #[default]
+ Processing,
+}
+
+impl From<InterpaymentsPaymentStatus> for common_enums::AttemptStatus {
+ fn from(item: InterpaymentsPaymentStatus) -> Self {
+ match item {
+ InterpaymentsPaymentStatus::Succeeded => Self::Charged,
+ InterpaymentsPaymentStatus::Failed => Self::Failure,
+ InterpaymentsPaymentStatus::Processing => Self::Authorizing,
+ }
+ }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
+pub struct InterpaymentsPaymentsResponse {
+ status: InterpaymentsPaymentStatus,
+ id: String,
+}
+
+impl<F, T> TryFrom<ResponseRouterData<F, InterpaymentsPaymentsResponse, T, PaymentsResponseData>>
+ for RouterData<F, T, PaymentsResponseData>
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: ResponseRouterData<F, InterpaymentsPaymentsResponse, 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,
+ authentication_data: None,
+ charges: None,
+ }),
+ ..item.data
+ })
+ }
+}
+
+//TODO: Fill the struct with respective fields
+// REFUND :
+// Type definition for RefundRequest
+#[derive(Default, Debug, Serialize)]
+pub struct InterpaymentsRefundRequest {
+ pub amount: StringMinorUnit,
+}
+
+impl<F> TryFrom<&InterpaymentsRouterData<&RefundsRouterData<F>>> for InterpaymentsRefundRequest {
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: &InterpaymentsRouterData<&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 InterpaymentsErrorResponse {
+ 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 235b18f588..3327a6d824 100644
--- a/crates/hyperswitch_connectors/src/default_implementations.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations.rs
@@ -249,6 +249,7 @@ default_imp_for_authorize_session_token!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -408,6 +409,7 @@ default_imp_for_payment_settlement_split_create!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -569,6 +571,7 @@ default_imp_for_calculate_tax!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -722,6 +725,7 @@ default_imp_for_session_update!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -883,6 +887,7 @@ default_imp_for_post_session_tokens!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1041,6 +1046,7 @@ default_imp_for_create_order!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1199,6 +1205,7 @@ default_imp_for_update_metadata!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1369,6 +1376,7 @@ default_imp_for_cancel_post_capture!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1532,6 +1540,7 @@ default_imp_for_complete_authorize!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1676,6 +1685,7 @@ default_imp_for_incremental_authorization!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1823,6 +1833,7 @@ default_imp_for_extend_authorization!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1987,6 +1998,7 @@ default_imp_for_create_customer!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2141,6 +2153,7 @@ default_imp_for_connector_redirect_response!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2286,6 +2299,7 @@ default_imp_for_pre_authenticate_steps!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2441,6 +2455,7 @@ default_imp_for_authenticate_steps!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2599,6 +2614,7 @@ default_imp_for_post_authenticate_steps!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2760,6 +2776,7 @@ default_imp_for_pre_processing_steps!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2907,6 +2924,7 @@ default_imp_for_post_processing_steps!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3069,6 +3087,7 @@ default_imp_for_approve!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3232,6 +3251,7 @@ default_imp_for_reject!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3397,6 +3417,7 @@ default_imp_for_webhook_source_verification!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3555,6 +3576,7 @@ default_imp_for_accept_dispute!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3715,6 +3737,7 @@ default_imp_for_submit_evidence!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3873,6 +3896,7 @@ default_imp_for_defend_dispute!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4036,6 +4060,7 @@ default_imp_for_fetch_disputes!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4198,6 +4223,7 @@ default_imp_for_dispute_sync!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4368,6 +4394,7 @@ default_imp_for_file_upload!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4518,6 +4545,7 @@ default_imp_for_payouts!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4666,6 +4694,7 @@ default_imp_for_payouts_create!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4826,6 +4855,7 @@ default_imp_for_payouts_retrieve!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4982,6 +5012,7 @@ default_imp_for_payouts_eligibility!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5141,6 +5172,7 @@ default_imp_for_payouts_fulfill!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5292,6 +5324,7 @@ default_imp_for_payouts_cancel!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5451,6 +5484,7 @@ default_imp_for_payouts_quote!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5613,6 +5647,7 @@ default_imp_for_payouts_recipient!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5774,6 +5809,7 @@ default_imp_for_payouts_recipient_account!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5937,6 +5973,7 @@ default_imp_for_frm_sale!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -6099,6 +6136,7 @@ default_imp_for_frm_checkout!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -6261,6 +6299,7 @@ default_imp_for_frm_transaction!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -6424,6 +6463,7 @@ default_imp_for_frm_fulfillment!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -6587,6 +6627,7 @@ default_imp_for_frm_record_return!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -6745,6 +6786,7 @@ default_imp_for_revoking_mandates!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -6906,6 +6948,7 @@ default_imp_for_uas_pre_authentication!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Katapult,
@@ -7066,6 +7109,7 @@ default_imp_for_uas_webhook!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Katapult,
@@ -7226,6 +7270,7 @@ default_imp_for_uas_post_authentication!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Katapult,
@@ -7387,6 +7432,7 @@ default_imp_for_uas_authentication_confirmation!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Katapult,
@@ -7539,6 +7585,7 @@ default_imp_for_connector_request_id!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -7694,6 +7741,7 @@ default_imp_for_fraud_check!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -7878,6 +7926,7 @@ default_imp_for_connector_authentication!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -8037,6 +8086,7 @@ default_imp_for_uas_authentication!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Katapult,
@@ -8190,6 +8240,7 @@ default_imp_for_revenue_recovery!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -8403,6 +8454,7 @@ default_imp_for_subscriptions!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -8566,6 +8618,7 @@ default_imp_for_billing_connector_payment_sync!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -8721,6 +8774,7 @@ default_imp_for_revenue_recovery_record_back!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -8883,6 +8937,7 @@ default_imp_for_billing_connector_invoice_sync!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -9039,6 +9094,7 @@ default_imp_for_external_vault!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -9200,6 +9256,7 @@ default_imp_for_external_vault_insert!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -9358,6 +9415,7 @@ default_imp_for_gift_card_balance_check!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -9521,6 +9579,7 @@ default_imp_for_external_vault_retrieve!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -9682,6 +9741,7 @@ default_imp_for_external_vault_delete!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -9844,6 +9904,7 @@ default_imp_for_external_vault_create!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -10007,6 +10068,7 @@ default_imp_for_connector_authentication_token!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Juspaythreedsserver,
connectors::Jpmorgan,
@@ -10167,6 +10229,7 @@ default_imp_for_external_vault_proxy_payments_create!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -10331,6 +10394,7 @@ default_imp_for_connector_webhook_register!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -11261,6 +11325,7 @@ default_imp_for_generate_qr_flow!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -11423,6 +11488,7 @@ default_imp_for_push_notification_flow!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
diff --git a/crates/hyperswitch_connectors/src/default_implementations_v2.rs b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
index 78d4fc7a8d..cc2264ab8d 100644
--- a/crates/hyperswitch_connectors/src/default_implementations_v2.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
@@ -423,6 +423,7 @@ default_imp_for_new_connector_integration_payment!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -586,6 +587,7 @@ default_imp_for_new_connector_integration_refund!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -742,6 +744,7 @@ default_imp_for_new_connector_integration_connector_authentication_token!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -895,6 +898,7 @@ default_imp_for_new_connector_integration_connector_access_token!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1058,6 +1062,7 @@ default_imp_for_new_connector_integration_accept_dispute!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1221,6 +1226,7 @@ default_imp_for_new_connector_integration_fetch_disputes!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1385,6 +1391,7 @@ default_imp_for_new_connector_integration_dispute_sync!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1549,6 +1556,7 @@ default_imp_for_new_connector_integration_defend_dispute!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1711,6 +1719,7 @@ default_imp_for_new_connector_integration_submit_evidence!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -1884,6 +1893,7 @@ default_imp_for_new_connector_integration_file_upload!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2049,6 +2059,7 @@ default_imp_for_new_connector_integration_payouts_create!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2214,6 +2225,7 @@ default_imp_for_new_connector_integration_payouts_eligibility!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2379,6 +2391,7 @@ default_imp_for_new_connector_integration_payouts_fulfill!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2544,6 +2557,7 @@ default_imp_for_new_connector_integration_payouts_cancel!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2709,6 +2723,7 @@ default_imp_for_new_connector_integration_payouts_quote!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -2874,6 +2889,7 @@ default_imp_for_new_connector_integration_payouts_recipient!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3039,6 +3055,7 @@ default_imp_for_new_connector_integration_payouts_sync!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3204,6 +3221,7 @@ default_imp_for_new_connector_integration_payouts_recipient_account!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3367,6 +3385,7 @@ default_imp_for_new_connector_integration_webhook_source_verification!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3532,6 +3551,7 @@ default_imp_for_new_connector_integration_frm_sale!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3697,6 +3717,7 @@ default_imp_for_new_connector_integration_frm_checkout!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -3862,6 +3883,7 @@ default_imp_for_new_connector_integration_frm_transaction!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4027,6 +4049,7 @@ default_imp_for_new_connector_integration_frm_fulfillment!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4192,6 +4215,7 @@ default_imp_for_new_connector_integration_frm_record_return!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4355,6 +4379,7 @@ default_imp_for_new_connector_integration_revoking_mandates!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -4498,6 +4523,7 @@ default_imp_for_new_connector_integration_frm!(
connectors::HyperswitchVault,
connectors::Hyperwallet,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -4660,6 +4686,7 @@ default_imp_for_new_connector_integration_connector_authentication!(
connectors::HyperswitchVault,
connectors::Hyperwallet,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -4811,6 +4838,7 @@ default_imp_for_new_connector_integration_revenue_recovery!(
connectors::HyperswitchVault,
connectors::Hyperwallet,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
connectors::Katapult,
@@ -4984,6 +5012,7 @@ default_imp_for_new_connector_integration_external_vault!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5146,6 +5175,7 @@ default_imp_for_new_connector_integration_external_vault_proxy!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
@@ -5313,6 +5343,7 @@ default_imp_for_new_connector_integration_webhook_register!(
connectors::Iatapay,
connectors::Imerchantsolutions,
connectors::Inespay,
+ connectors::Interpayments,
connectors::Itaubank,
connectors::Jpmorgan,
connectors::Juspaythreedsserver,
diff --git a/crates/hyperswitch_domain_models/src/connector_endpoints.rs b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
index 2d4eece93d..208a498ba1 100644
--- a/crates/hyperswitch_domain_models/src/connector_endpoints.rs
+++ b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
@@ -77,6 +77,7 @@ pub struct Connectors {
pub iatapay: ConnectorParams,
pub imerchantsolutions: ConnectorParams,
pub inespay: ConnectorParams,
+ pub interpayments: ConnectorParams,
pub itaubank: ConnectorParams,
pub jpmorgan: ConnectorParams,
pub juspaythreedsserver: ConnectorParams,
diff --git a/crates/router/src/connector.rs b/crates/router/src/connector.rs
index 3bf8ecc019..3445f1cbbd 100644
--- a/crates/router/src/connector.rs
+++ b/crates/router/src/connector.rs
@@ -27,29 +27,29 @@ pub use hyperswitch_connectors::connectors::{
helcim, helcim::Helcim, hipay, hipay::Hipay, hyperpg, hyperpg::Hyperpg, hyperswitch_vault,
hyperswitch_vault::HyperswitchVault, hyperwallet, hyperwallet::Hyperwallet, iatapay,
iatapay::Iatapay, imerchantsolutions, imerchantsolutions::Imerchantsolutions, inespay,
- inespay::Inespay, itaubank, itaubank::Itaubank, jpmorgan, jpmorgan::Jpmorgan,
- juspaythreedsserver, juspaythreedsserver::Juspaythreedsserver, katapult, 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, payjustnow,
- payjustnow::Payjustnow, payjustnowinstore, payjustnowinstore::Payjustnowinstore, 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, revolv3, revolv3::Revolv3, riskified,
- riskified::Riskified, sanlam, sanlam::Sanlam, 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, truelayer, truelayer::Truelayer, trustly,
- trustly::Trustly, trustpay, trustpay::Trustpay, trustpayments, trustpayments::Trustpayments,
- tsys, tsys::Tsys, unified_authentication_service,
+ inespay::Inespay, interpayments, interpayments::Interpayments, itaubank, itaubank::Itaubank,
+ jpmorgan, jpmorgan::Jpmorgan, juspaythreedsserver, juspaythreedsserver::Juspaythreedsserver,
+ katapult, 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, payjustnow, payjustnow::Payjustnow, payjustnowinstore,
+ payjustnowinstore::Payjustnowinstore, 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, revolv3, revolv3::Revolv3, riskified, riskified::Riskified, sanlam,
+ sanlam::Sanlam, 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, truelayer,
+ truelayer::Truelayer, trustly, trustly::Trustly, 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, worldpaymodular,
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rs
index 1543897d92..0dfb934f28 100644
--- a/crates/router/src/core/admin.rs
+++ b/crates/router/src/core/admin.rs
@@ -1626,6 +1626,8 @@ impl ConnectorTypeAndConnectorName<'_> {
api_enums::convert_tax_connector(self.connector_name.to_string().as_str());
let billing_connector =
api_enums::convert_billing_connector(self.connector_name.to_string().as_str());
+ let surcharge_connector =
+ api_enums::convert_surcharge_connector(self.connector_name.to_string().as_str());
if pm_auth_connector.is_some() {
if self.connector_type != &api_enums::ConnectorType::PaymentMethodAuth
@@ -1664,6 +1666,13 @@ impl ConnectorTypeAndConnectorName<'_> {
}
.into());
}
+ } else if surcharge_connector.is_some() {
+ if self.connector_type != &api_enums::ConnectorType::SurchargeProcessor {
+ return Err(errors::ApiErrorResponse::InvalidRequestData {
+ message: "Invalid connector type given".to_string(),
+ }
+ .into());
+ }
} else {
let routable_connector_option = self
.connector_name
diff --git a/crates/router/src/core/connector_validation.rs b/crates/router/src/core/connector_validation.rs
index 01653a62e1..93a69502d2 100644
--- a/crates/router/src/core/connector_validation.rs
+++ b/crates/router/src/core/connector_validation.rs
@@ -530,6 +530,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
taxjar::transformers::TaxjarAuthType::try_from(self.auth_type)?;
Ok(())
}
+ api_enums::Connector::Interpayments => {
+ interpayments::transformers::InterpaymentsAuthType::try_from(self.auth_type)?;
+ Ok(())
+ }
api_enums::Connector::Stripe => {
stripe::transformers::StripeAuthType::try_from(self.auth_type)?;
Ok(())
diff --git a/crates/router/src/types/api.rs b/crates/router/src/types/api.rs
index 5dfc684041..8168c1bdf2 100644
--- a/crates/router/src/types/api.rs
+++ b/crates/router/src/types/api.rs
@@ -311,3 +311,32 @@ impl TaxCalculateConnectorData {
}
}
}
+
+#[derive(Clone)]
+pub struct SurchargeCalculateConnectorData {
+ pub connector: ConnectorEnum,
+ pub connector_name: enums::SurchargeConnectors,
+}
+
+impl SurchargeCalculateConnectorData {
+ pub fn get_connector_by_name(name: &str) -> CustomResult<Self, errors::ApiErrorResponse> {
+ let connector_name = enums::SurchargeConnectors::from_str(name)
+ .change_context(errors::ApiErrorResponse::IncorrectConnectorNameGiven)
+ .attach_printable_lazy(|| format!("unable to parse connector: {name}"))?;
+ let connector = Self::convert_connector(connector_name)?;
+ Ok(Self {
+ connector,
+ connector_name,
+ })
+ }
+
+ fn convert_connector(
+ connector_name: enums::SurchargeConnectors,
+ ) -> CustomResult<ConnectorEnum, errors::ApiErrorResponse> {
+ match connector_name {
+ enums::SurchargeConnectors::Interpayments => Ok(ConnectorEnum::Old(Box::new(
+ connector::Interpayments::new(),
+ ))),
+ }
+ }
+}
diff --git a/crates/router/src/types/api/connector_mapping.rs b/crates/router/src/types/api/connector_mapping.rs
index 63ed100358..3b92dcf5bd 100644
--- a/crates/router/src/types/api/connector_mapping.rs
+++ b/crates/router/src/types/api/connector_mapping.rs
@@ -512,7 +512,8 @@ impl ConnectorData {
| enums::Connector::Gpayments
| enums::Connector::Threedsecureio
| enums::Connector::Cardinal
- | enums::Connector::Taxjar => {
+ | enums::Connector::Taxjar
+ | enums::Connector::Interpayments => {
Err(report!(errors::ConnectorError::InvalidConnectorName)
.attach_printable(format!("invalid connector name: {connector_name}")))
.change_context(errors::ApiErrorResponse::InternalServerError)
diff --git a/crates/router/src/types/api/feature_matrix.rs b/crates/router/src/types/api/feature_matrix.rs
index 09ecd7b1eb..b2756b1d55 100644
--- a/crates/router/src/types/api/feature_matrix.rs
+++ b/crates/router/src/types/api/feature_matrix.rs
@@ -445,6 +445,9 @@ impl FeatureMatrixConnectorData {
enums::Connector::Taxjar => {
Ok(ConnectorEnum::Old(Box::new(connector::Taxjar::new())))
}
+ enums::Connector::Interpayments => Ok(ConnectorEnum::Old(Box::new(
+ connector::Interpayments::new(),
+ ))),
enums::Connector::Cardinal => {
Err(report!(errors::ConnectorError::InvalidConnectorName)
.attach_printable(format!("invalid connector name: {connector_name}")))
diff --git a/crates/router/src/types/connector_transformers.rs b/crates/router/src/types/connector_transformers.rs
index 09caa5bdff..ea61e0d17f 100644
--- a/crates/router/src/types/connector_transformers.rs
+++ b/crates/router/src/types/connector_transformers.rs
@@ -224,6 +224,11 @@ impl ForeignTryFrom<api_enums::Connector> for euclid::enums::RoutableConnectors
message: "Taxjar is not a routable connector".to_string(),
})?
}
+ api_enums::Connector::Interpayments => {
+ Err(common_utils::errors::ValidationError::InvalidValue {
+ message: "Interpayments is not a routable connector".to_string(),
+ })?
+ }
api_enums::Connector::Phonepe => Self::Phonepe,
api_enums::Connector::Paytm => Self::Paytm,
})
diff --git a/crates/router/tests/connectors/interpayments.rs b/crates/router/tests/connectors/interpayments.rs
new file mode 100644
index 0000000000..99a0e61d4b
--- /dev/null
+++ b/crates/router/tests/connectors/interpayments.rs
@@ -0,0 +1,421 @@
+use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
+use hyperswitch_masking::Secret;
+use router::types::{self, api, storage::enums};
+use test_utils::connector_auth;
+
+use crate::utils::{self, ConnectorActions};
+
+#[derive(Clone, Copy)]
+struct InterpaymentsTest;
+impl ConnectorActions for InterpaymentsTest {}
+impl utils::Connector for InterpaymentsTest {
+ fn get_data(&self) -> api::ConnectorData {
+ use router::connector::Interpayments;
+ utils::construct_connector_data_old(
+ Box::new(Interpayments::new()),
+ types::Connector::Plaid,
+ api::GetToken::Connector,
+ None,
+ )
+ }
+
+ fn get_auth_token(&self) -> types::ConnectorAuthType {
+ utils::to_connector_auth_type(
+ connector_auth::ConnectorAuthentication::new()
+ .interpayments
+ .expect("Missing connector authentication configuration")
+ .into(),
+ )
+ }
+
+ fn get_name(&self) -> String {
+ "interpayments".to_string()
+ }
+}
+
+static CONNECTOR: InterpaymentsTest = InterpaymentsTest {};
+
+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 9078fc293a..7267b356f4 100644
--- a/crates/router/tests/connectors/main.rs
+++ b/crates/router/tests/connectors/main.rs
@@ -66,6 +66,7 @@ mod hyperwallet;
mod iatapay;
mod imerchantsolutions;
mod inespay;
+mod interpayments;
mod itaubank;
mod jpmorgan;
mod juspaythreedsserver;
diff --git a/crates/test_utils/src/connector_auth.rs b/crates/test_utils/src/connector_auth.rs
index 4de8f5e27b..71b02e6158 100644
--- a/crates/test_utils/src/connector_auth.rs
+++ b/crates/test_utils/src/connector_auth.rs
@@ -76,6 +76,7 @@ pub struct ConnectorAuthentication {
pub iatapay: Option<SignatureKey>,
pub imerchantsolutions: Option<HeaderKey>,
pub inespay: Option<HeaderKey>,
+ pub interpayments: Option<HeaderKey>,
pub itaubank: Option<MultiAuthKey>,
pub jpmorgan: Option<BodyKey>,
pub juspaythreedsserver: Option<HeaderKey>,
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index 89323f5d2f..ee298d2d45 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -157,6 +157,7 @@ hipay.third_base_url = "https://stage-api-gateway.hipay.com/"
iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
imerchantsolutions.base_url = "https://imerchantsolutions.com/api"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
+interpayments.base_url = "https://api-test.interpayments.com/v1"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
diff --git a/scripts/add_connector.sh b/scripts/add_connector.sh
index 73e46eb2e2..7accd77005 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 bluesnap boku braintree breadpay calida cashtocode celero chargebee checkbook checkout coinbase cryptopay ctp_visa custombilling cybersource cybersourcedecisionmanager datatrans deutschebank digitalvirgo dlocal dummyconnector dwolla ebanx elavon envoy facilitapay finix fiserv fiservcommercehub fiservemea fiuu flexiti forte getnet gigadat globalpay globepay gocardless gpayments helcim hipay hyperpg hyperswitch_vault hyperwallet hyperwallet iatapay imerchantsolutions inespay itaubank jpmorgan juspaythreedsserver katapult klarna loonio mifinity mollie moneris mpgs multisafepay netcetera nexinets nexixpay nomupay noon nordea novalnet nuvei opayo opennode paybox payeezy payjustnow payjustnowinstore payload payme payone paypal paysafe paystack paytm payu peachpayments phonepe placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys revolv3 sanlam santander shift4 sift silverflow square stax stripe stripebilling taxjar tesouro threedsecureio thunes tokenex tokenio truelayer trustly trustpay trustpayments tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpaymodular worldpayvantiv worldpayxml xendit zift zsl "$1")
+ connectors=(aci adyen adyenplatform affirm airwallex amazonpay applepay archipel authipay authorizedotnet bambora bamboraapac bankofamerica barclaycard billwerk bitpay blackhawknetwork bluesnap boku braintree breadpay calida cashtocode celero chargebee checkbook checkout coinbase cryptopay ctp_visa custombilling cybersource cybersourcedecisionmanager datatrans deutschebank digitalvirgo dlocal dummyconnector dwolla ebanx elavon envoy facilitapay finix fiserv fiservcommercehub fiservemea fiuu flexiti forte getnet gigadat globalpay globepay gocardless gpayments helcim hipay hyperpg hyperswitch_vault hyperwallet hyperwallet iatapay imerchantsolutions inespay interpayments itaubank jpmorgan juspaythreedsserver katapult klarna loonio mifinity mollie moneris mpgs multisafepay netcetera nexinets nexixpay nomupay noon nordea novalnet nuvei opayo opennode paybox payeezy payjustnow payjustnowinstore payload payme payone paypal paysafe paystack paytm payu peachpayments phonepe placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys revolv3 sanlam santander shift4 sift silverflow square stax stripe stripebilling taxjar tesouro threedsecureio thunes tokenex tokenio truelayer trustly trustpay trustpayments tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpaymodular worldpayvantiv worldpayxml xendit zift zsl "$1")
IFS=$'\n' sorted=($(sort <<<"${connectors[*]}")); unset IFS