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): add Global Payments RealEx routing via unified connector service (#13980)

Tushar Shukla9209eb9c165f
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index bfacfd0335..b74fa66ae0 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -19815,6 +19815,7 @@
"givepayments",
"globalpay",
"globalpayments_heartland",
+ "globalpayments_realex",
"globepay",
"gocardless",
"gotyme_sanlam",
@@ -46152,6 +46153,7 @@
"givepayments",
"globalpay",
"globalpayments_heartland",
+ "globalpayments_realex",
"globepay",
"gocardless",
"gotyme_sanlam",
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index d686f33c6c..1c5f3e0772 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -12650,6 +12650,7 @@
"givepayments",
"globalpay",
"globalpayments_heartland",
+ "globalpayments_realex",
"globepay",
"gocardless",
"gotyme_sanlam",
@@ -32667,6 +32668,7 @@
"givepayments",
"globalpay",
"globalpayments_heartland",
+ "globalpayments_realex",
"globepay",
"gocardless",
"gotyme_sanlam",
diff --git a/config/config.example.toml b/config/config.example.toml
index 454713ef0a..8a0f9063ec 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -398,6 +398,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.sandbox.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
gpayments.base_url = "https://{{merchant_endpoint_prefix}}-test.api.as1.gpayments.net"
@@ -716,6 +717,7 @@ stripe = { payment_method = "bank_transfer" }
nuvei = { payment_method = "card" }
shift4 = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
bluesnap = { payment_method = "card" }
bankofamerica = { payment_method = "card" }
cybersource = { payment_method = "card" }
@@ -1591,7 +1593,7 @@ request_timeout = 35 # Per-RPC Request Timeout in Seconds
keep_alive_interval = 30 # HTTP/2 PING keepalive interval in Seconds on the shared channel
keep_alive_timeout = 20 # Time in Seconds to wait for a keepalive PING acknowledgement before the connection is treated as dead
tcp_keepalive = 60 # TCP keepalive idle time in Seconds on the shared channel
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, globalpayments_realex" # 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/integration_test.toml b/config/deployments/integration_test.toml
index 1c4f5b3d33..0c7d27089a 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -96,6 +96,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.sandbox.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
gotyme_sanlam.base_url = "sbx"
@@ -1009,6 +1010,7 @@ stripe.payment_method = "bank_transfer"
bankofamerica = { payment_method = "card" }
cybersource = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
nmi.payment_method = "card"
payme.payment_method = "card"
deutschebank = { payment_method = "bank_debit" }
@@ -1084,7 +1086,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, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, gotyme_sanlam, paysafe, razorpay" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, gotyme_sanlam, paysafe, razorpay, globalpayments_realex" # 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 758dc115aa..df5765646f 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -99,6 +99,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api.gocardless.com"
gotyme_sanlam.base_url = "live"
@@ -1024,6 +1025,7 @@ stripe.payment_method = "bank_transfer"
bankofamerica = { payment_method = "card" }
cybersource = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
nmi.payment_method = "card"
payme.payment_method = "card"
deutschebank = { payment_method = "bank_debit" }
@@ -1096,7 +1098,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, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit, givepayments, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, gotyme_sanlam, paysafe, razorpay" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit, givepayments, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, gotyme_sanlam, paysafe, razorpay, globalpayments_realex" # 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 5bf68e7640..47f73054e4 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -99,6 +99,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.sandbox.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
gotyme_sanlam.base_url = "sbx"
@@ -1028,6 +1029,7 @@ stripe.payment_method = "bank_transfer"
bankofamerica = { payment_method = "card" }
cybersource = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
nmi.payment_method = "card"
payme.payment_method = "card"
deutschebank = { payment_method = "bank_debit" }
@@ -1103,7 +1105,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, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit, givepayments, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, gotyme_sanlam, paysafe, razorpay, tesouro" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit, givepayments, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, gotyme_sanlam, paysafe, razorpay, tesouro, globalpayments_realex" # 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 889d67806c..adaf10369c 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -414,6 +414,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.sandbox.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
gotyme_sanlam.base_url = "dev"
@@ -1303,6 +1304,7 @@ bluesnap = { payment_method = "card" }
bankofamerica = { payment_method = "card" }
cybersource = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
nmi = { payment_method = "card" }
payme = { payment_method = "card" }
deutschebank = { payment_method = "bank_debit" }
@@ -1686,7 +1688,7 @@ request_timeout = 35
keep_alive_interval = 30
keep_alive_timeout = 20
tcp_keepalive = 60
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer" # Comma-separated list of connectors that use UCS only
+ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans, givepayments, tesouro, citigate, ilixium, moneris, elavon, worldpayraft, globalpay, rapyd, paynearme, jpmorgan_orbital, saferpay, d24, etisalat, globalpayments_heartland, paydotcom, merchante, nsure, elavon_pg, trustly, shift4, truelayer, globalpayments_realex" # 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 fe17b96416..b5a3b51b3f 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -305,6 +305,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.sandbox.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
gpayments.base_url = "https://{{merchant_endpoint_prefix}}-test.api.as1.gpayments.net"
@@ -601,6 +602,7 @@ bluesnap = { payment_method = "card" }
bankofamerica = { payment_method = "card" }
cybersource = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
nmi = { payment_method = "card" }
payme = { payment_method = "card" }
deutschebank = { payment_method = "bank_debit" }
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rs
index 81a388dc28..329ac9ef86 100644
--- a/crates/common_enums/src/connector_enums.rs
+++ b/crates/common_enums/src/connector_enums.rs
@@ -124,6 +124,7 @@ pub enum Connector {
Givepayments,
Globalpay,
GlobalpaymentsHeartland,
+ GlobalpaymentsRealex,
Globepay,
Gocardless,
GotymeSanlam,
@@ -408,6 +409,7 @@ impl Connector {
| Self::Getnet
| Self::Gigadat
| Self::Globalpay
+ | Self::GlobalpaymentsRealex
| Self::Globepay
| Self::Gocardless
| Self::GotymeSanlam
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index e64c8b4d4f..24ba85dbb0 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -343,6 +343,7 @@ pub struct ConnectorConfig {
pub gigadat_payout: Option<ConnectorTomlConfig>,
pub globalpay: Option<ConnectorTomlConfig>,
pub globalpayments_heartland: Option<ConnectorTomlConfig>,
+ pub globalpayments_realex: Option<ConnectorTomlConfig>,
pub globepay: Option<ConnectorTomlConfig>,
pub gocardless: Option<ConnectorTomlConfig>,
pub gotyme_sanlam: Option<ConnectorTomlConfig>,
@@ -640,6 +641,7 @@ impl ConnectorConfig {
Connector::Gigadat => Ok(connector_data.gigadat),
Connector::Globalpay => Ok(connector_data.globalpay),
Connector::GlobalpaymentsHeartland => Ok(connector_data.globalpayments_heartland),
+ Connector::GlobalpaymentsRealex => Ok(connector_data.globalpayments_realex),
Connector::Globepay => Ok(connector_data.globepay),
Connector::Gocardless => Ok(connector_data.gocardless),
Connector::GotymeSanlam => Ok(connector_data.gotyme_sanlam),
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index afce59a846..947140ff31 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -9714,3 +9714,38 @@ label = "Source Account Number"
placeholder = "Enter Source Account Number"
required = true
type = "Text"
+
+[globalpayments_realex]
+[globalpayments_realex.connector_auth.MultiAuthKey]
+api_key="Shared Secret"
+key1="Merchant Id"
+key2="Account"
+api_secret="Refund Password"
+[[globalpayments_realex.credit]]
+payment_method_type = "Mastercard"
+[[globalpayments_realex.credit]]
+payment_method_type = "Visa"
+[[globalpayments_realex.credit]]
+payment_method_type = "AmericanExpress"
+[[globalpayments_realex.credit]]
+payment_method_type = "JCB"
+[[globalpayments_realex.credit]]
+payment_method_type = "Discover"
+[[globalpayments_realex.credit]]
+payment_method_type = "DinersClub"
+[[globalpayments_realex.credit]]
+payment_method_type = "UnionPay"
+[[globalpayments_realex.debit]]
+payment_method_type = "Mastercard"
+[[globalpayments_realex.debit]]
+payment_method_type = "Visa"
+[[globalpayments_realex.debit]]
+payment_method_type = "AmericanExpress"
+[[globalpayments_realex.debit]]
+payment_method_type = "JCB"
+[[globalpayments_realex.debit]]
+payment_method_type = "Discover"
+[[globalpayments_realex.debit]]
+payment_method_type = "DinersClub"
+[[globalpayments_realex.debit]]
+payment_method_type = "UnionPay"
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index 0feb1c797b..40c0edd623 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -8770,3 +8770,38 @@ label = "Source Account Number"
placeholder = "Enter Source Account Number"
required = true
type = "Text"
+
+[globalpayments_realex]
+[globalpayments_realex.connector_auth.MultiAuthKey]
+api_key="Shared Secret"
+key1="Merchant Id"
+key2="Account"
+api_secret="Refund Password"
+[[globalpayments_realex.credit]]
+payment_method_type = "Mastercard"
+[[globalpayments_realex.credit]]
+payment_method_type = "Visa"
+[[globalpayments_realex.credit]]
+payment_method_type = "AmericanExpress"
+[[globalpayments_realex.credit]]
+payment_method_type = "JCB"
+[[globalpayments_realex.credit]]
+payment_method_type = "Discover"
+[[globalpayments_realex.credit]]
+payment_method_type = "DinersClub"
+[[globalpayments_realex.credit]]
+payment_method_type = "UnionPay"
+[[globalpayments_realex.debit]]
+payment_method_type = "Mastercard"
+[[globalpayments_realex.debit]]
+payment_method_type = "Visa"
+[[globalpayments_realex.debit]]
+payment_method_type = "AmericanExpress"
+[[globalpayments_realex.debit]]
+payment_method_type = "JCB"
+[[globalpayments_realex.debit]]
+payment_method_type = "Discover"
+[[globalpayments_realex.debit]]
+payment_method_type = "DinersClub"
+[[globalpayments_realex.debit]]
+payment_method_type = "UnionPay"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index 8f1df78fc9..b8b8ba3d8f 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -9688,3 +9688,38 @@ label = "Source Account Number"
placeholder = "Enter Source Account Number"
required = true
type = "Text"
+
+[globalpayments_realex]
+[globalpayments_realex.connector_auth.MultiAuthKey]
+api_key="Shared Secret"
+key1="Merchant Id"
+key2="Account"
+api_secret="Refund Password"
+[[globalpayments_realex.credit]]
+payment_method_type = "Mastercard"
+[[globalpayments_realex.credit]]
+payment_method_type = "Visa"
+[[globalpayments_realex.credit]]
+payment_method_type = "AmericanExpress"
+[[globalpayments_realex.credit]]
+payment_method_type = "JCB"
+[[globalpayments_realex.credit]]
+payment_method_type = "Discover"
+[[globalpayments_realex.credit]]
+payment_method_type = "DinersClub"
+[[globalpayments_realex.credit]]
+payment_method_type = "UnionPay"
+[[globalpayments_realex.debit]]
+payment_method_type = "Mastercard"
+[[globalpayments_realex.debit]]
+payment_method_type = "Visa"
+[[globalpayments_realex.debit]]
+payment_method_type = "AmericanExpress"
+[[globalpayments_realex.debit]]
+payment_method_type = "JCB"
+[[globalpayments_realex.debit]]
+payment_method_type = "Discover"
+[[globalpayments_realex.debit]]
+payment_method_type = "DinersClub"
+[[globalpayments_realex.debit]]
+payment_method_type = "UnionPay"
diff --git a/crates/euclid/src/enums.rs b/crates/euclid/src/enums.rs
index 5c79cebfd9..cc9dc823c5 100644
--- a/crates/euclid/src/enums.rs
+++ b/crates/euclid/src/enums.rs
@@ -283,6 +283,7 @@ pub enum RoutableConnectors {
Givepayments,
Globalpay,
GlobalpaymentsHeartland,
+ GlobalpaymentsRealex,
Globepay,
Gocardless,
GotymeSanlam,
@@ -465,6 +466,7 @@ impl TryFrom<Connector> for RoutableConnectors {
Connector::Givepayments => Ok(Self::Givepayments),
Connector::Globalpay => Ok(Self::Globalpay),
Connector::GlobalpaymentsHeartland => Ok(Self::GlobalpaymentsHeartland),
+ Connector::GlobalpaymentsRealex => Ok(Self::GlobalpaymentsRealex),
Connector::Globepay => Ok(Self::Globepay),
Connector::Gocardless => Ok(Self::Gocardless),
Connector::GotymeSanlam => Ok(Self::GotymeSanlam),
@@ -648,6 +650,7 @@ impl From<RoutableConnectors> for Connector {
RoutableConnectors::Givepayments => Self::Givepayments,
RoutableConnectors::Globalpay => Self::Globalpay,
RoutableConnectors::GlobalpaymentsHeartland => Self::GlobalpaymentsHeartland,
+ RoutableConnectors::GlobalpaymentsRealex => Self::GlobalpaymentsRealex,
RoutableConnectors::Globepay => Self::Globepay,
RoutableConnectors::Gocardless => Self::Gocardless,
RoutableConnectors::GotymeSanlam => Self::GotymeSanlam,
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs
index 7feee5d777..0b2f3e0843 100644
--- a/crates/hyperswitch_connectors/src/connectors.rs
+++ b/crates/hyperswitch_connectors/src/connectors.rs
@@ -59,6 +59,7 @@ pub mod gigadat;
pub mod givepayments;
pub mod globalpay;
pub mod globalpayments_heartland;
+pub mod globalpayments_realex;
pub mod globepay;
pub mod gocardless;
pub mod gotyme_sanlam;
@@ -182,28 +183,28 @@ pub use self::{
facilitapay::Facilitapay, finix::Finix, fiserv::Fiserv, fiservcommercehub::Fiservcommercehub,
fiservemea::Fiservemea, fiuu::Fiuu, flexiti::Flexiti, forte::Forte, getnet::Getnet,
gigadat::Gigadat, givepayments::Givepayments, globalpay::Globalpay,
- globalpayments_heartland::GlobalpaymentsHeartland, globepay::Globepay, gocardless::Gocardless,
- gotyme_sanlam::GotymeSanlam, gpayments::Gpayments, helcim::Helcim, hipay::Hipay,
- hyperpg::Hyperpg, hyperswitch_vault::HyperswitchVault, hyperwallet::Hyperwallet,
- iatapay::Iatapay, ilixium::Ilixium, imerchantsolutions::Imerchantsolutions, inespay::Inespay,
- interpayments::Interpayments, itaubank::Itaubank, jpmorgan::Jpmorgan,
- jpmorgan_orbital::JpmorganOrbital, juspaythreedsserver::Juspaythreedsserver,
- katapult::Katapult, klarna::Klarna, loonio::Loonio, merchante::Merchante, 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, nsure::Nsure, nuvei::Nuvei, opayo::Opayo, opennode::Opennode,
- paybox::Paybox, payconex::Payconex, paydotcom::Paydotcom, payeezy::Payeezy,
- payjustnow::Payjustnow, payjustnowinstore::Payjustnowinstore, payload::Payload, payme::Payme,
- paynearme::Paynearme, 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, saferpay::Saferpay, sanlam_payshield::SanlamPayshield,
- 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, tsys_transit::TsysTransit,
+ globalpayments_heartland::GlobalpaymentsHeartland, globalpayments_realex::GlobalpaymentsRealex,
+ globepay::Globepay, gocardless::Gocardless, gotyme_sanlam::GotymeSanlam, gpayments::Gpayments,
+ helcim::Helcim, hipay::Hipay, hyperpg::Hyperpg, hyperswitch_vault::HyperswitchVault,
+ hyperwallet::Hyperwallet, iatapay::Iatapay, ilixium::Ilixium,
+ imerchantsolutions::Imerchantsolutions, inespay::Inespay, interpayments::Interpayments,
+ itaubank::Itaubank, jpmorgan::Jpmorgan, jpmorgan_orbital::JpmorganOrbital,
+ juspaythreedsserver::Juspaythreedsserver, katapult::Katapult, klarna::Klarna, loonio::Loonio,
+ merchante::Merchante, 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, nsure::Nsure,
+ nuvei::Nuvei, opayo::Opayo, opennode::Opennode, paybox::Paybox, payconex::Payconex,
+ paydotcom::Paydotcom, payeezy::Payeezy, payjustnow::Payjustnow,
+ payjustnowinstore::Payjustnowinstore, payload::Payload, payme::Payme, paynearme::Paynearme,
+ 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, saferpay::Saferpay,
+ sanlam_payshield::SanlamPayshield, 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, tsys_transit::TsysTransit,
unified_authentication_service::UnifiedAuthenticationService, vgs::Vgs, volt::Volt,
wellsfargo::Wellsfargo, wellsfargopayout::Wellsfargopayout, wise::Wise, worldline::Worldline,
worldpay::Worldpay, worldpaymodular::Worldpaymodular, worldpayraft::Worldpayraft,
diff --git a/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs b/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs
new file mode 100644
index 0000000000..d83e5d6916
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/globalpayments_realex.rs
@@ -0,0 +1,807 @@
+//! Global Payments RealEx (legacy Global Payments XML API).
+//!
+//! Payments for this connector are executed by the Unified Connector Service (UCS);
+//! this module exists so the connector can be registered in the `Connector` enum,
+//! resolved by `ConnectorData`, and validated on merchant connector account creation.
+//! The request/response plumbing below is intentionally unimplemented.
+
+pub mod transformers;
+
+use std::sync::LazyLock;
+
+use common_enums::enums;
+use common_utils::{
+ errors::CustomResult,
+ ext_traits::BytesExt,
+ request::{Method, Request, RequestBuilder, RequestContent},
+ types::{AmountConvertor, MinorUnit, MinorUnitForConnector},
+};
+use error_stack::{report, ResultExt};
+use hyperswitch_domain_models::{
+ router_data::{AccessToken, ConnectorAuthType, ErrorResponse, RouterData},
+ router_flow_types::{
+ access_token_auth::AccessTokenAuth,
+ payments::{Authorize, Capture, PSync, PaymentMethodToken, Session, SetupMandate, Void},
+ refunds::{Execute, RSync},
+ },
+ router_request_types::{
+ AccessTokenRequestData, PaymentMethodTokenizationData, PaymentsAuthorizeData,
+ PaymentsCancelData, PaymentsCaptureData, PaymentsSessionData, PaymentsSyncData,
+ RefundsData, SetupMandateRequestData,
+ },
+ router_response_types::{
+ ConnectorInfo, PaymentMethodDetails, PaymentsResponseData, RefundsResponseData,
+ SupportedPaymentMethods, SupportedPaymentMethodsExt,
+ },
+ types::{
+ PaymentsAuthorizeRouterData, PaymentsCaptureRouterData, PaymentsSyncRouterData,
+ RefundSyncRouterData, RefundsRouterData,
+ },
+};
+use hyperswitch_interfaces::{
+ api::{
+ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
+ ConnectorValidation,
+ },
+ configs::Connectors,
+ errors,
+ events::connector_api_logs::ConnectorEvent,
+ types::{self, Response},
+ webhooks,
+};
+use hyperswitch_masking::{ExposeInterface, Mask, PeekInterface};
+use transformers as globalpayments_realex;
+
+use crate::{
+ constants::headers,
+ types::ResponseRouterData,
+ utils::{self, PaymentsAuthorizeRequestData},
+};
+
+#[derive(Clone)]
+pub struct GlobalpaymentsRealex {
+ amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
+}
+
+impl GlobalpaymentsRealex {
+ pub fn new() -> &'static Self {
+ &Self {
+ amount_converter: &MinorUnitForConnector,
+ }
+ }
+}
+
+impl api::Payment for GlobalpaymentsRealex {}
+impl api::PaymentSession for GlobalpaymentsRealex {}
+impl api::ConnectorAccessToken for GlobalpaymentsRealex {}
+impl api::MandateSetup for GlobalpaymentsRealex {}
+impl api::PaymentAuthorize for GlobalpaymentsRealex {}
+impl api::PaymentSync for GlobalpaymentsRealex {}
+impl api::PaymentCapture for GlobalpaymentsRealex {}
+impl api::PaymentVoid for GlobalpaymentsRealex {}
+impl api::Refund for GlobalpaymentsRealex {}
+impl api::RefundExecute for GlobalpaymentsRealex {}
+impl api::RefundSync for GlobalpaymentsRealex {}
+impl api::PaymentToken for GlobalpaymentsRealex {}
+
+impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
+ for GlobalpaymentsRealex
+{
+ // Not Implemented (R)
+}
+
+impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for GlobalpaymentsRealex
+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 GlobalpaymentsRealex {
+ fn id(&self) -> &'static str {
+ "globalpayments_realex"
+ }
+
+ fn get_currency_unit(&self) -> api::CurrencyUnit {
+ api::CurrencyUnit::Minor
+ }
+
+ fn common_get_content_type(&self) -> &'static str {
+ "application/json"
+ }
+
+ fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {
+ connectors.globalpayments_realex.base_url.as_ref()
+ }
+
+ fn get_auth_header(
+ &self,
+ auth_type: &ConnectorAuthType,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ let auth = globalpayments_realex::GlobalpaymentsRealexAuthType::try_from(auth_type)
+ .change_context(errors::ConnectorError::FailedToObtainAuthType)?;
+ Ok(vec![(
+ headers::AUTHORIZATION.to_string(),
+ auth.shared_secret.expose().into_masked(),
+ )])
+ }
+
+ fn build_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ let response: globalpayments_realex::GlobalpaymentsRealexErrorResponse = res
+ .response
+ .parse_struct("GlobalpaymentsRealexErrorResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+
+ event_builder.map(|i| i.set_response_body(&response));
+ router_env::logger::info!(connector_response=?response);
+
+ Ok(ErrorResponse {
+ status_code: res.status_code,
+ code: response.code,
+ message: response.message,
+ reason: response.reason,
+ attempt_status: None,
+ connector_transaction_id: None,
+ connector_response_reference_id: None,
+ network_advice_code: None,
+ network_decline_code: None,
+ network_error_message: None,
+ connector_metadata: None,
+ })
+ }
+}
+
+impl ConnectorValidation for GlobalpaymentsRealex {
+ fn validate_psync_reference_id(
+ &self,
+ _data: &PaymentsSyncData,
+ _is_three_ds: bool,
+ _status: enums::AttemptStatus,
+ _connector_meta_data: Option<common_utils::pii::SecretSerdeValue>,
+ ) -> CustomResult<(), errors::ConnectorError> {
+ Ok(())
+ }
+}
+
+impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData>
+ for GlobalpaymentsRealex
+{
+ //TODO: implement sessions flow
+}
+
+impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken>
+ for GlobalpaymentsRealex
+{
+}
+
+impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData>
+ for GlobalpaymentsRealex
+{
+}
+
+impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData>
+ for GlobalpaymentsRealex
+{
+ fn get_headers(
+ &self,
+ req: &PaymentsAuthorizeRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ self.build_headers(req, connectors)
+ }
+
+ fn get_content_type(&self) -> &'static str {
+ self.common_get_content_type()
+ }
+
+ fn get_url(
+ &self,
+ _req: &PaymentsAuthorizeRouterData,
+ _connectors: &Connectors,
+ ) -> CustomResult<String, errors::ConnectorError> {
+ Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+ }
+
+ fn get_request_body(
+ &self,
+ req: &PaymentsAuthorizeRouterData,
+ _connectors: &Connectors,
+ ) -> CustomResult<RequestContent, errors::ConnectorError> {
+ let amount = utils::convert_amount(
+ self.amount_converter,
+ req.request.minor_amount,
+ req.request.currency,
+ )?;
+
+ let connector_router_data =
+ globalpayments_realex::GlobalpaymentsRealexRouterData::from((amount, req));
+ let connector_req = globalpayments_realex::GlobalpaymentsRealexPaymentsRequest::try_from(
+ &connector_router_data,
+ )?;
+ Ok(RequestContent::Json(Box::new(connector_req)))
+ }
+
+ fn build_request(
+ &self,
+ req: &PaymentsAuthorizeRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ Ok(Some(
+ RequestBuilder::new()
+ .method(Method::Post)
+ .url(&types::PaymentsAuthorizeType::get_url(
+ self, req, connectors,
+ )?)
+ .attach_default_headers()
+ .headers(types::PaymentsAuthorizeType::get_headers(
+ self, req, connectors,
+ )?)
+ .set_body(types::PaymentsAuthorizeType::get_request_body(
+ self, req, connectors,
+ )?)
+ .build(),
+ ))
+ }
+
+ fn handle_response(
+ &self,
+ data: &PaymentsAuthorizeRouterData,
+ event_builder: Option<&mut ConnectorEvent>,
+ res: Response,
+ ) -> CustomResult<PaymentsAuthorizeRouterData, errors::ConnectorError> {
+ let response: globalpayments_realex::GlobalpaymentsRealexPaymentsResponse = res
+ .response
+ .parse_struct("GlobalpaymentsRealex PaymentsAuthorizeResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+ event_builder.map(|i| i.set_response_body(&response));
+ router_env::logger::info!(connector_response=?response);
+ RouterData::try_from(ResponseRouterData {
+ response,
+ data: data.clone(),
+ http_code: res.status_code,
+ })
+ }
+
+ fn get_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ self.build_error_response(res, event_builder)
+ }
+}
+
+impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for GlobalpaymentsRealex {
+ fn get_headers(
+ &self,
+ req: &PaymentsSyncRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ self.build_headers(req, connectors)
+ }
+
+ fn get_content_type(&self) -> &'static str {
+ self.common_get_content_type()
+ }
+
+ fn get_url(
+ &self,
+ _req: &PaymentsSyncRouterData,
+ _connectors: &Connectors,
+ ) -> CustomResult<String, errors::ConnectorError> {
+ Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+ }
+
+ fn build_request(
+ &self,
+ req: &PaymentsSyncRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ Ok(Some(
+ RequestBuilder::new()
+ .method(Method::Get)
+ .url(&types::PaymentsSyncType::get_url(self, req, connectors)?)
+ .attach_default_headers()
+ .headers(types::PaymentsSyncType::get_headers(self, req, connectors)?)
+ .build(),
+ ))
+ }
+
+ fn handle_response(
+ &self,
+ data: &PaymentsSyncRouterData,
+ event_builder: Option<&mut ConnectorEvent>,
+ res: Response,
+ ) -> CustomResult<PaymentsSyncRouterData, errors::ConnectorError> {
+ let response: globalpayments_realex::GlobalpaymentsRealexPaymentsResponse = res
+ .response
+ .parse_struct("globalpayments_realex PaymentsSyncResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+ event_builder.map(|i| i.set_response_body(&response));
+ router_env::logger::info!(connector_response=?response);
+ RouterData::try_from(ResponseRouterData {
+ response,
+ data: data.clone(),
+ http_code: res.status_code,
+ })
+ }
+
+ fn get_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ self.build_error_response(res, event_builder)
+ }
+}
+
+impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData>
+ for GlobalpaymentsRealex
+{
+ fn get_headers(
+ &self,
+ req: &PaymentsCaptureRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ self.build_headers(req, connectors)
+ }
+
+ fn get_content_type(&self) -> &'static str {
+ self.common_get_content_type()
+ }
+
+ fn get_url(
+ &self,
+ _req: &PaymentsCaptureRouterData,
+ _connectors: &Connectors,
+ ) -> CustomResult<String, errors::ConnectorError> {
+ Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+ }
+
+ fn get_request_body(
+ &self,
+ _req: &PaymentsCaptureRouterData,
+ _connectors: &Connectors,
+ ) -> CustomResult<RequestContent, errors::ConnectorError> {
+ Err(errors::ConnectorError::NotImplemented("get_request_body method".to_string()).into())
+ }
+
+ fn build_request(
+ &self,
+ req: &PaymentsCaptureRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ Ok(Some(
+ RequestBuilder::new()
+ .method(Method::Post)
+ .url(&types::PaymentsCaptureType::get_url(self, req, connectors)?)
+ .attach_default_headers()
+ .headers(types::PaymentsCaptureType::get_headers(
+ self, req, connectors,
+ )?)
+ .set_body(types::PaymentsCaptureType::get_request_body(
+ self, req, connectors,
+ )?)
+ .build(),
+ ))
+ }
+
+ fn handle_response(
+ &self,
+ data: &PaymentsCaptureRouterData,
+ event_builder: Option<&mut ConnectorEvent>,
+ res: Response,
+ ) -> CustomResult<PaymentsCaptureRouterData, errors::ConnectorError> {
+ let response: globalpayments_realex::GlobalpaymentsRealexPaymentsResponse = res
+ .response
+ .parse_struct("GlobalpaymentsRealex PaymentsCaptureResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+ event_builder.map(|i| i.set_response_body(&response));
+ router_env::logger::info!(connector_response=?response);
+ RouterData::try_from(ResponseRouterData {
+ response,
+ data: data.clone(),
+ http_code: res.status_code,
+ })
+ }
+
+ fn get_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ self.build_error_response(res, event_builder)
+ }
+}
+
+impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for GlobalpaymentsRealex {}
+
+impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for GlobalpaymentsRealex {
+ fn get_headers(
+ &self,
+ req: &RefundsRouterData<Execute>,
+ connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ self.build_headers(req, connectors)
+ }
+
+ fn get_content_type(&self) -> &'static str {
+ self.common_get_content_type()
+ }
+
+ fn get_url(
+ &self,
+ _req: &RefundsRouterData<Execute>,
+ _connectors: &Connectors,
+ ) -> CustomResult<String, errors::ConnectorError> {
+ Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+ }
+
+ fn get_request_body(
+ &self,
+ req: &RefundsRouterData<Execute>,
+ _connectors: &Connectors,
+ ) -> CustomResult<RequestContent, errors::ConnectorError> {
+ let refund_amount = utils::convert_amount(
+ self.amount_converter,
+ req.request.minor_refund_amount,
+ req.request.currency,
+ )?;
+
+ let connector_router_data =
+ globalpayments_realex::GlobalpaymentsRealexRouterData::from((refund_amount, req));
+ let connector_req = globalpayments_realex::GlobalpaymentsRealexRefundRequest::try_from(
+ &connector_router_data,
+ )?;
+ Ok(RequestContent::Json(Box::new(connector_req)))
+ }
+
+ fn build_request(
+ &self,
+ req: &RefundsRouterData<Execute>,
+ connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ let request = RequestBuilder::new()
+ .method(Method::Post)
+ .url(&types::RefundExecuteType::get_url(self, req, connectors)?)
+ .attach_default_headers()
+ .headers(types::RefundExecuteType::get_headers(
+ self, req, connectors,
+ )?)
+ .set_body(types::RefundExecuteType::get_request_body(
+ self, req, connectors,
+ )?)
+ .build();
+ Ok(Some(request))
+ }
+
+ fn handle_response(
+ &self,
+ data: &RefundsRouterData<Execute>,
+ event_builder: Option<&mut ConnectorEvent>,
+ res: Response,
+ ) -> CustomResult<RefundsRouterData<Execute>, errors::ConnectorError> {
+ let response: globalpayments_realex::RefundResponse = res
+ .response
+ .parse_struct("globalpayments_realex RefundResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+ event_builder.map(|i| i.set_response_body(&response));
+ router_env::logger::info!(connector_response=?response);
+ RouterData::try_from(ResponseRouterData {
+ response,
+ data: data.clone(),
+ http_code: res.status_code,
+ })
+ }
+
+ fn get_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ self.build_error_response(res, event_builder)
+ }
+}
+
+impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for GlobalpaymentsRealex {
+ fn get_headers(
+ &self,
+ req: &RefundSyncRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ self.build_headers(req, connectors)
+ }
+
+ fn get_content_type(&self) -> &'static str {
+ self.common_get_content_type()
+ }
+
+ fn get_url(
+ &self,
+ _req: &RefundSyncRouterData,
+ _connectors: &Connectors,
+ ) -> CustomResult<String, errors::ConnectorError> {
+ Err(errors::ConnectorError::NotImplemented("get_url method".to_string()).into())
+ }
+
+ fn build_request(
+ &self,
+ req: &RefundSyncRouterData,
+ connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ Ok(Some(
+ RequestBuilder::new()
+ .method(Method::Get)
+ .url(&types::RefundSyncType::get_url(self, req, connectors)?)
+ .attach_default_headers()
+ .headers(types::RefundSyncType::get_headers(self, req, connectors)?)
+ .set_body(types::RefundSyncType::get_request_body(
+ self, req, connectors,
+ )?)
+ .build(),
+ ))
+ }
+
+ fn handle_response(
+ &self,
+ data: &RefundSyncRouterData,
+ event_builder: Option<&mut ConnectorEvent>,
+ res: Response,
+ ) -> CustomResult<RefundSyncRouterData, errors::ConnectorError> {
+ let response: globalpayments_realex::RefundResponse = res
+ .response
+ .parse_struct("globalpayments_realex RefundSyncResponse")
+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
+ event_builder.map(|i| i.set_response_body(&response));
+ router_env::logger::info!(connector_response=?response);
+ RouterData::try_from(ResponseRouterData {
+ response,
+ data: data.clone(),
+ http_code: res.status_code,
+ })
+ }
+
+ fn get_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ self.build_error_response(res, event_builder)
+ }
+}
+
+#[async_trait::async_trait]
+impl webhooks::IncomingWebhook for GlobalpaymentsRealex {
+ fn get_webhook_object_reference_id(
+ &self,
+ _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+ ) -> CustomResult<api_models::webhooks::ObjectReferenceId, errors::ConnectorError> {
+ Err(report!(errors::ConnectorError::WebhooksNotImplemented))
+ }
+
+ fn get_webhook_event_type(
+ &self,
+ _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+ _context: Option<&webhooks::WebhookContext>,
+ ) -> CustomResult<api_models::webhooks::IncomingWebhookEvent, errors::ConnectorError> {
+ Err(report!(errors::ConnectorError::WebhooksNotImplemented))
+ }
+
+ fn get_webhook_resource_object(
+ &self,
+ _request: &webhooks::IncomingWebhookRequestDetails<'_>,
+ ) -> CustomResult<Box<dyn hyperswitch_masking::ErasedMaskSerialize>, errors::ConnectorError>
+ {
+ Err(report!(errors::ConnectorError::WebhooksNotImplemented))
+ }
+}
+
+static GLOBALPAYMENTS_REALEX_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
+ LazyLock::new(|| {
+ let supported_capture_methods = vec![
+ enums::CaptureMethod::Automatic,
+ enums::CaptureMethod::Manual,
+ ];
+
+ let supported_card_networks = vec![
+ common_enums::CardNetwork::Visa,
+ common_enums::CardNetwork::Mastercard,
+ common_enums::CardNetwork::AmericanExpress,
+ common_enums::CardNetwork::JCB,
+ common_enums::CardNetwork::DinersClub,
+ common_enums::CardNetwork::Discover,
+ common_enums::CardNetwork::UnionPay,
+ ];
+
+ let mut globalpayments_realex_supported_payment_methods = SupportedPaymentMethods::new();
+
+ globalpayments_realex_supported_payment_methods.add(
+ enums::PaymentMethod::Card,
+ enums::PaymentMethodType::Credit,
+ PaymentMethodDetails {
+ // Mandates / MIT / recurring are deliberately out of scope: SetupMandate,
+ // RepeatPayment and MandateRevoke are all in the connector's
+ // `not_implemented` list on the UCS side.
+ mandates: enums::FeatureStatus::NotSupported,
+ refunds: enums::FeatureStatus::Supported,
+ supported_capture_methods: supported_capture_methods.clone(),
+ specific_features: Some(
+ api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
+ api_models::feature_matrix::CardSpecificFeatures {
+ // 3DS2 is fully implemented (UCS PreAuthenticate / Authenticate /
+ // PostAuthenticate against the Global Payments 3DS2 JSON API) and
+ // HS routing into pre-authentication is verified, but not one 3DS
+ // request has ever completed against the gateway: the sandbox
+ // account is not provisioned for 3-D Secure
+ // (`403 That Account ID is not configured for 3D Secure`; the legacy
+ // XML `3ds-verifyenrolled` likewise returns `503 No mpi details
+ // setup`). Declared NotSupported until a 3DS payment is proven end
+ // to end; flip to Supported once Global Payments enable it.
+ three_ds: common_enums::FeatureStatus::NotSupported,
+ no_three_ds: common_enums::FeatureStatus::Supported,
+ supported_card_networks: supported_card_networks.clone(),
+ }
+ }),
+ ),
+ },
+ );
+
+ globalpayments_realex_supported_payment_methods.add(
+ enums::PaymentMethod::Card,
+ enums::PaymentMethodType::Debit,
+ PaymentMethodDetails {
+ // Mandates / MIT / recurring are deliberately out of scope: SetupMandate,
+ // RepeatPayment and MandateRevoke are all in the connector's
+ // `not_implemented` list on the UCS side.
+ mandates: enums::FeatureStatus::NotSupported,
+ refunds: enums::FeatureStatus::Supported,
+ supported_capture_methods: supported_capture_methods.clone(),
+ specific_features: Some(
+ api_models::feature_matrix::PaymentMethodSpecificFeatures::Card({
+ api_models::feature_matrix::CardSpecificFeatures {
+ // 3DS2 is fully implemented (UCS PreAuthenticate / Authenticate /
+ // PostAuthenticate against the Global Payments 3DS2 JSON API) and
+ // HS routing into pre-authentication is verified, but not one 3DS
+ // request has ever completed against the gateway: the sandbox
+ // account is not provisioned for 3-D Secure
+ // (`403 That Account ID is not configured for 3D Secure`; the legacy
+ // XML `3ds-verifyenrolled` likewise returns `503 No mpi details
+ // setup`). Declared NotSupported until a 3DS payment is proven end
+ // to end; flip to Supported once Global Payments enable it.
+ three_ds: common_enums::FeatureStatus::NotSupported,
+ no_three_ds: common_enums::FeatureStatus::Supported,
+ supported_card_networks,
+ }
+ }),
+ ),
+ },
+ );
+
+ globalpayments_realex_supported_payment_methods
+ });
+
+static GLOBALPAYMENTS_REALEX_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {
+ display_name: "Global Payments RealEx",
+ description: "Global Payments RealEx is the legacy Global Payments XML (HPP/Remote) gateway, offering card authorisation, settlement, void, rebate and transaction query over the `epage-remote.cgi` endpoint.",
+ connector_type: enums::HyperswitchConnectorCategory::PaymentGateway,
+ integration_status: enums::ConnectorIntegrationStatus::Beta,
+};
+
+static GLOBALPAYMENTS_REALEX_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 0] = [];
+
+impl ConnectorSpecifications for GlobalpaymentsRealex {
+ /// Check if pre-authentication flow is required.
+ ///
+ /// The 3DS2 authentication for this connector is driven by the Unified Connector Service
+ /// over the dedicated `PreAuthenticate` / `Authenticate` / `PostAuthenticate` flows, so a
+ /// merchant-initiated `three_ds` card authorization must first go through pre-authentication.
+ /// When the caller already supplies `authentication_data` from an external authentication,
+ /// the connector keeps its existing consume-only behaviour and goes straight to authorize.
+ fn is_pre_authentication_flow_required(&self, current_flow: api::CurrentFlowInfo) -> bool {
+ match current_flow {
+ api::CurrentFlowInfo::Authorize {
+ auth_type,
+ request_data,
+ } => {
+ auth_type.is_three_ds()
+ && request_data.is_card()
+ && request_data.authentication_data.is_none()
+ }
+ // No alternate flow for complete authorize
+ api::CurrentFlowInfo::CompleteAuthorize { .. } => false,
+ api::CurrentFlowInfo::SetupMandate { .. } => false,
+ api::CurrentFlowInfo::Psync { .. }
+ | api::CurrentFlowInfo::UpdatePostConfirm { .. }
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ }
+ }
+
+ /// Check if authentication flow is required.
+ ///
+ /// The device data collection (3DS Method) notification URL carries a query string, so a
+ /// return with non-empty `params` is the device profiling leg and must run `Authenticate`.
+ fn is_authentication_flow_required(&self, current_flow: api::CurrentFlowInfo) -> bool {
+ match current_flow {
+ api::CurrentFlowInfo::Authorize { .. } => {
+ // during authorize flow, there is no authentication call needed
+ false
+ }
+ api::CurrentFlowInfo::CompleteAuthorize { request_data, .. } => {
+ let redirection_params = request_data
+ .redirect_response
+ .as_ref()
+ .and_then(|redirect_response| redirect_response.params.as_ref());
+ match redirection_params {
+ Some(param) if !param.peek().is_empty() => true,
+ Some(_) | None => false,
+ }
+ }
+ api::CurrentFlowInfo::SetupMandate { .. } => false,
+ api::CurrentFlowInfo::Psync { .. }
+ | api::CurrentFlowInfo::UpdatePostConfirm { .. }
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ }
+ }
+
+ /// Check if post-authentication flow is required.
+ ///
+ /// The challenge notification URL carries no query string, so a return with empty or absent
+ /// `params` is the ACS challenge result and must run `PostAuthenticate`.
+ fn is_post_authentication_flow_required(&self, current_flow: api::CurrentFlowInfo) -> bool {
+ match current_flow {
+ api::CurrentFlowInfo::Authorize { .. } => {
+ // during authorize flow, there is no post_authentication call needed
+ false
+ }
+ api::CurrentFlowInfo::CompleteAuthorize { request_data, .. } => {
+ let redirection_params = request_data
+ .redirect_response
+ .as_ref()
+ .and_then(|redirect_response| redirect_response.params.as_ref());
+ match redirection_params {
+ Some(param) if !param.peek().is_empty() => false,
+ Some(_) | None => true,
+ }
+ }
+ api::CurrentFlowInfo::SetupMandate { .. } => false,
+ api::CurrentFlowInfo::Psync { .. }
+ | api::CurrentFlowInfo::UpdatePostConfirm { .. }
+ | api::CurrentFlowInfo::ConnectorWebhookRegister { .. } => false,
+ }
+ }
+
+ fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
+ Some(&GLOBALPAYMENTS_REALEX_CONNECTOR_INFO)
+ }
+
+ fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
+ Some(&*GLOBALPAYMENTS_REALEX_SUPPORTED_PAYMENT_METHODS)
+ }
+
+ fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {
+ Some(&GLOBALPAYMENTS_REALEX_SUPPORTED_WEBHOOK_FLOWS)
+ }
+}
diff --git a/crates/hyperswitch_connectors/src/connectors/globalpayments_realex/transformers.rs b/crates/hyperswitch_connectors/src/connectors/globalpayments_realex/transformers.rs
new file mode 100644
index 0000000000..3cb1cfec5d
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/globalpayments_realex/transformers.rs
@@ -0,0 +1,251 @@
+use common_enums::enums;
+use common_utils::types::MinorUnit;
+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 GlobalpaymentsRealexRouterData<T> {
+ pub amount: MinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
+ pub router_data: T,
+}
+
+impl<T> From<(MinorUnit, T)> for GlobalpaymentsRealexRouterData<T> {
+ fn from((amount, item): (MinorUnit, 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 GlobalpaymentsRealexPaymentsRequest {
+ amount: MinorUnit,
+ card: GlobalpaymentsRealexCard,
+}
+
+#[derive(Default, Debug, Serialize, Eq, PartialEq)]
+pub struct GlobalpaymentsRealexCard {
+ number: cards::CardNumber,
+ expiry_month: Secret<String>,
+ expiry_year: Secret<String>,
+ cvc: Secret<String>,
+ complete: bool,
+}
+
+impl TryFrom<&GlobalpaymentsRealexRouterData<&PaymentsAuthorizeRouterData>>
+ for GlobalpaymentsRealexPaymentsRequest
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: &GlobalpaymentsRealexRouterData<&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()),
+ }
+ }
+}
+
+// Auth Struct
+//
+// Global Payments RealEx (legacy XML API) is routed through the Unified Connector
+// Service (UCS); this struct only validates the shape of the credentials stored on
+// the merchant connector account.
+// - `api_key` => Shared Secret (input to the sha1 digest; never sent verbatim)
+// - `key1` => Merchant Id (Client Id), sent as the `<merchantid>` element
+// - `key2` => Account, the RealEx sub-account, sent as the `<account>` element
+// - `api_secret` => Refund (rebate) password, hashed into `<refundhash>`
+pub struct GlobalpaymentsRealexAuthType {
+ #[allow(dead_code)]
+ pub(super) shared_secret: Secret<String>,
+ #[allow(dead_code)]
+ pub(super) merchant_id: Secret<String>,
+ #[allow(dead_code)]
+ pub(super) account: Secret<String>,
+ #[allow(dead_code)]
+ pub(super) refund_password: Secret<String>,
+}
+
+impl TryFrom<&ConnectorAuthType> for GlobalpaymentsRealexAuthType {
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {
+ match auth_type {
+ ConnectorAuthType::MultiAuthKey {
+ api_key,
+ key1,
+ key2,
+ api_secret,
+ } => Ok(Self {
+ shared_secret: api_key.to_owned(),
+ merchant_id: key1.to_owned(),
+ account: key2.to_owned(),
+ refund_password: api_secret.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 GlobalpaymentsRealexPaymentStatus {
+ Succeeded,
+ Failed,
+ #[default]
+ Processing,
+}
+
+impl From<GlobalpaymentsRealexPaymentStatus> for common_enums::AttemptStatus {
+ fn from(item: GlobalpaymentsRealexPaymentStatus) -> Self {
+ match item {
+ GlobalpaymentsRealexPaymentStatus::Succeeded => Self::Charged,
+ GlobalpaymentsRealexPaymentStatus::Failed => Self::Failure,
+ GlobalpaymentsRealexPaymentStatus::Processing => Self::Authorizing,
+ }
+ }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
+pub struct GlobalpaymentsRealexPaymentsResponse {
+ status: GlobalpaymentsRealexPaymentStatus,
+ id: String,
+}
+
+impl<F, T>
+ TryFrom<ResponseRouterData<F, GlobalpaymentsRealexPaymentsResponse, T, PaymentsResponseData>>
+ for RouterData<F, T, PaymentsResponseData>
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: ResponseRouterData<F, GlobalpaymentsRealexPaymentsResponse, 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,
+ network_txn_link_id: None,
+ connector_response_reference_id: None,
+ incremental_authorization_allowed: None,
+ authentication_data: None,
+ charges: None,
+ payment_account_reference: None,
+ }),
+ ..item.data
+ })
+ }
+}
+
+//TODO: Fill the struct with respective fields
+// REFUND :
+// Type definition for RefundRequest
+#[derive(Default, Debug, Serialize)]
+pub struct GlobalpaymentsRealexRefundRequest {
+ pub amount: MinorUnit,
+}
+
+impl<F> TryFrom<&GlobalpaymentsRealexRouterData<&RefundsRouterData<F>>>
+ for GlobalpaymentsRealexRefundRequest
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: &GlobalpaymentsRealexRouterData<&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 GlobalpaymentsRealexErrorResponse {
+ 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 5503c302bc..76857a8d0e 100644
--- a/crates/hyperswitch_connectors/src/default_implementations.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations.rs
@@ -262,6 +262,7 @@ default_imp_for_authorize_session_token!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::Gpayments,
@@ -439,6 +440,7 @@ default_imp_for_payment_settlement_split_create!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -619,6 +621,7 @@ default_imp_for_calculate_tax!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -872,6 +875,7 @@ default_imp_for_session_update!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1051,6 +1055,7 @@ default_imp_for_post_session_tokens!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1227,6 +1232,7 @@ default_imp_for_create_order!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1417,6 +1423,7 @@ default_imp_for_update_post_confirm!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1582,6 +1589,7 @@ default_imp_for_update_metadata!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1771,6 +1779,7 @@ default_imp_for_cancel_post_capture!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1961,6 +1970,7 @@ default_imp_for_cancel_post_capture_sync!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2068,6 +2078,7 @@ default_imp_for_complete_authorize!(
connectors::Gigadat,
connectors::Givepayments,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2225,6 +2236,7 @@ default_imp_for_incremental_authorization!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2470,6 +2482,7 @@ default_imp_for_extend_authorization!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2577,6 +2590,7 @@ default_imp_for_create_customer!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gpayments,
connectors::Hipay,
@@ -2747,6 +2761,7 @@ default_imp_for_connector_redirect_response!(
connectors::Gigadat,
connectors::Givepayments,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2917,6 +2932,7 @@ default_imp_for_pre_authenticate_steps!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3086,6 +3102,7 @@ default_imp_for_authenticate_steps!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3267,6 +3284,7 @@ default_imp_for_post_authenticate_steps!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3442,6 +3460,7 @@ default_imp_for_post_processing_steps!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3623,6 +3642,7 @@ default_imp_for_approve!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3805,6 +3825,7 @@ default_imp_for_reject!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3989,6 +4010,7 @@ default_imp_for_webhook_source_verification!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4166,6 +4188,7 @@ default_imp_for_accept_dispute!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4344,6 +4367,7 @@ default_imp_for_submit_evidence!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4522,6 +4546,7 @@ default_imp_for_defend_dispute!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4704,6 +4729,7 @@ default_imp_for_fetch_disputes!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4885,6 +4911,7 @@ default_imp_for_dispute_sync!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5073,6 +5100,7 @@ default_imp_for_file_upload!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5243,6 +5271,7 @@ default_imp_for_payouts!(
connectors::Getnet,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::Gpayments,
@@ -5408,6 +5437,7 @@ default_imp_for_payouts_create!(
connectors::Getnet,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5588,6 +5618,7 @@ default_imp_for_payouts_retrieve!(
connectors::Getnet,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::Gpayments,
@@ -5761,6 +5792,7 @@ default_imp_for_payouts_eligibility!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5940,6 +5972,7 @@ default_imp_for_payouts_fulfill!(
connectors::Getnet,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::Gpayments,
@@ -6108,6 +6141,7 @@ default_imp_for_payouts_cancel!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -6286,6 +6320,7 @@ default_imp_for_payouts_quote!(
connectors::Getnet,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -6467,6 +6502,7 @@ default_imp_for_payouts_recipient!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -6647,6 +6683,7 @@ default_imp_for_payouts_recipient_account!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -6829,6 +6866,7 @@ default_imp_for_frm_sale!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -7008,6 +7046,7 @@ default_imp_for_frm_checkout!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -7188,6 +7227,7 @@ default_imp_for_po_frm!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -7369,6 +7409,7 @@ default_imp_for_frm_transaction!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -7549,6 +7590,7 @@ default_imp_for_frm_fulfillment!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -7729,6 +7771,7 @@ default_imp_for_frm_record_return!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -7904,6 +7947,7 @@ default_imp_for_revoking_mandates!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -8084,6 +8128,7 @@ default_imp_for_uas_pre_authentication!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -8263,6 +8308,7 @@ default_imp_for_uas_webhook!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -8442,6 +8488,7 @@ default_imp_for_uas_post_authentication!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -8622,6 +8669,7 @@ default_imp_for_uas_authentication_confirmation!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -8794,6 +8842,7 @@ default_imp_for_connector_request_id!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -8967,6 +9016,7 @@ default_imp_for_fraud_check!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -9169,6 +9219,7 @@ default_imp_for_connector_authentication!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -9346,6 +9397,7 @@ default_imp_for_uas_authentication!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -9537,6 +9589,7 @@ default_imp_for_revenue_recovery_dispute_record_back!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -9704,6 +9757,7 @@ default_imp_for_revenue_recovery!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -9936,6 +9990,7 @@ default_imp_for_subscriptions!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -10118,6 +10173,7 @@ default_imp_for_billing_connector_payment_sync!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -10292,6 +10348,7 @@ default_imp_for_revenue_recovery_record_back!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -10473,6 +10530,7 @@ default_imp_for_billing_connector_invoice_sync!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -10648,6 +10706,7 @@ default_imp_for_external_vault!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -10828,6 +10887,7 @@ default_imp_for_external_vault_insert!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -11005,6 +11065,7 @@ default_imp_for_gift_card_balance_check!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -11187,6 +11248,7 @@ default_imp_for_external_vault_retrieve!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -11367,6 +11429,7 @@ default_imp_for_external_vault_delete!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -11550,6 +11613,7 @@ default_imp_for_external_vault_create!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -11730,6 +11794,7 @@ default_imp_for_connector_authentication_token!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -11909,6 +11974,7 @@ default_imp_for_external_vault_proxy_payments_create!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -12101,6 +12167,7 @@ default_imp_for_connector_webhook_register!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -13100,6 +13167,7 @@ default_imp_for_generate_qr_flow!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -13281,6 +13349,7 @@ default_imp_for_push_notification_flow!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -13532,6 +13601,7 @@ default_imp_for_pre_authorize_void!(
connectors::Flexiti,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -13666,6 +13736,7 @@ default_imp_for_refund_void_post_refund!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
diff --git a/crates/hyperswitch_connectors/src/default_implementations_v2.rs b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
index 284855c77e..6fa5ce4740 100644
--- a/crates/hyperswitch_connectors/src/default_implementations_v2.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
@@ -435,6 +435,7 @@ default_imp_for_new_connector_integration_payment!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -625,6 +626,7 @@ default_imp_for_new_connector_integration_refund!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -798,6 +800,7 @@ default_imp_for_new_connector_integration_connector_authentication_token!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -969,6 +972,7 @@ default_imp_for_new_connector_integration_connector_access_token!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1150,6 +1154,7 @@ default_imp_for_new_connector_integration_accept_dispute!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1331,6 +1336,7 @@ default_imp_for_new_connector_integration_fetch_disputes!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1513,6 +1519,7 @@ default_imp_for_new_connector_integration_dispute_sync!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1695,6 +1702,7 @@ default_imp_for_new_connector_integration_defend_dispute!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -1875,6 +1883,7 @@ default_imp_for_new_connector_integration_submit_evidence!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2066,6 +2075,7 @@ default_imp_for_new_connector_integration_file_upload!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2249,6 +2259,7 @@ default_imp_for_new_connector_integration_payouts_create!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2432,6 +2443,7 @@ default_imp_for_new_connector_integration_payouts_eligibility!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2615,6 +2627,7 @@ default_imp_for_new_connector_integration_payouts_fulfill!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2798,6 +2811,7 @@ default_imp_for_new_connector_integration_payouts_cancel!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -2981,6 +2995,7 @@ default_imp_for_new_connector_integration_payouts_quote!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3164,6 +3179,7 @@ default_imp_for_new_connector_integration_payouts_recipient!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3347,6 +3363,7 @@ default_imp_for_new_connector_integration_payouts_sync!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3530,6 +3547,7 @@ default_imp_for_new_connector_integration_payouts_recipient_account!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3711,6 +3729,7 @@ default_imp_for_new_connector_integration_webhook_source_verification!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -3894,6 +3913,7 @@ default_imp_for_new_connector_integration_frm_sale!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4077,6 +4097,7 @@ default_imp_for_new_connector_integration_frm_checkout!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4260,6 +4281,7 @@ default_imp_for_new_connector_integration_frm_transaction!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4443,6 +4465,7 @@ default_imp_for_new_connector_integration_frm_fulfillment!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4626,6 +4649,7 @@ default_imp_for_new_connector_integration_frm_record_return!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4807,6 +4831,7 @@ default_imp_for_new_connector_integration_revoking_mandates!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -4981,6 +5006,7 @@ default_imp_for_new_connector_integration_frm_payout!(
connectors::Fiuu,
connectors::Flexiti,
connectors::Forte,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5128,6 +5154,7 @@ default_imp_for_new_connector_integration_frm!(
connectors::Flexiti,
connectors::Forte,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5308,6 +5335,7 @@ default_imp_for_new_connector_integration_connector_authentication!(
connectors::Flexiti,
connectors::Forte,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5486,6 +5514,7 @@ default_imp_for_new_connector_integration_revenue_recovery!(
connectors::Flexiti,
connectors::Forte,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5672,6 +5701,7 @@ default_imp_for_new_connector_integration_external_vault!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -5852,6 +5882,7 @@ default_imp_for_new_connector_integration_external_vault_proxy!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
@@ -6045,6 +6076,7 @@ default_imp_for_new_connector_integration_webhook_register!(
connectors::Givepayments,
connectors::Globalpay,
connectors::GlobalpaymentsHeartland,
+ connectors::GlobalpaymentsRealex,
connectors::Globepay,
connectors::Gocardless,
connectors::GotymeSanlam,
diff --git a/crates/hyperswitch_domain_models/src/connector_endpoints.rs b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
index 77c7324a8d..36d0c4272b 100644
--- a/crates/hyperswitch_domain_models/src/connector_endpoints.rs
+++ b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
@@ -71,6 +71,7 @@ pub struct Connectors {
pub givepayments: ConnectorParams,
pub globalpay: ConnectorParams,
pub globalpayments_heartland: ConnectorParams,
+ pub globalpayments_realex: ConnectorParams,
pub globepay: ConnectorParams,
pub gocardless: ConnectorParams,
pub gotyme_sanlam: ConnectorParams,
diff --git a/crates/payment_methods/src/configs/payment_connector_required_fields.rs b/crates/payment_methods/src/configs/payment_connector_required_fields.rs
index 92a341f50a..4dcc0c2919 100644
--- a/crates/payment_methods/src/configs/payment_connector_required_fields.rs
+++ b/crates/payment_methods/src/configs/payment_connector_required_fields.rs
@@ -1579,6 +1579,10 @@ fn get_cards_required_fields() -> HashMap<Connector, RequiredFieldFinal> {
Connector::GlobalpaymentsHeartland,
fields(vec![], card_basic(), vec![]),
),
+ (
+ Connector::GlobalpaymentsRealex,
+ fields(vec![], card_basic(), vec![]),
+ ),
(
Connector::Hipay,
fields(
diff --git a/crates/router/src/connector.rs b/crates/router/src/connector.rs
index 5f6e2b5331..8626429bb8 100644
--- a/crates/router/src/connector.rs
+++ b/crates/router/src/connector.rs
@@ -25,7 +25,8 @@ pub use hyperswitch_connectors::connectors::{
fiservemea, fiservemea::Fiservemea, fiuu, fiuu::Fiuu, flexiti, flexiti::Flexiti, forte,
forte::Forte, getnet, getnet::Getnet, gigadat, gigadat::Gigadat, givepayments,
givepayments::Givepayments, globalpay, globalpay::Globalpay, globalpayments_heartland,
- globalpayments_heartland::GlobalpaymentsHeartland, globepay, globepay::Globepay, gocardless,
+ globalpayments_heartland::GlobalpaymentsHeartland, globalpayments_realex,
+ globalpayments_realex::GlobalpaymentsRealex, globepay, globepay::Globepay, gocardless,
gocardless::Gocardless, gotyme_sanlam, gotyme_sanlam::GotymeSanlam, gpayments,
gpayments::Gpayments, helcim, helcim::Helcim, hipay, hipay::Hipay, hyperpg, hyperpg::Hyperpg,
hyperswitch_vault, hyperswitch_vault::HyperswitchVault, hyperwallet, hyperwallet::Hyperwallet,
diff --git a/crates/router/src/core/connector_validation.rs b/crates/router/src/core/connector_validation.rs
index 6bc095f685..f40fea0df6 100644
--- a/crates/router/src/core/connector_validation.rs
+++ b/crates/router/src/core/connector_validation.rs
@@ -315,6 +315,12 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
globalpay::transformers::GlobalPayMeta::try_from(self.connector_meta_data)?;
Ok(())
}
+ api_enums::Connector::GlobalpaymentsRealex => {
+ globalpayments_realex::transformers::GlobalpaymentsRealexAuthType::try_from(
+ self.auth_type,
+ )?;
+ Ok(())
+ }
api_enums::Connector::Globepay => {
globepay::transformers::GlobepayAuthType::try_from(self.auth_type)?;
Ok(())
diff --git a/crates/router/src/core/unified_connector_service/connector_config.rs b/crates/router/src/core/unified_connector_service/connector_config.rs
index aa22562c01..67cb624ce1 100644
--- a/crates/router/src/core/unified_connector_service/connector_config.rs
+++ b/crates/router/src/core/unified_connector_service/connector_config.rs
@@ -513,6 +513,18 @@ pub enum ConnectorSpecificConfig {
location_id: Secret<String>,
api_secret_key: Secret<String>,
},
+ /// Global Payments RealEx (legacy Global Payments XML API) configuration.
+ /// Field names mirror `GlobalpaymentsRealexConfig` in the connector-service proto.
+ /// `shared_secret` = shared secret used to build the sha1 digest (never sent verbatim)
+ /// `merchant_id` = Merchant Id / Client Id (`<merchantid>`)
+ /// `account` = RealEx sub-account, e.g. "internet" (`<account>`)
+ /// `refund_password` = rebate/refund password, hashed into `<refundhash>`
+ GlobalpaymentsRealex {
+ shared_secret: Secret<String>,
+ merchant_id: Secret<String>,
+ account: Secret<String>,
+ refund_password: Secret<String>,
+ },
/// Paytm connector configuration
Paytm {
merchant_id: Secret<String>,
@@ -1829,6 +1841,24 @@ impl ForeignTryFrom<(Connector, &ConnectorAuthType, Option<&serde_json::Value>)>
}),
_ => Err(err("Forte requires MultiAuthKey auth type")),
},
+ Connector::GlobalpaymentsRealex => match auth {
+ ConnectorAuthType::MultiAuthKey {
+ api_key,
+ key1,
+ api_secret,
+ key2,
+ } => Ok(Self::GlobalpaymentsRealex {
+ shared_secret: api_key.clone(),
+ merchant_id: key1.clone(),
+ account: key2.clone(),
+ refund_password: api_secret.clone(),
+ }),
+ _ => Err(err(
+ "GlobalpaymentsRealex requires MultiAuthKey auth type \
+ (api_key = shared secret, key1 = merchant id, key2 = account, \
+ api_secret = refund password)",
+ )),
+ },
Connector::Paybox => match auth {
ConnectorAuthType::MultiAuthKey {
api_key,
diff --git a/crates/router/src/types/api/connector_mapping.rs b/crates/router/src/types/api/connector_mapping.rs
index 8826f2378a..ed66f54e2c 100644
--- a/crates/router/src/types/api/connector_mapping.rs
+++ b/crates/router/src/types/api/connector_mapping.rs
@@ -306,6 +306,9 @@ impl ConnectorData {
enums::Connector::Globalpay => {
Ok(ConnectorEnum::Old(Box::new(connector::Globalpay::new())))
}
+ enums::Connector::GlobalpaymentsRealex => Ok(ConnectorEnum::Old(Box::new(
+ connector::GlobalpaymentsRealex::new(),
+ ))),
enums::Connector::Globepay => {
Ok(ConnectorEnum::Old(Box::new(connector::Globepay::new())))
}
diff --git a/crates/router/src/types/api/feature_matrix.rs b/crates/router/src/types/api/feature_matrix.rs
index ed212c4698..dae6ee3f62 100644
--- a/crates/router/src/types/api/feature_matrix.rs
+++ b/crates/router/src/types/api/feature_matrix.rs
@@ -218,6 +218,9 @@ impl FeatureMatrixConnectorData {
enums::Connector::Globalpay => {
Ok(ConnectorEnum::Old(Box::new(connector::Globalpay::new())))
}
+ enums::Connector::GlobalpaymentsRealex => Ok(ConnectorEnum::Old(Box::new(
+ connector::GlobalpaymentsRealex::new(),
+ ))),
enums::Connector::Globepay => {
Ok(ConnectorEnum::Old(Box::new(connector::Globepay::new())))
}
diff --git a/crates/router/src/types/connector_transformers.rs b/crates/router/src/types/connector_transformers.rs
index af3e3c91d1..d956d90281 100644
--- a/crates/router/src/types/connector_transformers.rs
+++ b/crates/router/src/types/connector_transformers.rs
@@ -80,6 +80,7 @@ impl ForeignTryFrom<api_enums::Connector> for euclid::enums::RoutableConnectors
api_enums::Connector::Givepayments => Self::Givepayments,
api_enums::Connector::Globalpay => Self::Globalpay,
api_enums::Connector::GlobalpaymentsHeartland => Self::GlobalpaymentsHeartland,
+ api_enums::Connector::GlobalpaymentsRealex => Self::GlobalpaymentsRealex,
api_enums::Connector::Globepay => Self::Globepay,
api_enums::Connector::Gocardless => Self::Gocardless,
api_enums::Connector::GotymeSanlam => Self::GotymeSanlam,
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index f0ab753a3b..3650cc4772 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -180,6 +180,7 @@ gigadat.base_url = "https://interac.express-connect.com/"
givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.sandbox.globalpay.com/ucp/"
globalpayments_heartland.base_url = "https://cert.api2.heartlandportico.com/Hps.Exchange.PosGateway/PosGatewayService.asmx"
+globalpayments_realex.base_url = "https://api.sandbox.realexpayments.com/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
gotyme_sanlam.base_url = "dev"
@@ -977,6 +978,7 @@ sts_role_session_name = ""
paybox = { payment_method = "card" }
redsys = { payment_method = "card" }
barclaycard = { payment_method = "card" }
+globalpayments_realex = { payment_method = "card" }
worldpayxml = { payment_method = "card" }
paydotcom = { payment_method = "card" } # Pay.com gateway 3DS settles on CompleteAuthorize; the card must be restorable