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): [Givepayments] Add Connector Template Code (#13199)

Anuragccb6e3ef9ba0
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 91fdd892f8..3f6a3d9958 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -17245,6 +17245,7 @@
"forte",
"getnet",
"gigadat",
+ "givepayments",
"globalpay",
"globepay",
"gocardless",
@@ -41475,6 +41476,7 @@
"forte",
"getnet",
"gigadat",
+ "givepayments",
"globalpay",
"globepay",
"gocardless",
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index 142190caa7..9ce3ea2efe 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -11448,6 +11448,7 @@
"forte",
"getnet",
"gigadat",
+ "givepayments",
"globalpay",
"globepay",
"gocardless",
@@ -29791,6 +29792,7 @@
"forte",
"getnet",
"gigadat",
+ "givepayments",
"globalpay",
"globepay",
"gocardless",
diff --git a/config/config.example.toml b/config/config.example.toml
index 5fb4e31408..9bf88fc1cc 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -331,6 +331,7 @@ fiuu.third_base_url="https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
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/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
@@ -677,8 +678,8 @@ bank_transfer.pix_automatico_qr = { connector_list = "santander" }
network_token.network_token.connector_list = "peachpayments"
[mandates.supported_payment_methods]
-card.credit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,mollie.airwallex,peachpayments,imerchantsolutions"
-card.debit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,mollie,airwallex,peachpayments,imerchantsolutions"
+card.credit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,mollie.airwallex,peachpayments,imerchantsolutions,givepayments"
+card.debit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,mollie,airwallex,peachpayments,imerchantsolutions,givepayments"
wallet.paypal = { connector_list = "adyen,novalnet" } # Mandate supported payment method type and connector for wallets
pay_later.klarna = { connector_list = "adyen" } # Mandate supported payment method type and connector for pay_later
bank_debit.ach = { connector_list = "gocardless,adyen" } # Mandate supported payment method type and connector for bank_debit
@@ -1428,7 +1429,7 @@ url = "http://localhost:8080" # Open Router URL
base_url = "http://localhost:8000" # Unified Connector Service Base URL
connection_timeout = 10 # Connection Timeout Duration in Seconds
request_timeout = 35 # Per-RPC Request Timeout in Seconds
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans" # 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" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
[grpc_client.recovery_decider_client] # Revenue recovery client base url
diff --git a/config/deployments/env_specific.toml b/config/deployments/env_specific.toml
index 14415ce873..f07477ab57 100644
--- a/config/deployments/env_specific.toml
+++ b/config/deployments/env_specific.toml
@@ -492,7 +492,7 @@ payment_method = "payment_method_types" # <payment_method> = comma-separated clo
base_url = "http://localhost:8000" # Unified Connector Service Base URL
connection_timeout = 10 # Connection Timeout Duration in Seconds
request_timeout = 35 # Per-RPC Request Timeout in Seconds
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, jpmorgan, datatrans, tsys_transit" # 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" # Comma-separated list of connectors that use UCS only
ucs_psync_disabled_connectors = "cashtocode, trustly" # Comma-separated list of connectors to disable UCS PSync call
[revenue_recovery]
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index 6160219071..97058ea745 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -79,6 +79,7 @@ fiuu.third_base_url="https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
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/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
@@ -263,8 +264,8 @@ bank_debit.ach = { connector_list = "gocardless,adyen,stripe,payload" }
bank_debit.becs = { connector_list = "gocardless,stripe,adyen" }
bank_debit.bacs = { connector_list = "stripe,gocardless" }
bank_debit.sepa = { connector_list = "gocardless,adyen,stripe,deutschebank" }
-card.credit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
-card.debit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
+card.credit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
+card.debit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
pay_later.klarna.connector_list = "adyen,aci"
wallet.apple_pay.connector_list = "aci,checkout,stripe,adyen,braintree,cybersource,noon,bankofamerica,nexinets,novalnet,nuvei,authorizedotnet,wellsfargo,finix,nmi,tesouro,worldpaymodular,worldpayxml,payme,imerchantsolutions"
wallet.samsung_pay.connector_list = "aci,cybersource"
@@ -1027,7 +1028,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" # 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" # 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 810383ae1d..b7b202f29c 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -82,6 +82,7 @@ fiuu.third_base_url="https://api.merchant.razer.com/"
forte.base_url = "https://api.forte.net/v3"
getnet.base_url = "https://api.getneteurope.com/engine/rest"
gigadat.base_url = "https://interac.express-connect.com/"
+givepayments.base_url = "https://api-sandbox.givepayments.com"
globalpay.base_url = "https://apis.globalpay.com/ucp/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api.gocardless.com"
@@ -263,8 +264,8 @@ bank_debit.ach = { connector_list = "gocardless,adyen,stripe,payload" }
bank_debit.becs = { connector_list = "gocardless,stripe,adyen" }
bank_debit.bacs = { connector_list = "stripe,gocardless" }
bank_debit.sepa = { connector_list = "gocardless,adyen,stripe,deutschebank" }
-card.credit.connector_list = "aci,checkout,stripe,zift,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
-card.debit.connector_list = "aci,checkout,stripe,zift,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
+card.credit.connector_list = "aci,checkout,stripe,zift,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
+card.debit.connector_list = "aci,checkout,stripe,zift,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
pay_later.klarna.connector_list = "adyen,aci"
wallet.apple_pay.connector_list = "aci,checkout,stripe,adyen,braintree,cybersource,noon,bankofamerica,nuvei,nexinets,novalnet,authorizedotnet,wellsfargo,worldpayvantiv,finix,nmi,tesouro,worldpaymodular,worldpayxml,payme,imerchantsolutions"
wallet.samsung_pay.connector_list = "aci,cybersource"
@@ -1035,7 +1036,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" # 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" # 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 0fbf410a5b..db6bd46b09 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -82,6 +82,7 @@ fiuu.third_base_url="https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
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/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
@@ -270,8 +271,8 @@ bank_debit.ach = { connector_list = "gocardless,adyen,stripe,payload" }
bank_debit.becs = { connector_list = "gocardless,stripe,adyen" }
bank_debit.bacs = { connector_list = "stripe,gocardless" }
bank_debit.sepa = { connector_list = "gocardless,adyen,stripe,deutschebank" }
-card.credit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
-card.debit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
+card.credit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
+card.debit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
pay_later.klarna.connector_list = "adyen,aci"
wallet.apple_pay.connector_list = "aci,checkout,stripe,adyen,braintree,cybersource,noon,bankofamerica,nexinets,novalnet,nuvei,authorizedotnet,wellsfargo,worldpaymodular,worldpayvantiv,finix,nmi,tesouro,worldpayxml,payme,imerchantsolutions"
wallet.samsung_pay.connector_list = "aci,cybersource"
@@ -1046,7 +1047,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" # 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" # 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 41f4e392cc..8ef3e4dc0b 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -355,6 +355,7 @@ fiuu.third_base_url = "https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
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/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
@@ -1278,8 +1279,8 @@ bank_debit.ach = { connector_list = "gocardless,adyen,stripe,payload" }
bank_debit.becs = { connector_list = "gocardless,stripe,adyen" }
bank_debit.bacs = { connector_list = "stripe,gocardless" }
bank_debit.sepa = { connector_list = "gocardless,adyen,stripe,deutschebank" }
-card.credit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
-card.debit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions"
+card.credit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
+card.debit.connector_list = "aci,checkout,stripe,adyen,zift,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,archipel,worldpayvantiv,payload,paysafe,finix,tesouro,mollie,airwallex,peachpayments,fiservcommercehub,imerchantsolutions,givepayments"
pay_later.klarna.connector_list = "adyen,aci"
wallet.apple_pay.connector_list = "aci,checkout,stripe,adyen,braintree,cybersource,noon,bankofamerica,nuvei,nexinets,novalnet,authorizedotnet,wellsfargo,worldpayvantiv,finix,nmi,tesouro,worldpaymodular,worldpayxml,payme,imerchantsolutions"
wallet.samsung_pay.connector_list = "aci,cybersource"
@@ -1567,7 +1568,7 @@ enabled = "true"
base_url = "http://localhost:8000"
connection_timeout = 10
request_timeout = 35
-ucs_only_connectors = "imerchantsolutions, paytm, phonepe, hyperpg, revolv3, fiservcommercehub, absa_sanlam, interpayments, payconex, dlocal, barclaycard, tsys_transit, jpmorgan, datatrans" # 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" # 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 9b801c0b10..d68b0af823 100644
--- a/config/docker_compose.toml
+++ b/config/docker_compose.toml
@@ -254,6 +254,7 @@ fiuu.third_base_url = "https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
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/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
@@ -1186,8 +1187,8 @@ wallet.google_pay = { connector_list = "stripe,cybersource,adyen,zift,bankofamer
wallet.apple_pay = { connector_list = "stripe,adyen,braintree,cybersource,zift,noon,bankofamerica,authorizedotnet,novalnet,multisafepay,wellsfargo,nuvei,worldpayxml,payme,imerchantsolutions" }
wallet.samsung_pay = { connector_list = "cybersource" }
wallet.paypal = { connector_list = "adyen,novalnet,authorizedotnet" }
-card.credit = { connector_list = "aci,checkout,stripe,adyen,authorizedotnet,zift,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,elavon,xendit,novalnet,bamboraapac,archipel,wellsfargo,worldpayvantiv,payload,mollie,airwallex,peachpayments,imerchantsolutions" }
-card.debit = { connector_list = "aci,checkout,stripe,adyen,authorizedotnet,zift,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,elavon,xendit,novalnet,bamboraapac,archipel,wellsfargo,worldpayvantiv,payload,mollie,airwallex,peachpayments,imerchantsolutions" }
+card.credit = { connector_list = "aci,checkout,stripe,adyen,authorizedotnet,zift,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,elavon,xendit,novalnet,bamboraapac,archipel,wellsfargo,worldpayvantiv,payload,mollie,airwallex,peachpayments,imerchantsolutions,givepayments" }
+card.debit = { connector_list = "aci,checkout,stripe,adyen,authorizedotnet,zift,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,elavon,xendit,novalnet,bamboraapac,archipel,wellsfargo,worldpayvantiv,payload,mollie,airwallex,peachpayments,imerchantsolutions,givepayments" }
bank_debit.ach = { connector_list = "gocardless,adyen" }
bank_debit.becs = { connector_list = "gocardless" }
bank_debit.bacs = { connector_list = "adyen" }
diff --git a/connector-template/mod.rs b/connector-template/mod.rs
index dae9ed1697..96301a26a8 100644
--- a/connector-template/mod.rs
+++ b/connector-template/mod.rs
@@ -569,7 +569,7 @@ impl webhooks::IncomingWebhook for {{project-name | downcase | pascal_case}} {
fn get_webhook_event_type(
&self,
_request: &webhooks::IncomingWebhookRequestDetails<'_>,
- _context: Option<&webhooks::WebhookResourceData>,
+ _context: Option<&webhooks::WebhookContext>,
) -> CustomResult<api_models::webhooks::IncomingWebhookEvent, errors::ConnectorError> {
Err(report!(errors::ConnectorError::WebhooksNotImplemented))
}
diff --git a/connector-template/transformers.rs b/connector-template/transformers.rs
index da5428b022..ca30570443 100644
--- a/connector-template/transformers.rs
+++ b/connector-template/transformers.rs
@@ -124,6 +124,7 @@ impl<F,T> TryFrom<ResponseRouterData<F, {{project-name | downcase | pascal_case}
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,
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rs
index 97f2dcefde..cf0378939e 100644
--- a/crates/common_enums/src/connector_enums.rs
+++ b/crates/common_enums/src/connector_enums.rs
@@ -115,6 +115,7 @@ pub enum Connector {
Forte,
Getnet,
Gigadat,
+ Givepayments,
Globalpay,
Globepay,
Gocardless,
@@ -445,7 +446,8 @@ impl Connector {
| Self::Payjustnow
| Self::Payjustnowinstore
| Self::Phonepe
- | Self::Imerchantsolutions => false,
+ | Self::Imerchantsolutions
+ | Self::Givepayments => false,
Self::Stripe | Self::Checkout | Self::Zift | Self::Nmi | Self::Braintree|
Self::Cybersource | Self::Archipel | Self::Nuvei | Self::Adyen => true,
}
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index 64ddad945d..5d0a24ae54 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -323,6 +323,7 @@ pub struct ConnectorConfig {
pub forte: Option<ConnectorTomlConfig>,
pub getnet: Option<ConnectorTomlConfig>,
pub gigadat: Option<ConnectorTomlConfig>,
+ pub givepayments: Option<ConnectorTomlConfig>,
#[cfg(feature = "payouts")]
pub gigadat_payout: Option<ConnectorTomlConfig>,
pub globalpay: Option<ConnectorTomlConfig>,
@@ -699,6 +700,7 @@ impl ConnectorConfig {
Connector::Payjustnow => Ok(connector_data.payjustnow),
Connector::Payjustnowinstore => Ok(connector_data.payjustnowinstore),
Connector::Imerchantsolutions => Ok(connector_data.imerchantsolutions),
+ Connector::Givepayments => Ok(connector_data.givepayments),
}
}
}
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index 0dc9e9ab39..1642a57b7c 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -8727,3 +8727,37 @@ api_key = "API Key"
[payconex.connector_auth.BodyKey]
api_key = "API Key"
key1 = "Account Id"
+
+[givepayments]
+[givepayments.connector_auth.HeaderKey]
+api_key = "API Key"
+[givepayments.connector_webhook_details]
+merchant_secret="Source verification key"
+[[givepayments.credit]]
+payment_method_type = "Mastercard"
+[[givepayments.credit]]
+payment_method_type = "Visa"
+[[givepayments.credit]]
+payment_method_type = "AmericanExpress"
+[[givepayments.credit]]
+payment_method_type = "JCB"
+[[givepayments.credit]]
+payment_method_type = "Discover"
+[[givepayments.credit]]
+payment_method_type = "DinersClub"
+[[givepayments.credit]]
+payment_method_type = "UnionPay"
+[[givepayments.debit]]
+payment_method_type = "Mastercard"
+[[givepayments.debit]]
+payment_method_type = "Visa"
+[[givepayments.debit]]
+payment_method_type = "AmericanExpress"
+[[givepayments.debit]]
+payment_method_type = "JCB"
+[[givepayments.debit]]
+payment_method_type = "Discover"
+[[givepayments.debit]]
+payment_method_type = "DinersClub"
+[[givepayments.debit]]
+payment_method_type = "UnionPay"
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index 1fb2c70832..20aa806100 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -7782,3 +7782,37 @@ api_key = "API Key"
[payconex.connector_auth.BodyKey]
api_key = "API Key"
key1 = "Account Id"
+
+[givepayments]
+[givepayments.connector_auth.HeaderKey]
+api_key = "API Key"
+[givepayments.connector_webhook_details]
+merchant_secret="Source verification key"
+[[givepayments.credit]]
+payment_method_type = "Mastercard"
+[[givepayments.credit]]
+payment_method_type = "Visa"
+[[givepayments.credit]]
+payment_method_type = "AmericanExpress"
+[[givepayments.credit]]
+payment_method_type = "JCB"
+[[givepayments.credit]]
+payment_method_type = "Discover"
+[[givepayments.credit]]
+payment_method_type = "DinersClub"
+[[givepayments.credit]]
+payment_method_type = "UnionPay"
+[[givepayments.debit]]
+payment_method_type = "Mastercard"
+[[givepayments.debit]]
+payment_method_type = "Visa"
+[[givepayments.debit]]
+payment_method_type = "AmericanExpress"
+[[givepayments.debit]]
+payment_method_type = "JCB"
+[[givepayments.debit]]
+payment_method_type = "Discover"
+[[givepayments.debit]]
+payment_method_type = "DinersClub"
+[[givepayments.debit]]
+payment_method_type = "UnionPay"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index b470242948..f50cb7d832 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -8701,3 +8701,37 @@ api_key = "API Key"
[payconex.connector_auth.BodyKey]
api_key = "API Key"
key1 = "Account Id"
+
+[givepayments]
+[givepayments.connector_auth.HeaderKey]
+api_key = "API Key"
+[givepayments.connector_webhook_details]
+merchant_secret="Source verification key"
+[[givepayments.credit]]
+payment_method_type = "Mastercard"
+[[givepayments.credit]]
+payment_method_type = "Visa"
+[[givepayments.credit]]
+payment_method_type = "AmericanExpress"
+[[givepayments.credit]]
+payment_method_type = "JCB"
+[[givepayments.credit]]
+payment_method_type = "Discover"
+[[givepayments.credit]]
+payment_method_type = "DinersClub"
+[[givepayments.credit]]
+payment_method_type = "UnionPay"
+[[givepayments.debit]]
+payment_method_type = "Mastercard"
+[[givepayments.debit]]
+payment_method_type = "Visa"
+[[givepayments.debit]]
+payment_method_type = "AmericanExpress"
+[[givepayments.debit]]
+payment_method_type = "JCB"
+[[givepayments.debit]]
+payment_method_type = "Discover"
+[[givepayments.debit]]
+payment_method_type = "DinersClub"
+[[givepayments.debit]]
+payment_method_type = "UnionPay"
diff --git a/crates/euclid/src/enums.rs b/crates/euclid/src/enums.rs
index 0a867fbc6b..a22b6a14ad 100644
--- a/crates/euclid/src/enums.rs
+++ b/crates/euclid/src/enums.rs
@@ -276,6 +276,7 @@ pub enum RoutableConnectors {
Forte,
Getnet,
Gigadat,
+ Givepayments,
Globalpay,
Globepay,
Gocardless,
@@ -441,6 +442,7 @@ impl TryFrom<Connector> for RoutableConnectors {
Connector::Fiuu => Ok(Self::Fiuu),
Connector::Flexiti => Ok(Self::Flexiti),
Connector::Forte => Ok(Self::Forte),
+ Connector::Givepayments => Ok(Self::Givepayments),
Connector::Globalpay => Ok(Self::Globalpay),
Connector::Globepay => Ok(Self::Globepay),
Connector::Gocardless => Ok(Self::Gocardless),
@@ -607,6 +609,7 @@ impl From<RoutableConnectors> for Connector {
RoutableConnectors::Forte => Self::Forte,
RoutableConnectors::Getnet => Self::Getnet,
RoutableConnectors::Gigadat => Self::Gigadat,
+ RoutableConnectors::Givepayments => Self::Givepayments,
RoutableConnectors::Globalpay => Self::Globalpay,
RoutableConnectors::Globepay => Self::Globepay,
RoutableConnectors::Gocardless => Self::Gocardless,
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs
index 52f66f9cbe..43ac4a70df 100644
--- a/crates/hyperswitch_connectors/src/connectors.rs
+++ b/crates/hyperswitch_connectors/src/connectors.rs
@@ -52,6 +52,7 @@ pub mod flexiti;
pub mod forte;
pub mod getnet;
pub mod gigadat;
+pub mod givepayments;
pub mod globalpay;
pub mod globepay;
pub mod gocardless;
@@ -164,11 +165,11 @@ pub use self::{
deutschebank::Deutschebank, digitalvirgo::Digitalvirgo, dlocal::Dlocal, dwolla::Dwolla,
ebanx::Ebanx, elavon::Elavon, envoy::Envoy, facilitapay::Facilitapay, finix::Finix,
fiserv::Fiserv, fiservcommercehub::Fiservcommercehub, fiservemea::Fiservemea, fiuu::Fiuu,
- flexiti::Flexiti, forte::Forte, getnet::Getnet, gigadat::Gigadat, globalpay::Globalpay,
- globepay::Globepay, gocardless::Gocardless, gpayments::Gpayments, helcim::Helcim, hipay::Hipay,
- hyperpg::Hyperpg, hyperswitch_vault::HyperswitchVault, hyperwallet::Hyperwallet,
- iatapay::Iatapay, imerchantsolutions::Imerchantsolutions, inespay::Inespay,
- interpayments::Interpayments, itaubank::Itaubank, jpmorgan::Jpmorgan,
+ flexiti::Flexiti, forte::Forte, getnet::Getnet, gigadat::Gigadat, givepayments::Givepayments,
+ globalpay::Globalpay, globepay::Globepay, gocardless::Gocardless, gpayments::Gpayments,
+ helcim::Helcim, hipay::Hipay, hyperpg::Hyperpg, hyperswitch_vault::HyperswitchVault,
+ hyperwallet::Hyperwallet, iatapay::Iatapay, imerchantsolutions::Imerchantsolutions,
+ inespay::Inespay, interpayments::Interpayments, itaubank::Itaubank, jpmorgan::Jpmorgan,
juspaythreedsserver::Juspaythreedsserver, katapult::Katapult, klarna::Klarna, loonio::Loonio,
mifinity::Mifinity, mollie::Mollie, moneris::Moneris, mpgs::Mpgs, multisafepay::Multisafepay,
netcetera::Netcetera, nexinets::Nexinets, nexixpay::Nexixpay, nmi::Nmi, nomupay::Nomupay,
diff --git a/crates/hyperswitch_connectors/src/connectors/givepayments.rs b/crates/hyperswitch_connectors/src/connectors/givepayments.rs
new file mode 100644
index 0000000000..6fcc6040b8
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/givepayments.rs
@@ -0,0 +1,677 @@
+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};
+use transformers as givepayments;
+
+use crate::{constants::headers, types::ResponseRouterData, utils};
+
+#[derive(Clone)]
+pub struct Givepayments {
+ amount_converter: &'static (dyn AmountConvertor<Output = MinorUnit> + Sync),
+}
+
+impl Givepayments {
+ pub fn new() -> &'static Self {
+ &Self {
+ amount_converter: &MinorUnitForConnector,
+ }
+ }
+}
+
+impl api::Payment for Givepayments {}
+impl api::PaymentSession for Givepayments {}
+impl api::ConnectorAccessToken for Givepayments {}
+impl api::MandateSetup for Givepayments {}
+impl api::PaymentAuthorize for Givepayments {}
+impl api::PaymentSync for Givepayments {}
+impl api::PaymentCapture for Givepayments {}
+impl api::PaymentVoid for Givepayments {}
+impl api::Refund for Givepayments {}
+impl api::RefundExecute for Givepayments {}
+impl api::RefundSync for Givepayments {}
+impl api::PaymentToken for Givepayments {}
+
+impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
+ for Givepayments
+{
+ // Not Implemented (R)
+}
+
+impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for Givepayments
+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 Givepayments {
+ fn id(&self) -> &'static str {
+ "givepayments"
+ }
+
+ 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.givepayments.base_url.as_ref()
+ }
+
+ fn get_auth_header(
+ &self,
+ auth_type: &ConnectorAuthType,
+ ) -> CustomResult<Vec<(String, hyperswitch_masking::Maskable<String>)>, errors::ConnectorError>
+ {
+ let auth = givepayments::GivepaymentsAuthType::try_from(auth_type)
+ .change_context(errors::ConnectorError::FailedToObtainAuthType)?;
+ Ok(vec![(
+ headers::AUTHORIZATION.to_string(),
+ auth.api_key.expose().into_masked(),
+ )])
+ }
+
+ fn build_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ let response: givepayments::GivepaymentsErrorResponse = res
+ .response
+ .parse_struct("GivepaymentsErrorResponse")
+ .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 Givepayments {
+ 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 Givepayments {
+ //TODO: implement sessions flow
+}
+
+impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Givepayments {}
+
+impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData>
+ for Givepayments
+{
+}
+
+impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Givepayments {
+ 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 = givepayments::GivepaymentsRouterData::from((amount, req));
+ let connector_req =
+ givepayments::GivepaymentsPaymentsRequest::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: givepayments::GivepaymentsPaymentsResponse = res
+ .response
+ .parse_struct("Givepayments 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 Givepayments {
+ 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: givepayments::GivepaymentsPaymentsResponse = res
+ .response
+ .parse_struct("givepayments 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 Givepayments {
+ 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: givepayments::GivepaymentsPaymentsResponse = res
+ .response
+ .parse_struct("Givepayments 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 Givepayments {}
+
+impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Givepayments {
+ 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 =
+ givepayments::GivepaymentsRouterData::from((refund_amount, req));
+ let connector_req =
+ givepayments::GivepaymentsRefundRequest::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: givepayments::RefundResponse = res
+ .response
+ .parse_struct("givepayments 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 Givepayments {
+ 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: givepayments::RefundResponse = res
+ .response
+ .parse_struct("givepayments 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 Givepayments {
+ 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 GIVEPAYMENTS_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =
+ LazyLock::new(|| {
+ let supported_capture_methods = vec![enums::CaptureMethod::Automatic];
+
+ 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 givepayments_supported_payment_methods = SupportedPaymentMethods::new();
+
+ givepayments_supported_payment_methods.add(
+ enums::PaymentMethod::Card,
+ enums::PaymentMethodType::Credit,
+ PaymentMethodDetails {
+ mandates: enums::FeatureStatus::Supported,
+ 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 {
+ three_ds: common_enums::FeatureStatus::NotSupported,
+ no_three_ds: common_enums::FeatureStatus::Supported,
+ supported_card_networks: supported_card_networks.clone(),
+ }
+ }),
+ ),
+ },
+ );
+
+ givepayments_supported_payment_methods.add(
+ enums::PaymentMethod::Card,
+ enums::PaymentMethodType::Debit,
+ PaymentMethodDetails {
+ mandates: enums::FeatureStatus::Supported,
+ 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 {
+ three_ds: common_enums::FeatureStatus::NotSupported,
+ no_three_ds: common_enums::FeatureStatus::Supported,
+ supported_card_networks,
+ }
+ }),
+ ),
+ },
+ );
+
+ givepayments_supported_payment_methods
+ });
+
+static GIVEPAYMENTS_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {
+ display_name: "Givepayments",
+ description: "GivePayments connects providers, merchants, and customers through a fully integrated ecosystem of payment tools and services with built-in chargeback prevention, automated underwriting, and PCI DSS 4.0-level security.",
+ connector_type: enums::HyperswitchConnectorCategory::PaymentGateway,
+ integration_status: enums::ConnectorIntegrationStatus::Alpha,
+};
+
+static GIVEPAYMENTS_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 0] = [];
+
+impl ConnectorSpecifications for Givepayments {
+ fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {
+ Some(&GIVEPAYMENTS_CONNECTOR_INFO)
+ }
+
+ fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {
+ Some(&*GIVEPAYMENTS_SUPPORTED_PAYMENT_METHODS)
+ }
+
+ fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {
+ Some(&GIVEPAYMENTS_SUPPORTED_WEBHOOK_FLOWS)
+ }
+}
diff --git a/crates/hyperswitch_connectors/src/connectors/givepayments/transformers.rs b/crates/hyperswitch_connectors/src/connectors/givepayments/transformers.rs
new file mode 100644
index 0000000000..a90e9bd8fc
--- /dev/null
+++ b/crates/hyperswitch_connectors/src/connectors/givepayments/transformers.rs
@@ -0,0 +1,223 @@
+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 GivepaymentsRouterData<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 GivepaymentsRouterData<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 GivepaymentsPaymentsRequest {
+ amount: MinorUnit,
+ card: GivepaymentsCard,
+}
+
+#[derive(Default, Debug, Serialize, Eq, PartialEq)]
+pub struct GivepaymentsCard {
+ number: cards::CardNumber,
+ expiry_month: Secret<String>,
+ expiry_year: Secret<String>,
+ cvc: Secret<String>,
+ complete: bool,
+}
+
+impl TryFrom<&GivepaymentsRouterData<&PaymentsAuthorizeRouterData>>
+ for GivepaymentsPaymentsRequest
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: &GivepaymentsRouterData<&PaymentsAuthorizeRouterData>,
+ ) -> Result<Self, Self::Error> {
+ match item.router_data.request.payment_method_data.clone() {
+ PaymentMethodData::Card(_) => Err(errors::ConnectorError::NotImplemented(
+ "Card payment method not implemented".to_string(),
+ )
+ .into()),
+ _ => Err(errors::ConnectorError::NotImplemented("Payment method".to_string()).into()),
+ }
+ }
+}
+
+//TODO: Fill the struct with respective fields
+// Auth Struct
+pub struct GivepaymentsAuthType {
+ pub(super) api_key: Secret<String>,
+}
+
+impl TryFrom<&ConnectorAuthType> for GivepaymentsAuthType {
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {
+ match auth_type {
+ ConnectorAuthType::HeaderKey { api_key } => Ok(Self {
+ api_key: api_key.to_owned(),
+ }),
+ _ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
+ }
+ }
+}
+// PaymentsResponse
+//TODO: Append the remaining status flags
+#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize, PartialEq)]
+#[serde(rename_all = "lowercase")]
+pub enum GivepaymentsPaymentStatus {
+ Succeeded,
+ Failed,
+ #[default]
+ Processing,
+}
+
+impl From<GivepaymentsPaymentStatus> for common_enums::AttemptStatus {
+ fn from(item: GivepaymentsPaymentStatus) -> Self {
+ match item {
+ GivepaymentsPaymentStatus::Succeeded => Self::Charged,
+ GivepaymentsPaymentStatus::Failed => Self::Failure,
+ GivepaymentsPaymentStatus::Processing => Self::Authorizing,
+ }
+ }
+}
+
+//TODO: Fill the struct with respective fields
+#[derive(Default, Debug, Clone, Serialize, Deserialize, PartialEq)]
+pub struct GivepaymentsPaymentsResponse {
+ status: GivepaymentsPaymentStatus,
+ id: String,
+}
+
+impl<F, T> TryFrom<ResponseRouterData<F, GivepaymentsPaymentsResponse, T, PaymentsResponseData>>
+ for RouterData<F, T, PaymentsResponseData>
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: ResponseRouterData<F, GivepaymentsPaymentsResponse, 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,
+ }),
+ ..item.data
+ })
+ }
+}
+
+//TODO: Fill the struct with respective fields
+// REFUND :
+// Type definition for RefundRequest
+#[derive(Default, Debug, Serialize)]
+pub struct GivepaymentsRefundRequest {
+ pub amount: MinorUnit,
+}
+
+impl<F> TryFrom<&GivepaymentsRouterData<&RefundsRouterData<F>>> for GivepaymentsRefundRequest {
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(item: &GivepaymentsRouterData<&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 GivepaymentsErrorResponse {
+ 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 695a318787..356c8399d1 100644
--- a/crates/hyperswitch_connectors/src/default_implementations.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations.rs
@@ -248,6 +248,7 @@ default_imp_for_authorize_session_token!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -410,6 +411,7 @@ default_imp_for_payment_settlement_split_create!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -574,6 +576,7 @@ default_imp_for_calculate_tax!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -736,6 +739,7 @@ default_imp_for_session_update!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -900,6 +904,7 @@ default_imp_for_post_session_tokens!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -1061,6 +1066,7 @@ default_imp_for_create_order!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -1238,6 +1244,7 @@ default_imp_for_update_post_confirm!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -1386,6 +1393,7 @@ default_imp_for_update_metadata!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -1559,6 +1567,7 @@ default_imp_for_cancel_post_capture!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -1731,6 +1740,7 @@ default_imp_for_cancel_post_capture_sync!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -1893,6 +1903,7 @@ default_imp_for_complete_authorize!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globepay,
connectors::Gocardless,
connectors::Gpayments,
@@ -2038,6 +2049,7 @@ default_imp_for_incremental_authorization!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2194,6 +2206,7 @@ default_imp_for_extend_authorization!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
@@ -2357,6 +2370,7 @@ default_imp_for_create_customer!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gpayments,
@@ -2513,6 +2527,7 @@ default_imp_for_connector_redirect_response!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globepay,
connectors::Gocardless,
connectors::Gpayments,
@@ -2661,6 +2676,7 @@ default_imp_for_pre_authenticate_steps!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2818,6 +2834,7 @@ default_imp_for_authenticate_steps!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2980,6 +2997,7 @@ default_imp_for_post_authenticate_steps!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3145,6 +3163,7 @@ default_imp_for_pre_processing_steps!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gpayments,
@@ -3293,6 +3312,7 @@ default_imp_for_post_processing_steps!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3458,6 +3478,7 @@ default_imp_for_approve!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3624,6 +3645,7 @@ default_imp_for_reject!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3792,6 +3814,7 @@ default_imp_for_webhook_source_verification!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3953,6 +3976,7 @@ default_imp_for_accept_dispute!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4116,6 +4140,7 @@ default_imp_for_submit_evidence!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4278,6 +4303,7 @@ default_imp_for_defend_dispute!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4444,6 +4470,7 @@ default_imp_for_fetch_disputes!(
connectors::Flexiti,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4609,6 +4636,7 @@ default_imp_for_dispute_sync!(
connectors::Flexiti,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4781,6 +4809,7 @@ default_imp_for_file_upload!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4886,6 +4915,7 @@ macro_rules! default_imp_for_payouts {
}
default_imp_for_payouts!(
+ connectors::Givepayments,
connectors::Worldpaymodular,
connectors::Paysafe,
connectors::Affirm,
@@ -5036,6 +5066,7 @@ macro_rules! default_imp_for_payouts_create {
#[cfg(feature = "payouts")]
default_imp_for_payouts_create!(
+ connectors::Givepayments,
connectors::Paysafe,
connectors::Vgs,
connectors::AbsaSanlam,
@@ -5196,6 +5227,7 @@ macro_rules! default_imp_for_payouts_retrieve {
#[cfg(feature = "payouts")]
default_imp_for_payouts_retrieve!(
+ connectors::Givepayments,
connectors::Paysafe,
connectors::Vgs,
connectors::AbsaSanlam,
@@ -5407,6 +5439,7 @@ default_imp_for_payouts_eligibility!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -5521,6 +5554,7 @@ macro_rules! default_imp_for_payouts_fulfill {
#[cfg(feature = "payouts")]
default_imp_for_payouts_fulfill!(
+ connectors::Givepayments,
connectors::Worldpaymodular,
connectors::Paysafe,
connectors::Affirm,
@@ -5723,6 +5757,7 @@ default_imp_for_payouts_cancel!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -5835,6 +5870,7 @@ macro_rules! default_imp_for_payouts_quote {
#[cfg(feature = "payouts")]
default_imp_for_payouts_quote!(
+ connectors::Givepayments,
connectors::Vgs,
connectors::AbsaSanlam,
connectors::Aci,
@@ -6050,6 +6086,7 @@ default_imp_for_payouts_recipient!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -6214,6 +6251,7 @@ default_imp_for_payouts_recipient_account!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -6380,6 +6418,7 @@ default_imp_for_frm_sale!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -6545,6 +6584,7 @@ default_imp_for_frm_checkout!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -6710,6 +6750,7 @@ default_imp_for_frm_transaction!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -6876,6 +6917,7 @@ default_imp_for_frm_fulfillment!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -7042,6 +7084,7 @@ default_imp_for_frm_record_return!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -7203,6 +7246,7 @@ default_imp_for_revoking_mandates!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -7367,6 +7411,7 @@ default_imp_for_uas_pre_authentication!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -7530,6 +7575,7 @@ default_imp_for_uas_webhook!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -7693,6 +7739,7 @@ default_imp_for_uas_post_authentication!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -7857,6 +7904,7 @@ default_imp_for_uas_authentication_confirmation!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -8013,6 +8061,7 @@ default_imp_for_connector_request_id!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -8170,6 +8219,7 @@ default_imp_for_fraud_check!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -8358,6 +8408,7 @@ default_imp_for_connector_authentication!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -8519,6 +8570,7 @@ default_imp_for_uas_authentication!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -8675,6 +8727,7 @@ default_imp_for_revenue_recovery!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -8891,6 +8944,7 @@ default_imp_for_subscriptions!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -9057,6 +9111,7 @@ default_imp_for_billing_connector_payment_sync!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -9215,6 +9270,7 @@ default_imp_for_revenue_recovery_record_back!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -9380,6 +9436,7 @@ default_imp_for_billing_connector_invoice_sync!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -9539,6 +9596,7 @@ default_imp_for_external_vault!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -9703,6 +9761,7 @@ default_imp_for_external_vault_insert!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -9864,6 +9923,7 @@ default_imp_for_gift_card_balance_check!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -10030,6 +10090,7 @@ default_imp_for_external_vault_retrieve!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -10194,6 +10255,7 @@ default_imp_for_external_vault_delete!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -10361,6 +10423,7 @@ default_imp_for_external_vault_create!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -10525,6 +10588,7 @@ default_imp_for_connector_authentication_token!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -10688,6 +10752,7 @@ default_imp_for_external_vault_proxy_payments_create!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -10864,6 +10929,7 @@ default_imp_for_connector_webhook_register!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -11838,6 +11904,7 @@ default_imp_for_generate_qr_flow!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -12003,6 +12070,7 @@ default_imp_for_push_notification_flow!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -12173,6 +12241,7 @@ default_imp_for_pre_authorize_void!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Helcim,
connectors::HyperswitchVault,
connectors::Hyperwallet,
diff --git a/crates/hyperswitch_connectors/src/default_implementations_v2.rs b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
index 6d7795c1ee..13532c0009 100644
--- a/crates/hyperswitch_connectors/src/default_implementations_v2.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations_v2.rs
@@ -434,6 +434,7 @@ default_imp_for_new_connector_integration_payment!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -601,6 +602,7 @@ default_imp_for_new_connector_integration_refund!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -759,6 +761,7 @@ default_imp_for_new_connector_integration_connector_authentication_token!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -915,6 +918,7 @@ default_imp_for_new_connector_integration_connector_access_token!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -1081,6 +1085,7 @@ default_imp_for_new_connector_integration_accept_dispute!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -1247,6 +1252,7 @@ default_imp_for_new_connector_integration_fetch_disputes!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -1414,6 +1420,7 @@ default_imp_for_new_connector_integration_dispute_sync!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -1581,6 +1588,7 @@ default_imp_for_new_connector_integration_defend_dispute!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -1746,6 +1754,7 @@ default_imp_for_new_connector_integration_submit_evidence!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -1922,6 +1931,7 @@ default_imp_for_new_connector_integration_file_upload!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2090,6 +2100,7 @@ default_imp_for_new_connector_integration_payouts_create!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2258,6 +2269,7 @@ default_imp_for_new_connector_integration_payouts_eligibility!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2426,6 +2438,7 @@ default_imp_for_new_connector_integration_payouts_fulfill!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2594,6 +2607,7 @@ default_imp_for_new_connector_integration_payouts_cancel!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2762,6 +2776,7 @@ default_imp_for_new_connector_integration_payouts_quote!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -2930,6 +2945,7 @@ default_imp_for_new_connector_integration_payouts_recipient!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3098,6 +3114,7 @@ default_imp_for_new_connector_integration_payouts_sync!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3266,6 +3283,7 @@ default_imp_for_new_connector_integration_payouts_recipient_account!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3432,6 +3450,7 @@ default_imp_for_new_connector_integration_webhook_source_verification!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3600,6 +3619,7 @@ default_imp_for_new_connector_integration_frm_sale!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3768,6 +3788,7 @@ default_imp_for_new_connector_integration_frm_checkout!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -3936,6 +3957,7 @@ default_imp_for_new_connector_integration_frm_transaction!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4104,6 +4126,7 @@ default_imp_for_new_connector_integration_frm_fulfillment!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4272,6 +4295,7 @@ default_imp_for_new_connector_integration_frm_record_return!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4438,6 +4462,7 @@ default_imp_for_new_connector_integration_revoking_mandates!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -4548,6 +4573,7 @@ default_imp_for_new_connector_integration_frm!(
connectors::Imerchantsolutions,
connectors::Loonio,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Affirm,
connectors::Paytm,
connectors::Airwallex,
@@ -4713,6 +4739,7 @@ default_imp_for_new_connector_integration_connector_authentication!(
connectors::Imerchantsolutions,
connectors::Loonio,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Affirm,
connectors::Paytm,
connectors::Airwallex,
@@ -4867,6 +4894,7 @@ default_imp_for_new_connector_integration_revenue_recovery!(
connectors::Imerchantsolutions,
connectors::Loonio,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Affirm,
connectors::Paytm,
connectors::Airwallex,
@@ -5079,6 +5107,7 @@ default_imp_for_new_connector_integration_external_vault!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -5244,6 +5273,7 @@ default_imp_for_new_connector_integration_external_vault_proxy!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
@@ -5422,6 +5452,7 @@ default_imp_for_new_connector_integration_webhook_register!(
connectors::Forte,
connectors::Getnet,
connectors::Gigadat,
+ connectors::Givepayments,
connectors::Globalpay,
connectors::Globepay,
connectors::Gocardless,
diff --git a/crates/hyperswitch_domain_models/src/connector_endpoints.rs b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
index ca2faeee20..944b14bc2b 100644
--- a/crates/hyperswitch_domain_models/src/connector_endpoints.rs
+++ b/crates/hyperswitch_domain_models/src/connector_endpoints.rs
@@ -66,6 +66,7 @@ pub struct Connectors {
pub forte: ConnectorParams,
pub getnet: ConnectorParams,
pub gigadat: ConnectorParams,
+ pub givepayments: ConnectorParams,
pub globalpay: ConnectorParams,
pub globepay: ConnectorParams,
pub gocardless: 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 1703063945..94cdd5ac96 100644
--- a/crates/payment_methods/src/configs/payment_connector_required_fields.rs
+++ b/crates/payment_methods/src/configs/payment_connector_required_fields.rs
@@ -1832,6 +1832,21 @@ fn get_cards_required_fields() -> HashMap<Connector, RequiredFieldFinal> {
Connector::Imerchantsolutions,
fields(vec![], card_basic(), vec![]),
),
+ (
+ Connector::Givepayments,
+ RequiredFieldFinal {
+ mandate: HashMap::new(),
+ non_mandate: HashMap::from([
+ RequiredField::BillingUserFirstName.to_tuple(),
+ RequiredField::BillingUserLastName.to_tuple(),
+ RequiredField::CardNumber.to_tuple(),
+ RequiredField::CardExpMonth.to_tuple(),
+ RequiredField::CardExpYear.to_tuple(),
+ RequiredField::Email.to_tuple(),
+ ]),
+ common: HashMap::new(),
+ },
+ ),
])
}
diff --git a/crates/router/src/connector.rs b/crates/router/src/connector.rs
index 65aaa0919e..f4dc50b24a 100644
--- a/crates/router/src/connector.rs
+++ b/crates/router/src/connector.rs
@@ -22,9 +22,10 @@ pub use hyperswitch_connectors::connectors::{
envoy::Envoy, facilitapay, facilitapay::Facilitapay, finix, finix::Finix, fiserv,
fiserv::Fiserv, fiservcommercehub, fiservcommercehub::Fiservcommercehub, fiservemea,
fiservemea::Fiservemea, fiuu, fiuu::Fiuu, flexiti, flexiti::Flexiti, forte, forte::Forte,
- getnet, getnet::Getnet, gigadat, gigadat::Gigadat, globalpay, globalpay::Globalpay, globepay,
- globepay::Globepay, gocardless, gocardless::Gocardless, gpayments, gpayments::Gpayments,
- helcim, helcim::Helcim, hipay, hipay::Hipay, hyperpg, hyperpg::Hyperpg, hyperswitch_vault,
+ getnet, getnet::Getnet, gigadat, gigadat::Gigadat, givepayments, givepayments::Givepayments,
+ globalpay, globalpay::Globalpay, globepay, globepay::Globepay, gocardless,
+ gocardless::Gocardless, gpayments, gpayments::Gpayments, helcim, helcim::Helcim, hipay,
+ hipay::Hipay, hyperpg, hyperpg::Hyperpg, hyperswitch_vault,
hyperswitch_vault::HyperswitchVault, hyperwallet, hyperwallet::Hyperwallet, iatapay,
iatapay::Iatapay, imerchantsolutions, imerchantsolutions::Imerchantsolutions, inespay,
inespay::Inespay, interpayments, interpayments::Interpayments, itaubank, itaubank::Itaubank,
diff --git a/crates/router/src/core/connector_validation.rs b/crates/router/src/core/connector_validation.rs
index f6f38aea8e..9449bdd4ce 100644
--- a/crates/router/src/core/connector_validation.rs
+++ b/crates/router/src/core/connector_validation.rs
@@ -288,6 +288,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
)?;
Ok(())
}
+ api_enums::Connector::Givepayments => {
+ givepayments::transformers::GivepaymentsAuthType::try_from(self.auth_type)?;
+ Ok(())
+ }
api_enums::Connector::Globalpay => {
globalpay::transformers::GlobalpayAuthType::try_from(self.auth_type)?;
globalpay::transformers::GlobalPayMeta::try_from(self.connector_meta_data)?;
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 8f690cb7e6..935ef1fe16 100644
--- a/crates/router/src/core/unified_connector_service/connector_config.rs
+++ b/crates/router/src/core/unified_connector_service/connector_config.rs
@@ -610,6 +610,8 @@ pub enum ConnectorSpecificConfig {
api_key: Secret<String>,
base_url: Option<String>,
},
+ /// Givepayments connector configuration
+ Givepayments { api_key: Secret<String> },
}
impl ForeignTryFrom<(Connector, &ConnectorAuthType, Option<&serde_json::Value>)>
@@ -1574,6 +1576,12 @@ impl ForeignTryFrom<(Connector, &ConnectorAuthType, Option<&serde_json::Value>)>
}),
_ => Err(err("Interpayments requires HeaderKey auth type")),
},
+ Connector::Givepayments => match auth {
+ ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Givepayments {
+ api_key: api_key.clone(),
+ }),
+ _ => Err(err("Givepayments requires HeaderKey auth type")),
+ },
// --- Unsupported connectors ---
_ => Err(
error_stack::report!(errors::ApiErrorResponse::InternalServerError)
diff --git a/crates/router/src/types/api/connector_mapping.rs b/crates/router/src/types/api/connector_mapping.rs
index b70914554c..382f959e7a 100644
--- a/crates/router/src/types/api/connector_mapping.rs
+++ b/crates/router/src/types/api/connector_mapping.rs
@@ -286,6 +286,9 @@ impl ConnectorData {
enums::Connector::Gigadat => {
Ok(ConnectorEnum::Old(Box::new(connector::Gigadat::new())))
}
+ enums::Connector::Givepayments => {
+ Ok(ConnectorEnum::Old(Box::new(connector::Givepayments::new())))
+ }
enums::Connector::Globalpay => {
Ok(ConnectorEnum::Old(Box::new(connector::Globalpay::new())))
}
diff --git a/crates/router/src/types/api/feature_matrix.rs b/crates/router/src/types/api/feature_matrix.rs
index 78b258fceb..fa1463e31d 100644
--- a/crates/router/src/types/api/feature_matrix.rs
+++ b/crates/router/src/types/api/feature_matrix.rs
@@ -200,6 +200,9 @@ impl FeatureMatrixConnectorData {
enums::Connector::Gigadat => {
Ok(ConnectorEnum::Old(Box::new(connector::Gigadat::new())))
}
+ enums::Connector::Givepayments => {
+ Ok(ConnectorEnum::Old(Box::new(connector::Givepayments::new())))
+ }
enums::Connector::Globalpay => {
Ok(ConnectorEnum::Old(Box::new(connector::Globalpay::new())))
}
diff --git a/crates/router/src/types/connector_transformers.rs b/crates/router/src/types/connector_transformers.rs
index 9255e7bb1c..0f87cc9616 100644
--- a/crates/router/src/types/connector_transformers.rs
+++ b/crates/router/src/types/connector_transformers.rs
@@ -72,6 +72,7 @@ impl ForeignTryFrom<api_enums::Connector> for euclid::enums::RoutableConnectors
api_enums::Connector::Forte => Self::Forte,
api_enums::Connector::Getnet => Self::Getnet,
api_enums::Connector::Gigadat => Self::Gigadat,
+ api_enums::Connector::Givepayments => Self::Givepayments,
api_enums::Connector::Globalpay => Self::Globalpay,
api_enums::Connector::Globepay => Self::Globepay,
api_enums::Connector::Gocardless => Self::Gocardless,
diff --git a/crates/router/tests/connectors/givepayments.rs b/crates/router/tests/connectors/givepayments.rs
new file mode 100644
index 0000000000..720753bb93
--- /dev/null
+++ b/crates/router/tests/connectors/givepayments.rs
@@ -0,0 +1,421 @@
+use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData};
+use hyperswitch_masking::Secret;
+use router::types::{self, api, storage::enums};
+use test_utils::connector_auth;
+
+use crate::utils::{self, ConnectorActions};
+
+#[derive(Clone, Copy)]
+struct GivepaymentsTest;
+impl ConnectorActions for GivepaymentsTest {}
+impl utils::Connector for GivepaymentsTest {
+ fn get_data(&self) -> api::ConnectorData {
+ use router::connector::Givepayments;
+ utils::construct_connector_data_old(
+ Box::new(Givepayments::new()),
+ types::Connector::Givepayments,
+ api::GetToken::Connector,
+ None,
+ )
+ }
+
+ fn get_auth_token(&self) -> types::ConnectorAuthType {
+ utils::to_connector_auth_type(
+ connector_auth::ConnectorAuthentication::new()
+ .givepayments
+ .expect("Missing connector authentication configuration")
+ .into(),
+ )
+ }
+
+ fn get_name(&self) -> String {
+ "givepayments".to_string()
+ }
+}
+
+static CONNECTOR: GivepaymentsTest = GivepaymentsTest {};
+
+fn get_default_payment_info() -> Option<utils::PaymentInfo> {
+ None
+}
+
+fn payment_method_details() -> Option<types::PaymentsAuthorizeData> {
+ None
+}
+
+// Cards Positive Tests
+// Creates a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_only_authorize_payment() {
+ let response = CONNECTOR
+ .authorize_payment(payment_method_details(), get_default_payment_info())
+ .await
+ .expect("Authorize payment response");
+ assert_eq!(response.status, enums::AttemptStatus::Authorized);
+}
+
+// Captures a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_capture_authorized_payment() {
+ let response = CONNECTOR
+ .authorize_and_capture_payment(payment_method_details(), None, get_default_payment_info())
+ .await
+ .expect("Capture payment response");
+ assert_eq!(response.status, enums::AttemptStatus::Charged);
+}
+
+// Partially captures a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_partially_capture_authorized_payment() {
+ let response = CONNECTOR
+ .authorize_and_capture_payment(
+ payment_method_details(),
+ Some(types::PaymentsCaptureData {
+ amount_to_capture: 50,
+ ..utils::PaymentCaptureType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .expect("Capture payment response");
+ assert_eq!(response.status, enums::AttemptStatus::Charged);
+}
+
+// Synchronizes a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_authorized_payment() {
+ let authorize_response = CONNECTOR
+ .authorize_payment(payment_method_details(), get_default_payment_info())
+ .await
+ .expect("Authorize payment response");
+ let txn_id = utils::get_connector_transaction_id(authorize_response.response);
+ let response = CONNECTOR
+ .psync_retry_till_status_matches(
+ enums::AttemptStatus::Authorized,
+ Some(types::PaymentsSyncData {
+ connector_transaction_id: types::ResponseId::ConnectorTransactionId(
+ txn_id.unwrap(),
+ ),
+ ..Default::default()
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .expect("PSync response");
+ assert_eq!(response.status, enums::AttemptStatus::Authorized,);
+}
+
+// Voids a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_void_authorized_payment() {
+ let response = CONNECTOR
+ .authorize_and_void_payment(
+ payment_method_details(),
+ Some(types::PaymentsCancelData {
+ connector_transaction_id: String::from(""),
+ cancellation_reason: Some("requested_by_customer".to_string()),
+ ..Default::default()
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .expect("Void payment response");
+ assert_eq!(response.status, enums::AttemptStatus::Voided);
+}
+
+// Refunds a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_refund_manually_captured_payment() {
+ let response = CONNECTOR
+ .capture_payment_and_refund(
+ payment_method_details(),
+ None,
+ None,
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap().refund_status,
+ enums::RefundStatus::Success,
+ );
+}
+
+// Partially refunds a payment using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_partially_refund_manually_captured_payment() {
+ let response = CONNECTOR
+ .capture_payment_and_refund(
+ payment_method_details(),
+ None,
+ Some(types::RefundsData {
+ refund_amount: 50,
+ ..utils::PaymentRefundType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap().refund_status,
+ enums::RefundStatus::Success,
+ );
+}
+
+// Synchronizes a refund using the manual capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_manually_captured_refund() {
+ let refund_response = CONNECTOR
+ .capture_payment_and_refund(
+ payment_method_details(),
+ None,
+ None,
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ let response = CONNECTOR
+ .rsync_retry_till_status_matches(
+ enums::RefundStatus::Success,
+ refund_response.response.unwrap().connector_refund_id,
+ None,
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap().refund_status,
+ enums::RefundStatus::Success,
+ );
+}
+
+// Creates a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_make_payment() {
+ let authorize_response = CONNECTOR
+ .make_payment(payment_method_details(), get_default_payment_info())
+ .await
+ .unwrap();
+ assert_eq!(authorize_response.status, enums::AttemptStatus::Charged);
+}
+
+// Synchronizes a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_auto_captured_payment() {
+ let authorize_response = CONNECTOR
+ .make_payment(payment_method_details(), get_default_payment_info())
+ .await
+ .unwrap();
+ assert_eq!(authorize_response.status, enums::AttemptStatus::Charged);
+ let txn_id = utils::get_connector_transaction_id(authorize_response.response);
+ assert_ne!(txn_id, None, "Empty connector transaction id");
+ let response = CONNECTOR
+ .psync_retry_till_status_matches(
+ enums::AttemptStatus::Charged,
+ Some(types::PaymentsSyncData {
+ connector_transaction_id: types::ResponseId::ConnectorTransactionId(
+ txn_id.unwrap(),
+ ),
+ capture_method: Some(enums::CaptureMethod::Automatic),
+ ..Default::default()
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(response.status, enums::AttemptStatus::Charged,);
+}
+
+// Refunds a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_refund_auto_captured_payment() {
+ let response = CONNECTOR
+ .make_payment_and_refund(payment_method_details(), None, get_default_payment_info())
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap().refund_status,
+ enums::RefundStatus::Success,
+ );
+}
+
+// Partially refunds a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_partially_refund_succeeded_payment() {
+ let refund_response = CONNECTOR
+ .make_payment_and_refund(
+ payment_method_details(),
+ Some(types::RefundsData {
+ refund_amount: 50,
+ ..utils::PaymentRefundType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ refund_response.response.unwrap().refund_status,
+ enums::RefundStatus::Success,
+ );
+}
+
+// Creates multiple refunds against a payment using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_refund_succeeded_payment_multiple_times() {
+ CONNECTOR
+ .make_payment_and_multiple_refund(
+ payment_method_details(),
+ Some(types::RefundsData {
+ refund_amount: 50,
+ ..utils::PaymentRefundType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await;
+}
+
+// Synchronizes a refund using the automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_sync_refund() {
+ let refund_response = CONNECTOR
+ .make_payment_and_refund(payment_method_details(), None, get_default_payment_info())
+ .await
+ .unwrap();
+ let response = CONNECTOR
+ .rsync_retry_till_status_matches(
+ enums::RefundStatus::Success,
+ refund_response.response.unwrap().connector_refund_id,
+ None,
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap().refund_status,
+ enums::RefundStatus::Success,
+ );
+}
+
+// Cards Negative scenarios
+// Creates a payment with incorrect CVC.
+#[actix_web::test]
+async fn should_fail_payment_for_incorrect_cvc() {
+ let response = CONNECTOR
+ .make_payment(
+ Some(types::PaymentsAuthorizeData {
+ payment_method_data: PaymentMethodData::Card(Card {
+ card_cvc: Secret::new("12345".to_string()),
+ ..utils::CCardType::default().0
+ }),
+ ..utils::PaymentAuthorizeType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap_err().message,
+ "Your card's security code is invalid.".to_string(),
+ );
+}
+
+// Creates a payment with incorrect expiry month.
+#[actix_web::test]
+async fn should_fail_payment_for_invalid_exp_month() {
+ let response = CONNECTOR
+ .make_payment(
+ Some(types::PaymentsAuthorizeData {
+ payment_method_data: PaymentMethodData::Card(Card {
+ card_exp_month: Secret::new("20".to_string()),
+ ..utils::CCardType::default().0
+ }),
+ ..utils::PaymentAuthorizeType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap_err().message,
+ "Your card's expiration month is invalid.".to_string(),
+ );
+}
+
+// Creates a payment with incorrect expiry year.
+#[actix_web::test]
+async fn should_fail_payment_for_incorrect_expiry_year() {
+ let response = CONNECTOR
+ .make_payment(
+ Some(types::PaymentsAuthorizeData {
+ payment_method_data: PaymentMethodData::Card(Card {
+ card_exp_year: Secret::new("2000".to_string()),
+ ..utils::CCardType::default().0
+ }),
+ ..utils::PaymentAuthorizeType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap_err().message,
+ "Your card's expiration year is invalid.".to_string(),
+ );
+}
+
+// Voids a payment using automatic capture flow (Non 3DS).
+#[actix_web::test]
+async fn should_fail_void_payment_for_auto_capture() {
+ let authorize_response = CONNECTOR
+ .make_payment(payment_method_details(), get_default_payment_info())
+ .await
+ .unwrap();
+ assert_eq!(authorize_response.status, enums::AttemptStatus::Charged);
+ let txn_id = utils::get_connector_transaction_id(authorize_response.response);
+ assert_ne!(txn_id, None, "Empty connector transaction id");
+ let void_response = CONNECTOR
+ .void_payment(txn_id.unwrap(), None, get_default_payment_info())
+ .await
+ .unwrap();
+ assert_eq!(
+ void_response.response.unwrap_err().message,
+ "You cannot cancel this PaymentIntent because it has a status of succeeded."
+ );
+}
+
+// Captures a payment using invalid connector payment id.
+#[actix_web::test]
+async fn should_fail_capture_for_invalid_payment() {
+ let capture_response = CONNECTOR
+ .capture_payment("123456789".to_string(), None, get_default_payment_info())
+ .await
+ .unwrap();
+ assert_eq!(
+ capture_response.response.unwrap_err().message,
+ String::from("No such payment_intent: '123456789'")
+ );
+}
+
+// Refunds a payment with refund amount higher than payment amount.
+#[actix_web::test]
+async fn should_fail_for_refund_amount_higher_than_payment_amount() {
+ let response = CONNECTOR
+ .make_payment_and_refund(
+ payment_method_details(),
+ Some(types::RefundsData {
+ refund_amount: 150,
+ ..utils::PaymentRefundType::default().0
+ }),
+ get_default_payment_info(),
+ )
+ .await
+ .unwrap();
+ assert_eq!(
+ response.response.unwrap_err().message,
+ "Refund amount (₹1.50) is greater than charge amount (₹1.00)",
+ );
+}
+
+// Connector dependent test cases goes here
+
+// [#478]: add unit tests for non 3DS, wallets & webhooks in connector tests
diff --git a/crates/router/tests/connectors/main.rs b/crates/router/tests/connectors/main.rs
index b965a917c6..fed3fe40e7 100644
--- a/crates/router/tests/connectors/main.rs
+++ b/crates/router/tests/connectors/main.rs
@@ -55,6 +55,7 @@ mod flexiti;
mod forte;
mod getnet;
mod gigadat;
+mod givepayments;
mod globalpay;
mod globepay;
mod gocardless;
diff --git a/crates/router/tests/connectors/sample_auth.toml b/crates/router/tests/connectors/sample_auth.toml
index f1c790bd43..e4e3dfa80c 100644
--- a/crates/router/tests/connectors/sample_auth.toml
+++ b/crates/router/tests/connectors/sample_auth.toml
@@ -402,3 +402,6 @@ key1 = "Merchant Id"
[payconex]
api_key = "API Key"
key1 = "Account Id"
+
+[givepayments]
+api_key = "API Key"
\ No newline at end of file
diff --git a/crates/test_utils/src/connector_auth.rs b/crates/test_utils/src/connector_auth.rs
index 51b967a931..5ac6f988b9 100644
--- a/crates/test_utils/src/connector_auth.rs
+++ b/crates/test_utils/src/connector_auth.rs
@@ -64,6 +64,7 @@ pub struct ConnectorAuthentication {
pub forte: Option<MultiAuthKey>,
pub getnet: Option<HeaderKey>,
pub gigadat: Option<SignatureKey>,
+ pub givepayments: Option<HeaderKey>,
pub globalpay: Option<BodyKey>,
pub globepay: Option<BodyKey>,
pub gocardless: Option<HeaderKey>,
diff --git a/crates/test_utils/tests/sample_auth.toml b/crates/test_utils/tests/sample_auth.toml
index 13c2de98b5..10dd7d682d 100644
--- a/crates/test_utils/tests/sample_auth.toml
+++ b/crates/test_utils/tests/sample_auth.toml
@@ -187,4 +187,7 @@ api_key = "API Key"
[absa_sanlam]
api_key = "API Key"
-key1 = "Merchant Id"
\ No newline at end of file
+key1 = "Merchant Id"
+
+[givepayments]
+api_key = "API Key"
\ No newline at end of file
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index 778718ff3b..87caada3ec 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -171,6 +171,7 @@ fiuu.third_base_url = "https://api.merchant.razer.com/"
forte.base_url = "https://sandbox.forte.net/api/v3"
getnet.base_url = "https://api-test.getneteurope.com/engine/rest"
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/"
globepay.base_url = "https://pay.globepay.co/"
gocardless.base_url = "https://api-sandbox.gocardless.com"
@@ -839,8 +840,8 @@ bank_debit.ach = { connector_list = "gocardless,adyen,stripe" }
bank_debit.becs = { connector_list = "gocardless,stripe,adyen" }
bank_debit.bacs = { connector_list = "stripe,gocardless" }
bank_debit.sepa = { connector_list = "gocardless,adyen,stripe,deutschebank" }
-card.credit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,worldpayvantiv,payload,mollie,airwallex,imerchantsolutions"
-card.debit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,worldpayvantiv,payload,mollie,airwallex,imerchantsolutions"
+card.credit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,worldpayvantiv,payload,mollie,airwallex,imerchantsolutions,givepayments"
+card.debit.connector_list = "aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,xendit,moneris,worldpayvantiv,payload,mollie,airwallex,imerchantsolutions,givepayments"
pay_later.klarna.connector_list = "adyen,aci"
wallet.apple_pay.connector_list = "aci,stripe,adyen,braintree,cybersource,noon,bankofamerica,nexinets,novalnet,authorizedotnet,worldpayxml,imerchantsolutions"
wallet.samsung_pay.connector_list = "aci,cybersource"
diff --git a/scripts/add_connector.sh b/scripts/add_connector.sh
index df7c48770a..821b7b99bd 100755
--- a/scripts/add_connector.sh
+++ b/scripts/add_connector.sh
@@ -6,7 +6,7 @@ function find_prev_connector() {
git checkout $self
cp $self $self.tmp
# Add new connector to existing list and sort it
- connectors=(absa_sanlam aci adyen adyenplatform affirm airwallex amazonpay applepay archipel authipay authorizedotnet bambora bamboraapac bankofamerica barclaycard billwerk bitpay blackhawknetwork bluesnap boku braintree breadpay calida cashtocode celero chargebee checkbook checkout coinbase cryptopay ctp_visa custombilling cybersource cybersourcedecisionmanager datatrans deutschebank digitalvirgo dlocal dummyconnector dwolla ebanx elavon envoy facilitapay finix fiserv fiservcommercehub fiservemea fiuu flexiti forte getnet gigadat globalpay globepay gocardless gpayments helcim hipay hyperpg hyperswitch_vault hyperwallet hyperwallet iatapay imerchantsolutions inespay interpayments itaubank jpmorgan juspaythreedsserver katapult klarna loonio mifinity mollie moneris mpgs multisafepay netcetera nexinets nexixpay nomupay noon nordea novalnet nuvei opayo opennode paybox payeezy payjustnow payjustnowinstore payload payme payone paypal paysafe paystack paytm payu peachpayments phonepe placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys revolv3 santander shift4 sift silverflow square stax stripe stripebilling taxjar tesouro threedsecureio thunes tokenex tokenio truelayer trustly trustpay trustpayments tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpaymodular worldpayvantiv worldpayxml xendit zift zsl "$1")
+ connectors=(absa_sanlam aci adyen adyenplatform affirm airwallex amazonpay applepay archipel authipay authorizedotnet bambora bamboraapac bankofamerica barclaycard billwerk bitpay blackhawknetwork bluesnap boku braintree breadpay calida cashtocode celero chargebee checkbook checkout coinbase cryptopay ctp_visa custombilling cybersource cybersourcedecisionmanager datatrans deutschebank digitalvirgo dlocal dummyconnector dwolla ebanx elavon envoy facilitapay finix fiserv fiservcommercehub fiservemea fiuu flexiti forte getnet gigadat givepayments globalpay globepay gocardless gpayments helcim hipay hyperpg hyperswitch_vault hyperwallet hyperwallet iatapay imerchantsolutions inespay interpayments itaubank jpmorgan juspaythreedsserver katapult klarna loonio mifinity mollie moneris mpgs multisafepay netcetera nexinets nexixpay nomupay noon nordea novalnet nuvei opayo opennode paybox payeezy payjustnow payjustnowinstore payload payme payone paypal paysafe paystack paytm payu peachpayments phonepe placetopay plaid powertranz prophetpay rapyd razorpay recurly redsys revolv3 santander shift4 sift silverflow square stax stripe stripebilling taxjar tesouro threedsecureio thunes tokenex tokenio truelayer trustly trustpay trustpayments tsys unified_authentication_service vgs volt wellsfargo wellsfargopayout wise worldline worldpay worldpaymodular worldpayvantiv worldpayxml xendit zift zsl "$1")
IFS=$'\n' sorted=($(sort <<<"${connectors[*]}")); unset IFS