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): [envoy] Sepa payouts (#11475)

Nithin Nc764fd380361
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.json
index 3d24600010..f6e463bd38 100644
--- a/api-reference/v1/openapi_spec_v1.json
+++ b/api-reference/v1/openapi_spec_v1.json
@@ -15000,6 +15000,7 @@
"dlocal",
"dwolla",
"ebanx",
+ "envoy",
"elavon",
"facilitapay",
"finix",
@@ -32653,7 +32654,8 @@
"truelayer",
"wise",
"worldpay",
- "worldpayxml"
+ "worldpayxml",
+ "envoy"
]
},
"PayoutCreatePayoutLinkConfig": {
@@ -36984,6 +36986,7 @@
"dwolla",
"ebanx",
"elavon",
+ "envoy",
"facilitapay",
"finix",
"fiserv",
diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.json
index a507b2f9c9..95254d3b1b 100644
--- a/api-reference/v2/openapi_spec_v2.json
+++ b/api-reference/v2/openapi_spec_v2.json
@@ -10548,6 +10548,7 @@
"dlocal",
"dwolla",
"ebanx",
+ "envoy",
"elavon",
"facilitapay",
"finix",
@@ -24069,7 +24070,8 @@
"truelayer",
"wise",
"worldpay",
- "worldpayxml"
+ "worldpayxml",
+ "envoy"
]
},
"PayoutCreatePayoutLinkConfig": {
@@ -27662,6 +27664,7 @@
"dwolla",
"ebanx",
"elavon",
+ "envoy",
"facilitapay",
"finix",
"fiserv",
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml
index dce2ddc037..f86e83a9b5 100644
--- a/config/deployments/integration_test.toml
+++ b/config/deployments/integration_test.toml
@@ -65,7 +65,7 @@ dummyconnector.base_url = "http://localhost:8080/dummy-connector"
dwolla.base_url = "https://api-sandbox.dwolla.com"
ebanx.base_url = "https://sandbox.ebanxpay.com/"
elavon.base_url = "https://api.demo.convergepay.com/VirtualMerchantDemo/"
-envoy.base_url = "https://www.envoytx.com/MerchantAPI.asmx"
+envoy.base_url = "https://test.envoytx.com/"
facilitapay.base_url = "https://sandbox-api.facilitapay.com/api/v1"
finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
@@ -603,6 +603,9 @@ paypal = { country = "AU,CA,GB,IN,JP,NZ,PH,SG,TH,US",currency = "AED,ALL,AMD,ARS
credit = { country = "AF,AX,AL,DZ,AS,AD,AO,AI,AQ,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BQ,BA,BW,BV,BR,IO,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD,CL,CN,CX,CC,CO,KM,CG,CD,CK,CR,CI,HR,CU,CW,CY,CZ,DK,DJ,DM,DO,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FR,GF,PF,TF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,HM,VA,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IM,IL,IT,JM,JP,JE,JO,KZ,KE,KI,KP,KR,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,MX,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,NC,NZ,NI,NE,NG,NU,NF,MP,NO,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,PL,PT,PR,QA,RE,RO,RU,RW,BL,SH,KN,LC,MF,PM,VC,WS,SM,ST,SA,SN,RS,SC,SL,SG,SX,SK,SI,SB,SO,ZA,GS,SS,ES,LK,SD,SR,SJ,SZ,SE,CH,SY,TW,TJ,TZ,TH,TL,TG,TK,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,UM,UY,UZ,VU,VE,VN,VG,VI,WF,EH,YE,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R,SJ,SZ,SE,CH,SY,TW,TJ,TZ,TH,TL,TG,TK,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,UM,UY,UZ,VU,VE,VN,VG,VI,WF,EH,YE,ZM,ZW,US",currency = "AED,ALL,AMD,ARS,AUD,AZN,BAM,BDT,BGN,BHD,BMD,BND,BRL,BYN,CAD,CHF,CLP,CNY,COP,CRC,CZK,DKK,DOP,DZD,EGP,EUR,GBP,GEL,GHS,GTQ,HKD,HUF,IDR,INR,IQD,ISK,JOD,JPY,KES,KGS,KRW,KWD,KYD,KZT,LBP,LKR,MAD,MDL,MKD,MMK,MNT,MUR,MWK,MXN,MYR,MZN,NAD,NGN,NOK,NZD,OMR,PEN,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,SAR,SEK,SGD,SOS,THB,TND,TOP,TRY,TTD,TWD,UAH,UGX,USD,UYU,UZS,VND,XAF,XOF,YER,ZAR" }
+[payout_method_filters.envoy]
+sepa = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+
[pm_filters.nexixpay]
credit = { country = "AT,BE,CY,EE,FI,FR,DE,GR,IE,IT,LV,LT,LU,MT,NL,PT,SK,SI,ES,BG,HR,DK,GB,NO,PL,CZ,RO,SE,CH,HU,AU,BR,US", currency = "ARS,AUD,BHD,CAD,CLP,CNY,COP,HRK,CZK,DKK,HKD,HUF,INR,JPY,KZT,JOD,KRW,KWD,MYR,MXN,NGN,NOK,PHP,QAR,RUB,SAR,SGD,VND,ZAR,SEK,CHF,THB,AED,EGP,GBP,USD,TWD,BYN,RSD,AZN,RON,TRY,AOA,BGN,EUR,UAH,PLN,BRL" }
debit = { country = "AT,BE,CY,EE,FI,FR,DE,GR,IE,IT,LV,LT,LU,MT,NL,PT,SK,SI,ES,BG,HR,DK,GB,NO,PL,CZ,RO,SE,CH,HU,AU,BR,US", currency = "ARS,AUD,BHD,CAD,CLP,CNY,COP,HRK,CZK,DKK,HKD,HUF,INR,JPY,KZT,JOD,KRW,KWD,MYR,MXN,NGN,NOK,PHP,QAR,RUB,SAR,SGD,VND,ZAR,SEK,CHF,THB,AED,EGP,GBP,USD,TWD,BYN,RSD,AZN,RON,TRY,AOA,BGN,EUR,UAH,PLN,BRL" }
diff --git a/config/deployments/production.toml b/config/deployments/production.toml
index 76240fa0d9..0b0572f259 100644
--- a/config/deployments/production.toml
+++ b/config/deployments/production.toml
@@ -68,7 +68,7 @@ dummyconnector.base_url = "http://localhost:8080/dummy-connector"
dwolla.base_url = "https://api.dwolla.com"
ebanx.base_url = "https://api.ebanxpay.com/"
elavon.base_url = "https://api.convergepay.com/VirtualMerchant/"
-envoy.base_url = "https://www.envoytx.com/MerchantAPI.asmx"
+envoy.base_url = "https://envoytx.com/"
facilitapay.base_url = "https://api.facilitapay.com/api/v1"
finix.base_url = "https://finix.live-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
@@ -513,6 +513,11 @@ paypal = { country = "AU,CA,GB,IN,JP,NZ,PH,SG,TH,US",currency = "AED,ALL,AMD,ARS
credit = { country = "AF,AX,AL,DZ,AS,AD,AO,AI,AQ,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BQ,BA,BW,BV,BR,IO,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD,CL,CN,CX,CC,CO,KM,CG,CD,CK,CR,CI,HR,CU,CW,CY,CZ,DK,DJ,DM,DO,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FR,GF,PF,TF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,HM,VA,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IM,IL,IT,JM,JP,JE,JO,KZ,KE,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, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+ach = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+bacs = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+
[pm_filters.nexixpay]
credit = { country = "AT,BE,CY,EE,FI,FR,DE,GR,IE,IT,LV,LT,LU,MT,NL,PT,SK,SI,ES,BG,HR,DK,GB,NO,PL,CZ,RO,SE,CH,HU,AU,BR,US", currency = "ARS,AUD,BHD,CAD,CLP,CNY,COP,HRK,CZK,DKK,HKD,HUF,INR,JPY,KZT,JOD,KRW,KWD,MYR,MXN,NGN,NOK,PHP,QAR,RUB,SAR,SGD,VND,ZAR,SEK,CHF,THB,AED,EGP,GBP,USD,TWD,BYN,RSD,AZN,RON,TRY,AOA,BGN,EUR,UAH,PLN,BRL" }
debit = { country = "AT,BE,CY,EE,FI,FR,DE,GR,IE,IT,LV,LT,LU,MT,NL,PT,SK,SI,ES,BG,HR,DK,GB,NO,PL,CZ,RO,SE,CH,HU,AU,BR,US", currency = "ARS,AUD,BHD,CAD,CLP,CNY,COP,HRK,CZK,DKK,HKD,HUF,INR,JPY,KZT,JOD,KRW,KWD,MYR,MXN,NGN,NOK,PHP,QAR,RUB,SAR,SGD,VND,ZAR,SEK,CHF,THB,AED,EGP,GBP,USD,TWD,BYN,RSD,AZN,RON,TRY,AOA,BGN,EUR,UAH,PLN,BRL" }
diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.toml
index a4c14415b9..3e841ad77c 100644
--- a/config/deployments/sandbox.toml
+++ b/config/deployments/sandbox.toml
@@ -68,7 +68,7 @@ dummyconnector.base_url = "http://localhost:8080/dummy-connector"
dwolla.base_url = "https://api-sandbox.dwolla.com"
ebanx.base_url = "https://sandbox.ebanxpay.com/"
elavon.base_url = "https://api.demo.convergepay.com/VirtualMerchantDemo/"
-envoy.base_url = "https://www.envoytx.com/MerchantAPI.asmx"
+envoy.base_url = "https://test.envoytx.com/"
facilitapay.base_url = "https://sandbox-api.facilitapay.com/api/v1"
finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
@@ -583,6 +583,11 @@ paypal = { country = "AU,CA,GB,IN,JP,NZ,PH,SG,TH,US",currency = "AED,ALL,AMD,ARS
credit = { country = "AF,AX,AL,DZ,AS,AD,AO,AI,AQ,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BQ,BA,BW,BV,BR,IO,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD,CL,CN,CX,CC,CO,KM,CG,CD,CK,CR,CI,HR,CU,CW,CY,CZ,DK,DJ,DM,DO,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FR,GF,PF,TF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,HM,VA,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IM,IL,IT,JM,JP,JE,JO,KZ,KE,KI,KP,KR,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,MX,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,NC,NZ,NI,NE,NG,NU,NF,MP,NO,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,PL,PT,PR,QA,RE,RO,RU,RW,BL,SH,KN,LC,MF,PM,VC,WS,SM,ST,SA,SN,RS,SC,SL,SG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F,MP,NO,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,PL,PT,PR,QA,RE,RO,RU,RW,BL,SH,KN,LC,MF,PM,VC,WS,SM,ST,SA,SN,RS,SC,SL,SG,SX,SK,SI,SB,SO,ZA,GS,SS,ES,LK,SD,SR,SJ,SZ,SE,CH,SY,TW,TJ,TZ,TH,TL,TG,TK,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,UM,UY,UZ,VU,VE,VN,VG,VI,WF,EH,YE,ZM,ZW,US",currency = "AED,ALL,AMD,ARS,AUD,AZN,BAM,BDT,BGN,BHD,BMD,BND,BRL,BYN,CAD,CHF,CLP,CNY,COP,CRC,CZK,DKK,DOP,DZD,EGP,EUR,GBP,GEL,GHS,GTQ,HKD,HUF,IDR,INR,IQD,ISK,JOD,JPY,KES,KGS,KRW,KWD,KYD,KZT,LBP,LKR,MAD,MDL,MKD,MMK,MNT,MUR,MWK,MXN,MYR,MZN,NAD,NGN,NOK,NZD,OMR,PEN,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,SAR,SEK,SGD,SOS,THB,TND,TOP,TRY,TTD,TWD,UAH,UGX,USD,UYU,UZS,VND,XAF,XOF,YER,ZAR" }
+[payout_method_filters.envoy]
+sepa = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+ach = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+bacs = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+
[pm_filters.globepay]
ali_pay = { country = "GB",currency = "GBP,CNY" }
we_chat_pay = { country = "GB",currency = "CNY" }
diff --git a/config/development.toml b/config/development.toml
index a40b32f261..8ec2979472 100644
--- a/config/development.toml
+++ b/config/development.toml
@@ -269,7 +269,7 @@ dummyconnector.base_url = "http://localhost:8080/dummy-connector"
dwolla.base_url = "https://api-sandbox.dwolla.com"
ebanx.base_url = "https://sandbox.ebanxpay.com/"
elavon.base_url = "https://api.demo.convergepay.com/VirtualMerchantDemo/"
-envoy.base_url = "https://www.envoytx.com/MerchantAPI.asmx"
+envoy.base_url = "https://test.envoytx.com/"
facilitapay.base_url = "https://sandbox-api.facilitapay.com/api/v1"
finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
@@ -713,6 +713,11 @@ paypal = { country = "AU,CA,GB,IN,JP,NZ,PH,SG,TH,US",currency = "AED,ALL,AMD,ARS
credit = { country = "AF,AX,AL,DZ,AS,AD,AO,AI,AQ,AG,AR,AM,AW,AU,AT,AZ,BS,BH,BD,BB,BY,BE,BZ,BJ,BM,BT,BO,BQ,BA,BW,BV,BR,IO,BN,BG,BF,BI,KH,CM,CA,CV,KY,CF,TD,CL,CN,CX,CC,CO,KM,CG,CD,CK,CR,CI,HR,CU,CW,CY,CZ,DK,DJ,DM,DO,EC,EG,SV,GQ,ER,EE,ET,FK,FO,FJ,FI,FR,GF,PF,TF,GA,GM,GE,DE,GH,GI,GR,GL,GD,GP,GU,GT,GG,GN,GW,GY,HT,HM,VA,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IM,IL,IT,JM,JP,JE,JO,KZ,KE,KI,KP,KR,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,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U,IS,IN,ID,IR,IQ,IE,IM,IL,IT,JM,JP,JE,JO,KZ,KE,KI,KP,KR,KW,KG,LA,LV,LB,LS,LR,LY,LI,LT,LU,MO,MK,MG,MW,MY,MV,ML,MT,MH,MQ,MR,MU,YT,MX,FM,MD,MC,MN,ME,MS,MA,MZ,MM,NA,NR,NP,NL,NC,NZ,NI,NE,NG,NU,NF,MP,NO,OM,PK,PW,PS,PA,PG,PY,PE,PH,PN,PL,PT,PR,QA,RE,RO,RU,RW,BL,SH,KN,LC,MF,PM,VC,WS,SM,ST,SA,SN,RS,SC,SL,SG,SX,SK,SI,SB,SO,ZA,GS,SS,ES,LK,SD,SR,SJ,SZ,SE,CH,SY,TW,TJ,TZ,TH,TL,TG,TK,TO,TT,TN,TR,TM,TC,TV,UG,UA,AE,GB,UM,UY,UZ,VU,VE,VN,VG,VI,WF,EH,YE,ZM,ZW,US",currency = "AED,ALL,AMD,ARS,AUD,AZN,BAM,BDT,BGN,BHD,BMD,BND,BRL,BYN,CAD,CHF,CLP,CNY,COP,CRC,CZK,DKK,DOP,DZD,EGP,EUR,GBP,GEL,GHS,GTQ,HKD,HUF,IDR,INR,IQD,ISK,JOD,JPY,KES,KGS,KRW,KWD,KYD,KZT,LBP,LKR,MAD,MDL,MKD,MMK,MNT,MUR,MWK,MXN,MYR,MZN,NAD,NGN,NOK,NZD,OMR,PEN,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,SAR,SEK,SGD,SOS,THB,TND,TOP,TRY,TTD,TWD,UAH,UGX,USD,UYU,UZS,VND,XAF,XOF,YER,ZAR" }
+[payout_method_filters.envoy]
+sepa = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+ach = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+bacs = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+
[pm_filters.checkout]
debit = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IS,IE,IT,LV,LI,LT,LU,MT,NL,NO,PL,PT,RO,SK,SI,ES,SE,CH,GB,US,AU,HK,SG,SA,AE,BH,MX,AR,CL,CO,PE", currency = "AED,AFN,ALL,AMD,ANG,AOA,AUD,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTN,BWP,BYN,BZD,CAD,CDF,CHF,CLP,CNY,COP,CRC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EGP,ERN,ETB,EUR,FJD,FKP,GBP,GEL,GHS,GIP,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,INR,IQD,IRR,ISK,JMD,JOD,JPY,KES,KGS,KHR,KMF,KRW,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRU,MUR,MVR,MWK,MXN,MYR,MZN,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,SGD,SHP,SLE,SLL,SOS,SRD,SSP,STN,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VES,VND,VUV,WST,XAF,XCD,XOF,XPF,YER,ZAR,ZMW,ZWL" }
credit = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IS,IE,IT,LV,LI,LT,LU,MT,NL,NO,PL,PT,RO,SK,SI,ES,SE,CH,GB,US,AU,HK,SG,SA,AE,BH,MX,AR,CL,CO,PE", currency = "AED,AFN,ALL,AMD,ANG,AOA,AUD,AWG,AZN,BAM,BBD,BDT,BGN,BHD,BIF,BMD,BND,BOB,BRL,BSD,BTN,BWP,BYN,BZD,CAD,CDF,CHF,CLP,CNY,COP,CRC,CUP,CVE,CZK,DJF,DKK,DOP,DZD,EGP,ERN,ETB,EUR,FJD,FKP,GBP,GEL,GHS,GIP,GMD,GNF,GTQ,GYD,HKD,HNL,HRK,HTG,HUF,IDR,ILS,INR,IQD,IRR,ISK,JMD,JOD,JPY,KES,KGS,KHR,KMF,KRW,KWD,KYD,KZT,LAK,LBP,LKR,LRD,LSL,LYD,MAD,MDL,MGA,MKD,MMK,MNT,MOP,MRU,MUR,MVR,MWK,MXN,MYR,MZN,NAD,NGN,NIO,NOK,NPR,NZD,OMR,PAB,PEN,PGK,PHP,PKR,PLN,PYG,QAR,RON,RSD,RUB,RWF,SAR,SBD,SCR,SDG,SEK,SGD,SHP,SLE,SLL,SOS,SRD,SSP,STN,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VES,VND,VUV,WST,XAF,XCD,XOF,XPF,YER,ZAR,ZMW,ZWL" }
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rs
index 413f7a0827..82dfb6a7d4 100644
--- a/crates/api_models/src/enums.rs
+++ b/crates/api_models/src/enums.rs
@@ -61,6 +61,7 @@ pub enum PayoutConnectors {
Wise,
Worldpay,
Worldpayxml,
+ Envoy,
}
#[cfg(feature = "v2")]
@@ -103,6 +104,7 @@ impl From<PayoutConnectors> for RoutableConnectors {
PayoutConnectors::Wise => Self::Wise,
PayoutConnectors::Worldpay => Self::Worldpay,
PayoutConnectors::Worldpayxml => Self::Worldpayxml,
+ PayoutConnectors::Envoy => Self::Envoy,
}
}
}
@@ -126,6 +128,7 @@ impl From<PayoutConnectors> for Connector {
PayoutConnectors::Wise => Self::Wise,
PayoutConnectors::Worldpay => Self::Worldpay,
PayoutConnectors::Worldpayxml => Self::Worldpayxml,
+ PayoutConnectors::Envoy => Self::Envoy,
}
}
}
@@ -150,6 +153,7 @@ impl TryFrom<Connector> for PayoutConnectors {
Connector::Wise => Ok(Self::Wise),
Connector::Worldpay => Ok(Self::Worldpay),
Connector::Worldpayxml => Ok(Self::Worldpayxml),
+ Connector::Envoy => Ok(Self::Envoy),
_ => Err(format!("Invalid payout connector {value}")),
}
}
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rs
index c892658ab0..e52cdfe308 100644
--- a/crates/common_enums/src/connector_enums.rs
+++ b/crates/common_enums/src/connector_enums.rs
@@ -102,6 +102,7 @@ pub enum Connector {
Dlocal,
Dwolla,
Ebanx,
+ Envoy,
Elavon,
Facilitapay,
Finix,
@@ -209,6 +210,7 @@ impl Connector {
matches!(
(self, payout_method),
(Self::Paypal, Some(PayoutType::Wallet))
+ | (Self::Envoy, _)
| (_, Some(PayoutType::Card))
| (Self::Adyenplatform, _)
| (Self::Nomupay, _)
@@ -326,6 +328,7 @@ impl Connector {
| Self::Digitalvirgo
| Self::Dlocal
| Self::Dwolla
+ | Self::Envoy
| Self::Ebanx
| Self::Elavon
| Self::Facilitapay
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs
index 52a488d87b..a4bdfd12bc 100644
--- a/crates/connector_configs/src/connector.rs
+++ b/crates/connector_configs/src/connector.rs
@@ -442,6 +442,7 @@ impl ConnectorConfig {
PayoutConnectors::Wise => Ok(connector_data.wise_payout),
PayoutConnectors::Worldpay => Ok(connector_data.worldpay_payout),
PayoutConnectors::Worldpayxml => Ok(connector_data.worldpayxml_payout),
+ PayoutConnectors::Envoy => Ok(connector_data.envoy),
}
}
@@ -544,6 +545,7 @@ impl ConnectorConfig {
Connector::Digitalvirgo => Ok(connector_data.digitalvirgo),
Connector::Dlocal => Ok(connector_data.dlocal),
Connector::Dwolla => Ok(connector_data.dwolla),
+ Connector::Envoy => Ok(connector_data.envoy),
Connector::Ebanx => Ok(connector_data.ebanx_payout),
Connector::Elavon => Ok(connector_data.elavon),
Connector::Facilitapay => Ok(connector_data.facilitapay),
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml
index ded4f1108e..71a821693d 100644
--- a/crates/connector_configs/toml/development.toml
+++ b/crates/connector_configs/toml/development.toml
@@ -8034,9 +8034,12 @@ key1 = "Merchant Account Id"
[[payjustnow.pay_later]]
payment_method_type = "payjustnow"
-[envoy]
-[envoy.connector_auth.HeaderKey]
-api_key = "API Key"
+[envoy_payout]
+[[envoy_payout.bank_transfer]]
+ payment_method_type = "sepa_bank_transfer"
+[envoy_payout.connector_auth.BodyKey]
+api_key = "Password"
+key1 = "Username"
[vgs]
[vgs.connector_auth.SignatureKey]
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml
index 32f0fe3483..f0ca7688fe 100644
--- a/crates/connector_configs/toml/production.toml
+++ b/crates/connector_configs/toml/production.toml
@@ -6853,9 +6853,13 @@ key1 = "Merchant Account Id"
payment_method_type = "payjustnow"
-[envoy]
-[envoy.connector_auth.HeaderKey]
-api_key = "API Key"
+[envoy_payout]
+[[envoy_payout.bank_transfer]]
+ payment_method_type = "sepa_bank_transfer"
+[envoy_payout.connector_auth.BodyKey]
+api_key = "Password"
+key1 = "Username"
+
[vgs]
[vgs.connector_auth.SignatureKey]
api_key="Client Id"
diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.toml
index cecc899a9a..18718b7446 100644
--- a/crates/connector_configs/toml/sandbox.toml
+++ b/crates/connector_configs/toml/sandbox.toml
@@ -7945,9 +7945,13 @@ key1 = "Merchant Account Id"
payment_method_type = "payjustnow"
-[envoy]
-[envoy.connector_auth.HeaderKey]
-api_key = "API Key"
+[envoy_payout]
+[[envoy_payout.bank_transfer]]
+ payment_method_type = "sepa_bank_transfer"
+[envoy_payout.connector_auth.BodyKey]
+api_key = "Password"
+key1 = "Username"
+
[vgs]
[vgs.connector_auth.SignatureKey]
api_key="Client Id"
diff --git a/crates/euclid/src/enums.rs b/crates/euclid/src/enums.rs
index f4ca736080..97157a7ed0 100644
--- a/crates/euclid/src/enums.rs
+++ b/crates/euclid/src/enums.rs
@@ -263,6 +263,7 @@ pub enum RoutableConnectors {
Dwolla,
Ebanx,
Elavon,
+ Envoy,
Facilitapay,
Finix,
Fiserv,
@@ -422,6 +423,7 @@ impl TryFrom<Connector> for RoutableConnectors {
Connector::Dwolla => Ok(Self::Dwolla),
Connector::Ebanx => Ok(Self::Ebanx),
Connector::Elavon => Ok(Self::Elavon),
+ Connector::Envoy => Ok(Self::Envoy),
Connector::Facilitapay => Ok(Self::Facilitapay),
Connector::Finix => Ok(Self::Finix),
Connector::Fiserv => Ok(Self::Fiserv),
@@ -578,6 +580,7 @@ impl From<RoutableConnectors> for Connector {
RoutableConnectors::Dwolla => Self::Dwolla,
RoutableConnectors::Ebanx => Self::Ebanx,
RoutableConnectors::Elavon => Self::Elavon,
+ RoutableConnectors::Envoy => Self::Envoy,
RoutableConnectors::Facilitapay => Self::Facilitapay,
RoutableConnectors::Finix => Self::Finix,
RoutableConnectors::Fiserv => Self::Fiserv,
diff --git a/crates/hyperswitch_connectors/src/connectors/envoy.rs b/crates/hyperswitch_connectors/src/connectors/envoy.rs
index 489c104e15..b3550ec47f 100644
--- a/crates/hyperswitch_connectors/src/connectors/envoy.rs
+++ b/crates/hyperswitch_connectors/src/connectors/envoy.rs
@@ -7,7 +7,7 @@ use common_utils::{
errors::CustomResult,
ext_traits::BytesExt,
request::{Method, Request, RequestBuilder, RequestContent},
- types::{AmountConvertor, StringMinorUnit, StringMinorUnitForConnector},
+ types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector},
};
use error_stack::{report, ResultExt};
use hyperswitch_domain_models::{
@@ -31,6 +31,11 @@ use hyperswitch_domain_models::{
RefundSyncRouterData, RefundsRouterData,
},
};
+#[cfg(feature = "payouts")]
+use hyperswitch_domain_models::{
+ router_flow_types::{PoCreate, PoFulfill},
+ types::{PayoutsData, PayoutsResponseData, PayoutsRouterData},
+};
use hyperswitch_interfaces::{
api::{
self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications,
@@ -42,20 +47,19 @@ use hyperswitch_interfaces::{
types::{self, Response},
webhooks,
};
-use masking::{ExposeInterface, Mask};
use transformers as envoy;
use crate::{constants::headers, types::ResponseRouterData, utils};
#[derive(Clone)]
pub struct Envoy {
- amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUnit> + Sync),
+ amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),
}
impl Envoy {
pub fn new() -> &'static Self {
&Self {
- amount_converter: &StringMinorUnitForConnector,
+ amount_converter: &FloatMajorUnitForConnector,
}
}
}
@@ -71,6 +75,114 @@ impl api::PaymentVoid for Envoy {}
impl api::Refund for Envoy {}
impl api::RefundExecute for Envoy {}
impl api::RefundSync for Envoy {}
+
+#[cfg(feature = "payouts")]
+impl api::Payouts for Envoy {}
+#[cfg(feature = "payouts")]
+impl api::PayoutFulfill for Envoy {}
+#[cfg(feature = "payouts")]
+impl api::PayoutCreate for Envoy {}
+#[async_trait::async_trait]
+#[cfg(feature = "payouts")]
+impl ConnectorIntegration<PoCreate, PayoutsData, PayoutsResponseData> for Envoy {
+ fn build_request(
+ &self,
+ _req: &PayoutsRouterData<PoCreate>,
+ _connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ // Eligibility check for wallet is not implemented
+ Err(
+ errors::ConnectorError::NotImplemented("Payout Eligibility for Envoy".to_string())
+ .into(),
+ )
+ }
+}
+#[cfg(feature = "payouts")]
+impl ConnectorIntegration<PoFulfill, PayoutsData, PayoutsResponseData> for Envoy {
+ fn get_headers(
+ &self,
+ _req: &PayoutsRouterData<PoFulfill>,
+ _connectors: &Connectors,
+ ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
+ let header = vec![(
+ headers::CONTENT_TYPE.to_string(),
+ self.common_get_content_type().to_string().into(),
+ )];
+ Ok(header)
+ }
+
+ fn get_content_type(&self) -> &'static str {
+ self.common_get_content_type()
+ }
+
+ fn get_url(
+ &self,
+ _req: &PayoutsRouterData<PoFulfill>,
+ connectors: &Connectors,
+ ) -> CustomResult<String, errors::ConnectorError> {
+ Ok(self.base_url(connectors).to_string())
+ }
+
+ fn get_request_body(
+ &self,
+ req: &PayoutsRouterData<PoFulfill>,
+ _connectors: &Connectors,
+ ) -> CustomResult<RequestContent, errors::ConnectorError> {
+ let amount = utils::convert_amount(
+ self.amount_converter,
+ req.request.minor_amount,
+ req.request.destination_currency,
+ )?;
+ let connector_router_data = envoy::EnvoyRouterData::from((amount, req));
+ let payout_request = envoy::PayToBankAccountV3::try_from(&connector_router_data)?;
+ let soap_envelope = envoy::SoapEnvelope::new(payout_request);
+ Ok(RequestContent::Xml(Box::new(soap_envelope)))
+ }
+
+ fn build_request(
+ &self,
+ req: &PayoutsRouterData<PoFulfill>,
+ connectors: &Connectors,
+ ) -> CustomResult<Option<Request>, errors::ConnectorError> {
+ use hyperswitch_interfaces::types::PayoutFulfillType;
+
+ Ok(Some(
+ RequestBuilder::new()
+ .method(Method::Post)
+ .url(&PayoutFulfillType::get_url(self, req, connectors)?)
+ .attach_default_headers()
+ .headers(PayoutFulfillType::get_headers(self, req, connectors)?)
+ .set_body(PayoutFulfillType::get_request_body(self, req, connectors)?)
+ .build(),
+ ))
+ }
+
+ fn handle_response(
+ &self,
+ data: &PayoutsRouterData<PoFulfill>,
+ event_builder: Option<&mut ConnectorEvent>,
+ res: Response,
+ ) -> CustomResult<PayoutsRouterData<PoFulfill>, errors::ConnectorError> {
+ let response: envoy::EnvoyPayoutSoapResponse =
+ utils::deserialize_xml_to_struct(&res.response)?;
+ 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,
+ })
+ .change_context(errors::ConnectorError::ResponseHandlingFailed)
+ }
+
+ fn get_error_response(
+ &self,
+ res: Response,
+ event_builder: Option<&mut ConnectorEvent>,
+ ) -> CustomResult<ErrorResponse, errors::ConnectorError> {
+ self.build_error_response(res, event_builder)
+ }
+}
impl api::PaymentToken for Envoy {}
impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>
@@ -108,7 +220,7 @@ impl ConnectorCommon for Envoy {
}
fn common_get_content_type(&self) -> &'static str {
- "application/json"
+ "text/xml; charset=utf-8"
}
fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {
@@ -117,14 +229,9 @@ impl ConnectorCommon for Envoy {
fn get_auth_header(
&self,
- auth_type: &ConnectorAuthType,
+ _auth_type: &ConnectorAuthType,
) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {
- let auth = envoy::EnvoyAuthType::try_from(auth_type)
- .change_context(errors::ConnectorError::FailedToObtainAuthType)?;
- Ok(vec![(
- headers::AUTHORIZATION.to_string(),
- auth.api_key.expose().into_masked(),
- )])
+ Ok(vec![])
}
fn build_error_response(
diff --git a/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs b/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs
index b75f585374..9fc3e497e4 100644
--- a/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/envoy/transformers.rs
@@ -1,27 +1,44 @@
-use common_enums::enums;
-use common_utils::types::StringMinorUnit;
+use api_models::payouts::{
+ self, AchBankTransfer, BacsBankTransfer, PayoutMethodData, SepaBankTransfer,
+};
+use common_enums::{enums, CountryAlpha2, Currency};
+use common_utils::{
+ ext_traits::OptionExt,
+ id_type::PayoutId,
+ pii::Email,
+ types::{FloatMajorUnit, StringMinorUnit},
+};
+use error_stack::ResultExt;
+#[cfg(feature = "payouts")]
+use hyperswitch_domain_models::router_flow_types::PoFulfill;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData,
router_data::{ConnectorAuthType, RouterData},
router_flow_types::refunds::{Execute, RSync},
- router_request_types::ResponseId,
+ router_request_types::{CustomerDetails, ResponseId},
router_response_types::{PaymentsResponseData, RefundsResponseData},
- types::{PaymentsAuthorizeRouterData, RefundsRouterData},
+ types::{
+ PaymentsAuthorizeRouterData, PayoutsResponseData, PayoutsRouterData, RefundsRouterData,
+ },
};
use hyperswitch_interfaces::errors;
use masking::Secret;
use serde::{Deserialize, Serialize};
-use crate::types::{RefundsResponseRouterData, ResponseRouterData};
+#[cfg(feature = "payouts")]
+use crate::types::PayoutsResponseRouterData;
+use crate::{
+ types::{RefundsResponseRouterData, ResponseRouterData},
+ utils::RouterData as _,
+};
-//TODO: Fill the struct with respective fields
pub struct EnvoyRouterData<T> {
- pub amount: StringMinorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
+ pub amount: FloatMajorUnit, // The type of amount that a connector accepts, for example, String, i64, f64, etc.
pub router_data: T,
}
-impl<T> From<(StringMinorUnit, T)> for EnvoyRouterData<T> {
- fn from((amount, item): (StringMinorUnit, T)) -> Self {
+impl<T> From<(FloatMajorUnit, T)> for EnvoyRouterData<T> {
+ fn from((amount, item): (FloatMajorUnit, T)) -> Self {
//Todo : use utils to convert the amount to the type of amount that a connector accepts
Self {
amount,
@@ -61,16 +78,20 @@ impl TryFrom<&EnvoyRouterData<&PaymentsAuthorizeRouterData>> for EnvoyPaymentsRe
//TODO: Fill the struct with respective fields
// Auth Struct
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
pub struct EnvoyAuthType {
- pub(super) api_key: Secret<String>,
+ pub(super) username: Secret<String>,
+ pub(super) password: Secret<String>,
}
impl TryFrom<&ConnectorAuthType> for EnvoyAuthType {
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(),
+ ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self {
+ username: key1.to_owned(),
+ password: api_key.to_owned(),
}),
_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
}
@@ -134,7 +155,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, EnvoyPaymentsResponse, T, PaymentsRespo
// Type definition for RefundRequest
#[derive(Default, Debug, Serialize)]
pub struct EnvoyRefundRequest {
- pub amount: StringMinorUnit,
+ pub amount: FloatMajorUnit,
}
impl<F> TryFrom<&EnvoyRouterData<&RefundsRouterData<F>>> for EnvoyRefundRequest {
@@ -216,3 +237,455 @@ pub struct EnvoyErrorResponse {
pub network_decline_code: Option<String>,
pub network_error_message: Option<String>,
}
+
+//--------------------- SEPA PAYOUTS ---------------------
+// https://docs.worldpay.com/apis/pushtoaccountglobal/reference/paytobankaccountv3#request-schema
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename = "soap:Envelope")]
+pub struct SoapEnvelope {
+ #[serde(rename = "@xmlns:xsi")]
+ pub xsi: String,
+ #[serde(rename = "@xmlns:xsd")]
+ pub xsd: String,
+ #[serde(rename = "@xmlns:soap")]
+ pub soap: String,
+ #[serde(rename = "soap:Body")]
+ pub body: SoapBody,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+pub struct SoapBody {
+ #[serde(rename = "payToBankAccountV3")]
+ pub request: PayToBankAccountV3,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct PayToBankAccountV3 {
+ #[serde(rename = "@xmlns")]
+ pub xmlns: String,
+ pub auth: EnvoyAuthType,
+ pub request_reference: PayoutId,
+ pub payment_instructions: PaymentInstructions,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+pub struct PaymentInstructions {
+ #[serde(rename = "paymentInstructionV3")]
+ pub instructions: Vec<PaymentInstructionV3>,
+}
+
+// --- 2. Payment Instruction & Details ---
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct PaymentInstructionV3 {
+ pub payment_details: PaymentDetails,
+ pub payment_template: PaymentTemplate, // Required per your request to skip ItemID
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct PaymentDetails {
+ pub country_code: CountryAlpha2,
+ pub source_currency: Currency,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub source_amount: Option<FloatMajorUnit>,
+ pub target_currency: Currency,
+ pub target_amount: FloatMajorUnit,
+ pub source_or_target: SourceOrTarget,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub merchant_reference: Option<String>,
+ pub payment_reference: PayoutId,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub email: Option<Email>,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub mobile: Option<Secret<String>>,
+ pub fast_payment: YesNo,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub payment_description: Option<String>,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+pub enum SourceOrTarget {
+ #[serde(rename = "S")]
+ Source,
+ #[serde(rename = "T")]
+ Target,
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+pub enum YesNo {
+ #[serde(rename = "Y")]
+ Yes,
+ #[serde(rename = "N")]
+ No,
+}
+
+// --- 4. Bank Template (Replacement for PaymentItemID) ---
+
+#[derive(Debug, Serialize, Deserialize, Clone)]
+#[serde(rename_all = "PascalCase")]
+pub struct PaymentTemplate {
+ #[serde(rename = "Row")]
+ pub rows: Vec<TemplateRow>,
+}
+
+#[derive(Debug, Serialize, Deserialize, Clone)]
+pub struct TemplateRow {
+ #[serde(rename = "@Id")]
+ pub id: BankField,
+ #[serde(rename = "@Value")]
+ pub value: Option<Secret<String>>,
+}
+
+/// Ref: https://docs.worldpay.com/apis/pushtoaccountglobal/reference/paymenttemplatefields
+#[derive(Debug, Serialize, Deserialize, Clone)]
+pub enum BankField {
+ #[serde(rename = "IBAN")]
+ Iban,
+ #[serde(rename = "SWIFT")]
+ Swift,
+ #[serde(rename = "BankAccountNumber")]
+ BankAccountNumber,
+ #[serde(rename = "BranchAddress")]
+ BranchAddress,
+ #[serde(rename = "BankCode")]
+ BankCode,
+ #[serde(rename = "BranchCode")]
+ BranchCode,
+ #[serde(rename = "BankName")]
+ BankName,
+ // Customer fields mandatory
+ // String up to 50 characters Mandatory
+ #[serde(rename = "CustomerName")]
+ CustomerName,
+}
+
+fn get_template_for_ach(
+ bank: AchBankTransfer,
+ customer_details: Option<&CustomerDetails>,
+) -> Result<Vec<TemplateRow>, error_stack::Report<errors::ConnectorError>> {
+ let customer_name = customer_details
+ .and_then(|c| c.name.clone())
+ .get_required_value("customer_name")
+ .change_context(errors::ConnectorError::MissingRequiredField {
+ field_name: "customer_name",
+ })?;
+
+ Ok(vec![
+ TemplateRow {
+ id: BankField::BranchAddress,
+ value: bank.bank_city.map(Secret::new),
+ },
+ TemplateRow {
+ id: BankField::CustomerName,
+ value: Some(customer_name.clone()),
+ },
+ TemplateRow {
+ id: BankField::BankName,
+ value: bank.bank_name.map(Secret::new),
+ },
+ TemplateRow {
+ id: BankField::BankCode,
+ value: Some(bank.bank_routing_number.clone()),
+ },
+ TemplateRow {
+ id: BankField::BankAccountNumber,
+ value: Some(bank.bank_account_number.clone()),
+ },
+ ])
+}
+
+fn get_template_for_bacs(
+ bank: BacsBankTransfer,
+ customer_details: Option<&CustomerDetails>,
+) -> Result<Vec<TemplateRow>, error_stack::Report<errors::ConnectorError>> {
+ let customer_name = customer_details
+ .and_then(|c| c.name.clone())
+ .get_required_value("customer_name")
+ .change_context(errors::ConnectorError::MissingRequiredField {
+ field_name: "customer_name",
+ })?;
+
+ Ok(vec![
+ TemplateRow {
+ id: BankField::BranchAddress,
+ value: bank.bank_city.map(Secret::new),
+ },
+ TemplateRow {
+ id: BankField::CustomerName,
+ value: Some(customer_name.clone()),
+ },
+ TemplateRow {
+ id: BankField::BankName,
+ value: bank.bank_name.map(Secret::new),
+ },
+ TemplateRow {
+ id: BankField::BankCode,
+ value: Some(bank.bank_sort_code.clone()),
+ },
+ TemplateRow {
+ id: BankField::BankAccountNumber,
+ value: Some(bank.bank_account_number.clone()),
+ },
+ ])
+}
+fn get_template_for_sepa(
+ bank: SepaBankTransfer,
+ customer_details: Option<&CustomerDetails>,
+) -> Result<Vec<TemplateRow>, error_stack::Report<errors::ConnectorError>> {
+ let customer_name = customer_details
+ .and_then(|c| c.name.clone())
+ .get_required_value("customer_name")
+ .change_context(errors::ConnectorError::MissingRequiredField {
+ field_name: "customer_name",
+ })?;
+
+ Ok(vec![
+ TemplateRow {
+ id: BankField::BranchAddress,
+ value: bank.bank_city.map(Secret::new),
+ },
+ TemplateRow {
+ id: BankField::Iban,
+ value: Some(bank.iban.clone()),
+ },
+ TemplateRow {
+ id: BankField::CustomerName,
+ value: Some(customer_name.clone()),
+ },
+ TemplateRow {
+ id: BankField::BankName,
+ value: bank.bank_name.map(Secret::new),
+ },
+ TemplateRow {
+ id: BankField::Swift,
+ value: bank.bic.clone(),
+ },
+ ])
+}
+
+// --- Helper implementation for initialization ---
+
+impl SoapEnvelope {
+ pub fn new(request: PayToBankAccountV3) -> Self {
+ Self {
+ xsi: "http://www.w3.org/2001/XMLSchema-instance".to_string(),
+ xsd: "http://www.w3.org/2001/XMLSchema".to_string(),
+ soap: "http://schemas.xmlsoap.org/soap/envelope/".to_string(),
+ body: SoapBody { request },
+ }
+ }
+}
+
+// --- Payout Request Implementation ---
+
+impl<F> TryFrom<&EnvoyRouterData<&PayoutsRouterData<F>>> for PayToBankAccountV3 {
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(item: &EnvoyRouterData<&PayoutsRouterData<F>>) -> Result<Self, Self::Error> {
+ let payout_data = &item.router_data.request;
+ let customer_details = item.router_data.request.customer_details.to_owned();
+ let payment_template = match item.router_data.get_payout_method_data()? {
+ PayoutMethodData::Bank(payouts::Bank::Ach(bank)) => PaymentTemplate {
+ rows: get_template_for_ach(bank, customer_details.as_ref())?,
+ },
+ PayoutMethodData::Bank(payouts::Bank::Sepa(bank)) => PaymentTemplate {
+ rows: get_template_for_sepa(bank, customer_details.as_ref())?,
+ },
+ PayoutMethodData::Bank(payouts::Bank::Bacs(bank)) => PaymentTemplate {
+ rows: get_template_for_bacs(bank, customer_details.as_ref())?,
+ },
+ _ => Err(errors::ConnectorError::NotSupported {
+ message: "payout creation is not supported".to_string(),
+ connector: "Envoy",
+ })?,
+ };
+
+ // Create payment template with bank fields
+ let country_code = item.router_data.get_billing_country()?;
+
+ Ok(Self {
+ xmlns: "http://merchantapi.envoyservices.com".to_string(),
+ auth: EnvoyAuthType::try_from(&item.router_data.connector_auth_type)?,
+ request_reference: payout_data.payout_id.clone(),
+ payment_instructions: PaymentInstructions {
+ instructions: vec![PaymentInstructionV3 {
+ payment_details: PaymentDetails {
+ country_code,
+ source_currency: payout_data.source_currency,
+ source_amount: None,
+ target_currency: payout_data.destination_currency,
+ target_amount: item.amount.to_owned(),
+ source_or_target: SourceOrTarget::Target,
+ merchant_reference: None,
+ payment_reference: payout_data.payout_id.clone(),
+ email: customer_details.as_ref().and_then(|c| c.email.clone()),
+ mobile: customer_details.as_ref().and_then(|c| c.phone.clone()),
+ fast_payment: YesNo::No,
+ payment_description: item.router_data.description.clone(),
+ },
+ payment_template,
+ }],
+ },
+ })
+ }
+}
+
+// --- Payout Response ---
+// Ref: https://docs.worldpay.com/apis/pushtoaccountglobal/reference/paytobankaccountv3#response-schema
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+#[serde(rename = "Envelope")]
+pub struct EnvoyPayoutSoapResponse {
+ #[serde(rename = "Body")]
+ pub body: PayoutSoapBody,
+}
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub struct PayoutSoapBody {
+ #[serde(rename = "payToBankAccountV3Response")]
+ pub response: PayToBankAccountV3Response,
+}
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub struct PayToBankAccountV3Response {
+ #[serde(rename = "payToBankAccountV3Result")]
+ pub result: PayToBankAccountV3Result,
+}
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct PayToBankAccountV3Result {
+ pub request_reference: String,
+ pub received_date: Option<String>,
+ pub status_code: i32,
+ pub status_message: Option<String>,
+
+ #[serde(rename = "paymentInstructions")]
+ pub payment_instructions_results: Option<PaymentInstructionsResults>,
+}
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+pub struct PaymentInstructionsResults {
+ #[serde(rename = "paymentResultV3")]
+ pub payment_result: PaymentInstructionResponseV3,
+}
+
+#[derive(Debug, Clone, Serialize, Deserialize)]
+#[serde(rename_all = "camelCase")]
+pub struct PaymentInstructionResponseV3 {
+ pub epacs_reference: Option<String>,
+ pub payment_reference: Option<String>,
+ pub payment_item_id: Option<Secret<String>>,
+ pub payment_status_code: i32,
+ pub payment_status_message: String,
+
+ pub bank_details: Option<BankDetails>,
+ pub payment_template: Option<PaymentTemplate>,
+}
+
+#[derive(Debug, Serialize, Deserialize, Clone)]
+#[serde(rename_all = "camelCase")]
+pub struct BankDetails {
+ pub payee: Option<Secret<String>>,
+ pub account_number: Option<Secret<String>>,
+ pub bank_name: Option<Secret<String>>,
+ pub iban: Option<Secret<String>>,
+ pub swift: Option<Secret<String>>,
+ pub bank_account_currency: Option<String>,
+}
+#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
+#[serde(untagged)]
+pub enum ResponseStatus {
+ Success,
+ SuccessNoResults,
+ Processing,
+ Failed(i32),
+}
+
+impl From<i32> for ResponseStatus {
+ fn from(value: i32) -> Self {
+ match value {
+ 0 => Self::Success,
+ 1 => Self::SuccessNoResults,
+ 2 => Self::Processing,
+ other => Self::Failed(other),
+ }
+ }
+}
+
+impl From<ResponseStatus> for enums::PayoutStatus {
+ fn from(status: ResponseStatus) -> Self {
+ match status {
+ ResponseStatus::Success => Self::Success,
+ ResponseStatus::SuccessNoResults => Self::Pending,
+ ResponseStatus::Processing => Self::Pending,
+ ResponseStatus::Failed(_) => Self::Failed,
+ }
+ }
+}
+
+#[cfg(feature = "payouts")]
+impl TryFrom<PayoutsResponseRouterData<PoFulfill, EnvoyPayoutSoapResponse>>
+ for PayoutsRouterData<PoFulfill>
+{
+ type Error = error_stack::Report<errors::ConnectorError>;
+ fn try_from(
+ item: PayoutsResponseRouterData<PoFulfill, EnvoyPayoutSoapResponse>,
+ ) -> Result<Self, Self::Error> {
+ let payment_account_v3_result = &item.response.body.response.result;
+ let response = &payment_account_v3_result
+ .payment_instructions_results
+ .as_ref();
+ if let Some(instructions_results) = response {
+ let payout_status_result =
+ ResponseStatus::from(instructions_results.payment_result.payment_status_code);
+
+ let (error_code, error_message) =
+ if let ResponseStatus::Failed(_) = payout_status_result {
+ (
+ Some(
+ instructions_results
+ .payment_result
+ .payment_status_code
+ .to_string(),
+ ),
+ Some(
+ instructions_results
+ .payment_result
+ .payment_status_message
+ .clone(),
+ ),
+ )
+ } else {
+ (None, None)
+ };
+ Ok(Self {
+ response: Ok(PayoutsResponseData {
+ status: Some(payout_status_result.into()),
+ connector_payout_id: Some(payment_account_v3_result.request_reference.clone()),
+ payout_eligible: None,
+ should_add_next_step_to_process_tracker: false,
+ error_code,
+ error_message,
+ payout_connector_metadata: None,
+ }),
+ ..item.data
+ })
+ } else {
+ Ok(Self {
+ response: Ok(PayoutsResponseData {
+ status: Some(enums::PayoutStatus::Failed),
+ connector_payout_id: Some(payment_account_v3_result.request_reference.clone()),
+ payout_eligible: None,
+ should_add_next_step_to_process_tracker: false,
+ error_code: Some(payment_account_v3_result.status_code.clone().to_string()),
+ error_message: payment_account_v3_result.status_message.clone(),
+ payout_connector_metadata: None,
+ }),
+ ..item.data
+ })
+ }
+ }
+}
diff --git a/crates/hyperswitch_connectors/src/default_implementations.rs b/crates/hyperswitch_connectors/src/default_implementations.rs
index 23cf873eff..36909abf01 100644
--- a/crates/hyperswitch_connectors/src/default_implementations.rs
+++ b/crates/hyperswitch_connectors/src/default_implementations.rs
@@ -4386,7 +4386,6 @@ default_imp_for_payouts!(
connectors::Dlocal,
connectors::Dwolla,
connectors::Elavon,
- connectors::Envoy,
connectors::Facilitapay,
connectors::Finix,
connectors::Fiserv,
@@ -4533,7 +4532,6 @@ default_imp_for_payouts_create!(
connectors::Dlocal,
connectors::Dwolla,
connectors::Elavon,
- connectors::Envoy,
connectors::Facilitapay,
connectors::Finix,
connectors::Fiserv,
@@ -4998,7 +4996,6 @@ default_imp_for_payouts_fulfill!(
connectors::Dlocal,
connectors::Dwolla,
connectors::Elavon,
- connectors::Envoy,
connectors::Facilitapay,
connectors::Finix,
connectors::Fiserv,
diff --git a/crates/router/src/core/connector_validation.rs b/crates/router/src/core/connector_validation.rs
index 9361d7f551..a9edf7e2c0 100644
--- a/crates/router/src/core/connector_validation.rs
+++ b/crates/router/src/core/connector_validation.rs
@@ -235,6 +235,10 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {
elavon::transformers::ElavonAuthType::try_from(self.auth_type)?;
Ok(())
}
+ api_enums::Connector::Envoy => {
+ envoy::transformers::EnvoyAuthType::try_from(self.auth_type)?;
+ Ok(())
+ }
api_enums::Connector::Facilitapay => {
facilitapay::transformers::FacilitapayAuthType::try_from(self.auth_type)?;
facilitapay::transformers::FacilitapayConnectorMetadataObject::try_from(
diff --git a/crates/router/src/types/api/connector_mapping.rs b/crates/router/src/types/api/connector_mapping.rs
index df8670dcf9..8d1ae94ce7 100644
--- a/crates/router/src/types/api/connector_mapping.rs
+++ b/crates/router/src/types/api/connector_mapping.rs
@@ -252,6 +252,9 @@ impl ConnectorData {
enums::Connector::Elavon => {
Ok(ConnectorEnum::Old(Box::new(connector::Elavon::new())))
}
+ enums::Connector::Envoy => {
+ Ok(ConnectorEnum::Old(Box::new(connector::Envoy::new())))
+ }
enums::Connector::Facilitapay => {
Ok(ConnectorEnum::Old(Box::new(connector::Facilitapay::new())))
}
diff --git a/crates/router/src/types/api/feature_matrix.rs b/crates/router/src/types/api/feature_matrix.rs
index 500cf65061..e63cb68a35 100644
--- a/crates/router/src/types/api/feature_matrix.rs
+++ b/crates/router/src/types/api/feature_matrix.rs
@@ -166,6 +166,9 @@ impl FeatureMatrixConnectorData {
enums::Connector::Elavon => {
Ok(ConnectorEnum::Old(Box::new(connector::Elavon::new())))
}
+ enums::Connector::Envoy => {
+ Ok(ConnectorEnum::Old(Box::new(connector::Envoy::new())))
+ }
enums::Connector::Facilitapay => {
Ok(ConnectorEnum::Old(Box::new(connector::Facilitapay::new())))
}
diff --git a/crates/router/src/types/connector_transformers.rs b/crates/router/src/types/connector_transformers.rs
index cb73283c77..bd5d69b68e 100644
--- a/crates/router/src/types/connector_transformers.rs
+++ b/crates/router/src/types/connector_transformers.rs
@@ -60,6 +60,7 @@ impl ForeignTryFrom<api_enums::Connector> for euclid::enums::RoutableConnectors
api_enums::Connector::Dwolla => Self::Dwolla,
api_enums::Connector::Ebanx => Self::Ebanx,
api_enums::Connector::Elavon => Self::Elavon,
+ api_enums::Connector::Envoy => Self::Envoy,
api_enums::Connector::Facilitapay => Self::Facilitapay,
api_enums::Connector::Finix => Self::Finix,
api_enums::Connector::Fiserv => Self::Fiserv,
diff --git a/loadtest/config/development.toml b/loadtest/config/development.toml
index 0a9d8651b8..e5442f1ba4 100644
--- a/loadtest/config/development.toml
+++ b/loadtest/config/development.toml
@@ -130,7 +130,7 @@ dummyconnector.base_url = "http://localhost:8080/dummy-connector"
dwolla.base_url = "https://api-sandbox.dwolla.com"
ebanx.base_url = "https://sandbox.ebanxpay.com/"
elavon.base_url = "https://api.demo.convergepay.com/VirtualMerchantDemo/"
-envoy.base_url = "https://www.envoytx.com/MerchantAPI.asmx"
+envoy.base_url = "https://test.envoytx.com/"
facilitapay.base_url = "https://sandbox-api.facilitapay.com/api/v1"
finix.base_url = "https://finix.sandbox-payments-api.com"
fiserv.base_url = "https://cert.api.fiservapps.com/"
@@ -763,6 +763,11 @@ dwolla = { long_lived_token = true, payment_method = "bank_debit" }
[connector_customer]
payout_connector_list = "nomupay,wise"
+[payout_method_filters.envoy]
+sepa = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+ach = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+bacs = { country = "AD, AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, MC, NL, NO, PL, PT, RO, SM, SK, SI, ES, SE, CH, GB", currency = "EUR, BGN, CZK, DKK, HUF, ISK, CHF, NOK, PLN, RON, SEK, GBP" }
+
[dummy_connector]
enabled = true
payment_ttl = 172800