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): [SANTANDER] Implemented Refunds for PixAutomaticoPush & PixAutomaticoQr (#15251)

Sayak Bhattacharyaa8d042989e4c
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen.rs b/crates/hyperswitch_connectors/src/connectors/adyen.rs
index fbc183244b..eda57b15f3 100644
--- a/crates/hyperswitch_connectors/src/connectors/adyen.rs
+++ b/crates/hyperswitch_connectors/src/connectors/adyen.rs
@@ -3456,7 +3456,8 @@ impl ConnectorSpecifications for Adyen {
api::CurrentFlowInfo::Psync { .. } => false,
api::CurrentFlowInfo::UpdatePostConfirm { .. } => false,
api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
diff --git a/crates/hyperswitch_connectors/src/connectors/barclaycard.rs b/crates/hyperswitch_connectors/src/connectors/barclaycard.rs
index c1c9b09e41..4a664c97f8 100644
--- a/crates/hyperswitch_connectors/src/connectors/barclaycard.rs
+++ b/crates/hyperswitch_connectors/src/connectors/barclaycard.rs
@@ -1556,7 +1556,8 @@ impl ConnectorSpecifications for Barclaycard {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
/// Check if authentication flow is required
@@ -1581,7 +1582,8 @@ impl ConnectorSpecifications for Barclaycard {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
/// Check if post-authentication flow is required
@@ -1606,7 +1608,8 @@ impl ConnectorSpecifications for Barclaycard {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource.rs b/crates/hyperswitch_connectors/src/connectors/cybersource.rs
index c5fae7d0ff..57bf220474 100644
--- a/crates/hyperswitch_connectors/src/connectors/cybersource.rs
+++ b/crates/hyperswitch_connectors/src/connectors/cybersource.rs
@@ -2418,7 +2418,8 @@ impl ConnectorSpecifications for Cybersource {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => None,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => None,
}
}
fn get_alternate_flow_if_needed(
@@ -2443,7 +2444,8 @@ impl ConnectorSpecifications for Cybersource {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => None,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => None,
}
}
fn is_pre_authentication_flow_required(&self, current_flow: api::CurrentFlowInfo) -> bool {
@@ -2459,7 +2461,8 @@ impl ConnectorSpecifications for Cybersource {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
/// Check if authentication flow is required
@@ -2484,7 +2487,8 @@ impl ConnectorSpecifications for Cybersource {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
/// Check if post-authentication flow is required
@@ -2509,7 +2513,8 @@ impl ConnectorSpecifications for Cybersource {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/elavon_pg.rs b/crates/hyperswitch_connectors/src/connectors/elavon_pg.rs
index 8248b3bd4b..555de9f946 100644
--- a/crates/hyperswitch_connectors/src/connectors/elavon_pg.rs
+++ b/crates/hyperswitch_connectors/src/connectors/elavon_pg.rs
@@ -771,7 +771,8 @@ impl ConnectorSpecifications for ElavonPg {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -809,7 +810,8 @@ impl ConnectorSpecifications for ElavonPg {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs b/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs
index b35ffda84d..0e8550c660 100644
--- a/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs
+++ b/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs
@@ -737,7 +737,8 @@ impl ConnectorSpecifications for GlobalpaymentsRealex {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -765,7 +766,8 @@ impl ConnectorSpecifications for GlobalpaymentsRealex {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -793,7 +795,8 @@ impl ConnectorSpecifications for GlobalpaymentsRealex {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/ilixium.rs b/crates/hyperswitch_connectors/src/connectors/ilixium.rs
index 71173e6d4c..50aff0ffa1 100644
--- a/crates/hyperswitch_connectors/src/connectors/ilixium.rs
+++ b/crates/hyperswitch_connectors/src/connectors/ilixium.rs
@@ -684,7 +684,8 @@ impl ConnectorSpecifications for Ilixium {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/moneris.rs b/crates/hyperswitch_connectors/src/connectors/moneris.rs
index 76bbae9525..ce73ab1dca 100644
--- a/crates/hyperswitch_connectors/src/connectors/moneris.rs
+++ b/crates/hyperswitch_connectors/src/connectors/moneris.rs
@@ -935,7 +935,8 @@ impl ConnectorSpecifications for Moneris {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/nexixpay.rs b/crates/hyperswitch_connectors/src/connectors/nexixpay.rs
index 4264473a2f..94fb06373c 100644
--- a/crates/hyperswitch_connectors/src/connectors/nexixpay.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nexixpay.rs
@@ -1304,7 +1304,8 @@ impl ConnectorSpecifications for Nexixpay {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -1336,7 +1337,8 @@ impl ConnectorSpecifications for Nexixpay {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/nmi.rs b/crates/hyperswitch_connectors/src/connectors/nmi.rs
index 2379ab22e3..e7e1e344e6 100644
--- a/crates/hyperswitch_connectors/src/connectors/nmi.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nmi.rs
@@ -1155,7 +1155,8 @@ impl ConnectorSpecifications for Nmi {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
diff --git a/crates/hyperswitch_connectors/src/connectors/nordea.rs b/crates/hyperswitch_connectors/src/connectors/nordea.rs
index e9c4ce52c1..a69be749b5 100644
--- a/crates/hyperswitch_connectors/src/connectors/nordea.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nordea.rs
@@ -1155,7 +1155,8 @@ impl ConnectorSpecifications for Nordea {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei.rs b/crates/hyperswitch_connectors/src/connectors/nuvei.rs
index 676118ada0..1524ed9b4d 100644
--- a/crates/hyperswitch_connectors/src/connectors/nuvei.rs
+++ b/crates/hyperswitch_connectors/src/connectors/nuvei.rs
@@ -1723,7 +1723,8 @@ impl ConnectorSpecifications for Nuvei {
api::CurrentFlowInfo::Psync { .. } => false,
api::CurrentFlowInfo::UpdatePostConfirm { .. } => false,
api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/paydotcom.rs b/crates/hyperswitch_connectors/src/connectors/paydotcom.rs
index 8c98d8e1c3..a9dec6cb88 100644
--- a/crates/hyperswitch_connectors/src/connectors/paydotcom.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paydotcom.rs
@@ -305,7 +305,8 @@ impl api::ConnectorSpecifications for Paydotcom {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -333,7 +334,8 @@ impl api::ConnectorSpecifications for Paydotcom {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/payme.rs b/crates/hyperswitch_connectors/src/connectors/payme.rs
index fc6aa819a9..5af7eb1531 100644
--- a/crates/hyperswitch_connectors/src/connectors/payme.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payme.rs
@@ -1367,7 +1367,8 @@ impl ConnectorSpecifications for Payme {
api::CurrentFlowInfo::Psync { .. } => false,
api::CurrentFlowInfo::UpdatePostConfirm { .. } => false,
api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/paynearme.rs b/crates/hyperswitch_connectors/src/connectors/paynearme.rs
index a364d63230..5441af683e 100644
--- a/crates/hyperswitch_connectors/src/connectors/paynearme.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paynearme.rs
@@ -675,7 +675,8 @@ impl ConnectorSpecifications for Paynearme {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/paypal.rs b/crates/hyperswitch_connectors/src/connectors/paypal.rs
index db2bd6fcbf..b50cd31428 100644
--- a/crates/hyperswitch_connectors/src/connectors/paypal.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paypal.rs
@@ -2886,7 +2886,8 @@ impl ConnectorSpecifications for Paypal {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -2902,7 +2903,8 @@ impl ConnectorSpecifications for Paypal {
api::CurrentFlowInfo::Psync { .. } => false,
api::CurrentFlowInfo::UpdatePostConfirm { .. } => false,
api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/paysafe.rs b/crates/hyperswitch_connectors/src/connectors/paysafe.rs
index 494ed0410f..c796641ec9 100644
--- a/crates/hyperswitch_connectors/src/connectors/paysafe.rs
+++ b/crates/hyperswitch_connectors/src/connectors/paysafe.rs
@@ -1258,7 +1258,8 @@ impl ConnectorSpecifications for Paysafe {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => None,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => None,
}
}
@@ -1274,7 +1275,8 @@ impl ConnectorSpecifications for Paysafe {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -1297,7 +1299,8 @@ impl ConnectorSpecifications for Paysafe {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/redsys.rs b/crates/hyperswitch_connectors/src/connectors/redsys.rs
index 0f594d6c81..0b7f5339a6 100644
--- a/crates/hyperswitch_connectors/src/connectors/redsys.rs
+++ b/crates/hyperswitch_connectors/src/connectors/redsys.rs
@@ -1037,7 +1037,8 @@ impl ConnectorSpecifications for Redsys {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
@@ -1078,7 +1079,8 @@ impl ConnectorSpecifications for Redsys {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/saferpay.rs b/crates/hyperswitch_connectors/src/connectors/saferpay.rs
index d79087e330..99f6082575 100644
--- a/crates/hyperswitch_connectors/src/connectors/saferpay.rs
+++ b/crates/hyperswitch_connectors/src/connectors/saferpay.rs
@@ -368,7 +368,8 @@ impl ConnectorSpecifications for Saferpay {
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/santander.rs b/crates/hyperswitch_connectors/src/connectors/santander.rs
index f12d0a681a..b329c0d340 100644
--- a/crates/hyperswitch_connectors/src/connectors/santander.rs
+++ b/crates/hyperswitch_connectors/src/connectors/santander.rs
@@ -1892,7 +1892,9 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Santand
) -> CustomResult<String, errors::ConnectorError> {
match req.payment_method {
enums::PaymentMethod::BankTransfer => match req.payment_method_type {
- Some(enums::PaymentMethodType::PixQr) => {
+ Some(enums::PaymentMethodType::PixQr)
+ | Some(enums::PaymentMethodType::PixAutomaticoQr)
+ | Some(enums::PaymentMethodType::PixAutomaticoPush) => {
let end_to_end_id = req
.request
.connector_metadata
@@ -1946,7 +1948,9 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Santand
let auth_details = SantanderAuthType::try_from(&req.connector_auth_type)?;
let method: Result<Method, error_stack::Report<errors::ConnectorError>> =
match req.payment_method_type {
- Some(enums::PaymentMethodType::PixQr) => Ok(Method::Put),
+ Some(enums::PaymentMethodType::PixQr)
+ | Some(enums::PaymentMethodType::PixAutomaticoQr)
+ | Some(enums::PaymentMethodType::PixAutomaticoPush) => Ok(Method::Put),
_ => Err(errors::ConnectorError::NotSupported {
message: req.payment_method.to_string(),
connector: "Santander".into(),
@@ -2457,7 +2461,7 @@ static SANTANDER_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
enums::PaymentMethodType::PixAutomaticoQr,
PaymentMethodDetails {
mandates: enums::FeatureStatus::Supported,
- refunds: enums::FeatureStatus::NotSupported,
+ refunds: enums::FeatureStatus::Supported,
supported_capture_methods: supported_capture_methods.clone(),
specific_features: None,
},
@@ -2468,7 +2472,7 @@ static SANTANDER_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
enums::PaymentMethodType::PixAutomaticoPush,
PaymentMethodDetails {
mandates: enums::FeatureStatus::Supported,
- refunds: enums::FeatureStatus::NotSupported,
+ refunds: enums::FeatureStatus::Supported,
supported_capture_methods: supported_capture_methods.clone(),
specific_features: None,
},
@@ -2697,7 +2701,8 @@ impl ConnectorSpecifications for Santander {
| Some(CurrentFlowInfo::UpdatePostConfirm { .. })
| None => false,
Some(CurrentFlowInfo::PreAuthorizeVoid { .. })
- | Some(CurrentFlowInfo::ConnectorWebhookRegister { .. }) => false,
+ | Some(CurrentFlowInfo::ConnectorWebhookRegister { .. })
+ | Some(CurrentFlowInfo::Execute) => false,
}
}
fn is_push_notification_flow_required(&self, current_flow: CurrentFlowInfo) -> bool {
@@ -2713,7 +2718,8 @@ impl ConnectorSpecifications for Santander {
| CurrentFlowInfo::Psync { .. }
| CurrentFlowInfo::UpdatePostConfirm { .. }
| CurrentFlowInfo::PreAuthorizeVoid { .. }
- | CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | CurrentFlowInfo::Execute => false,
}
}
fn is_generate_qr_flow_required(&self, current_flow: CurrentFlowInfo) -> bool {
@@ -2729,7 +2735,8 @@ impl ConnectorSpecifications for Santander {
| CurrentFlowInfo::Psync { .. }
| CurrentFlowInfo::UpdatePostConfirm { .. }
| CurrentFlowInfo::PreAuthorizeVoid { .. }
- | CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | CurrentFlowInfo::Execute => false,
}
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs b/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
index 9b435e44f4..8bf5078f5f 100644
--- a/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/santander/transformers.rs
@@ -3370,6 +3370,14 @@ pub fn decide_access_token_key_suffix(
}
}
(_, Some(enums::PaymentMethodType::Boleto)) => Some(AccessTokenUrlPath::Boleto),
+ (
+ Some(CurrentFlowInfo::Execute),
+ Some(
+ enums::PaymentMethodType::PixAutomaticoPush
+ | enums::PaymentMethodType::PixAutomaticoQr
+ | enums::PaymentMethodType::PixQr,
+ ),
+ ) => Some(AccessTokenUrlPath::Leg1),
(None, Some(enums::PaymentMethodType::PixAutomaticoPush)) => {
Some(AccessTokenUrlPath::Leg2)
}
diff --git a/crates/hyperswitch_connectors/src/connectors/shift4.rs b/crates/hyperswitch_connectors/src/connectors/shift4.rs
index 0c9d6c48bb..bcd7ef2911 100644
--- a/crates/hyperswitch_connectors/src/connectors/shift4.rs
+++ b/crates/hyperswitch_connectors/src/connectors/shift4.rs
@@ -1016,7 +1016,8 @@ impl ConnectorSpecifications for Shift4 {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/trustpay.rs b/crates/hyperswitch_connectors/src/connectors/trustpay.rs
index 6bf465b644..aed9536767 100644
--- a/crates/hyperswitch_connectors/src/connectors/trustpay.rs
+++ b/crates/hyperswitch_connectors/src/connectors/trustpay.rs
@@ -1468,7 +1468,8 @@ impl ConnectorSpecifications for Trustpay {
api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
index 36b1ba9f4a..c45dbbb471 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
@@ -1641,7 +1641,8 @@ impl ConnectorSpecifications for Worldpayxml {
api::CurrentFlowInfo::Psync { .. } => false,
api::CurrentFlowInfo::UpdatePostConfirm { .. } => false,
api::CurrentFlowInfo::PreAuthorizeVoid { .. }
- | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute => false,
}
}
diff --git a/crates/hyperswitch_connectors/src/connectors/xendit.rs b/crates/hyperswitch_connectors/src/connectors/xendit.rs
index 99932c7214..715b94a44e 100644
--- a/crates/hyperswitch_connectors/src/connectors/xendit.rs
+++ b/crates/hyperswitch_connectors/src/connectors/xendit.rs
@@ -1095,6 +1095,7 @@ impl ConnectorSpecifications for Xendit {
| api::CurrentFlowInfo::CompleteAuthorize { .. }
| api::CurrentFlowInfo::Psync { .. }
| api::CurrentFlowInfo::ConnectorWebhookRegister { .. }
+ | api::CurrentFlowInfo::Execute
| api::CurrentFlowInfo::UpdatePostConfirm { .. }
| api::CurrentFlowInfo::PreAuthorizeVoid { .. } => false,
}
diff --git a/crates/hyperswitch_domain_models/src/router_request_types.rs b/crates/hyperswitch_domain_models/src/router_request_types.rs
index e816d5f5b4..063c16fbbe 100644
--- a/crates/hyperswitch_domain_models/src/router_request_types.rs
+++ b/crates/hyperswitch_domain_models/src/router_request_types.rs
@@ -87,6 +87,8 @@ pub enum CurrentFlowInfo {
/// The payment setup mandate request data
request_data: Box<ConnectorWebhookRegisterRequest>,
},
+ /// Connector execute flow.
+ Execute,
}
impl CurrentFlowInfo {
@@ -99,6 +101,7 @@ impl CurrentFlowInfo {
Self::UpdatePostConfirm { request_data } => request_data.feature_metadata.clone(),
Self::PreAuthorizeVoid { .. } => None,
Self::ConnectorWebhookRegister { .. } => None,
+ Self::Execute => None,
}
}
}
diff --git a/crates/router/src/core/refunds.rs b/crates/router/src/core/refunds.rs
index 7689f634cc..8e76405e92 100644
--- a/crates/router/src/core/refunds.rs
+++ b/crates/router/src/core/refunds.rs
@@ -250,7 +250,7 @@ pub async fn refund_reverse_core(
&router_data,
None,
&gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;
access_token::update_router_data_with_access_token_result(
@@ -627,7 +627,7 @@ pub async fn trigger_refund_to_gateway(
&router_data,
creds_identifier.as_deref(),
&gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;
@@ -1324,7 +1324,7 @@ pub async fn sync_refund_with_gateway(
&router_data,
creds_identifier.as_deref(),
&gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;
diff --git a/crates/router/src/core/refunds_v2.rs b/crates/router/src/core/refunds_v2.rs
index 7849cacb5d..e0277fc4c2 100644
--- a/crates/router/src/core/refunds_v2.rs
+++ b/crates/router/src/core/refunds_v2.rs
@@ -201,7 +201,7 @@ pub async fn trigger_refund_to_gateway(
&router_data,
None,
&default_gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;
@@ -327,7 +327,7 @@ pub async fn internal_trigger_refund_to_gateway(
&router_data,
None,
&default_gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;
@@ -906,7 +906,7 @@ pub async fn sync_refund_with_gateway(
&router_data,
None,
&default_gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;
@@ -1006,7 +1006,7 @@ pub async fn internal_sync_refund_with_gateway(
&router_data,
None,
&default_gateway_context,
- None,
+ Some(hyperswitch_interfaces::api::CurrentFlowInfo::Execute),
))
.await?;