Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
5649ffd
feat: enable facilitapay connector in hyperswitch
pixincreate Mar 31, 2025
5118b35
refactor: move structs and enums out of transformers
pixincreate Mar 31, 2025
024e2ca
feat(facilitapay): implement pix bank transfer
pixincreate Apr 2, 2025
bc2d540
refactor: introduce 3 new fields for pix pmt
pixincreate Apr 4, 2025
bfb1bcc
feat: implement authentication and authorize flow for pix pmt
pixincreate Apr 4, 2025
6a034de
chore: formatting
pixincreate Apr 4, 2025
e460497
Merge branch 'main' of github.com:juspay/hyperswitch into connector/f…
pixincreate Apr 4, 2025
49aaf01
feat: introduce 2 new fields in `customerType`
pixincreate Apr 6, 2025
077a3ff
chore: update default implementations for Facilitapay
pixincreate Apr 6, 2025
63aeb4b
feat: fix error handling and add `createCustomer` impl
pixincreate Apr 6, 2025
4449ea4
chore: add connector configs for facilitapay
pixincreate Apr 6, 2025
a0c80b8
feat: add feature_matrix for facilitapay
pixincreate Apr 6, 2025
cd419c5
chore: update required fields
pixincreate Apr 6, 2025
8ad5ba1
chore: generate openapi spec
pixincreate Apr 6, 2025
dde92c8
chore: update `connector_customer` configs
pixincreate Apr 7, 2025
6028af0
fix(core): pass `access_token` in connector customer create call to a…
pixincreate Apr 8, 2025
67a373d
refactor: clarify error messages and expect additional fields in the …
pixincreate Apr 8, 2025
9ae1a2b
fix: `connector_customer` not being passed into the `router_data`
pixincreate Apr 10, 2025
6aabc8d
refactor: remove unused connectorCustomerData struct values
pixincreate Apr 10, 2025
27da18e
chore: add Brazil state to utils
pixincreate Apr 10, 2025
eb41b12
fix: request and response error handling
pixincreate Apr 10, 2025
03f9331
Merge branch 'main' of github.com:juspay/hyperswitch into connector/f…
pixincreate Apr 10, 2025
c24a7f4
chore: update openapi reference
pixincreate Apr 10, 2025
ae365f1
fix: error handling
pixincreate Apr 10, 2025
b0e3710
fix: qr code generation and status mapping
pixincreate Apr 10, 2025
35ce0db
chore: clean up
pixincreate Apr 10, 2025
fd8f27f
Merge branch 'main' of github.com:juspay/hyperswitch into connector/f…
pixincreate Apr 10, 2025
4c3b101
fix: 5xx when payment gets canceled out
pixincreate Apr 11, 2025
0101f88
chore: make pii a secret and re-use code
pixincreate Apr 11, 2025
c054443
chore: run formatter
pixincreate Apr 11, 2025
3574f26
refactor: make pix qr code flexible
pixincreate Apr 11, 2025
8a01ce4
refactor: throw proper 501 for setup mandate flow
pixincreate Apr 11, 2025
fc3728e
ci: add facilitapay cypress tests
pixincreate Apr 11, 2025
950a946
fix: v2 compilation
pixincreate Apr 15, 2025
ccc7ae1
Merge branch 'main' of github.com:juspay/hyperswitch into connector/f…
pixincreate Apr 15, 2025
42625e6
fix: v2 compilation
pixincreate Apr 15, 2025
fe7c042
use `MaskedBankAccount` instead of `Secret<String>` for bank account ids
pixincreate Apr 15, 2025
60312c8
refactor: make use `strum` to the fullest
pixincreate Apr 15, 2025
9569bc7
refactor: do not pass `reouter_data` when we can directly pass `acces…
pixincreate Apr 15, 2025
80a7ba0
refactor: extract error error response parsing logic into a separate …
pixincreate Apr 15, 2025
5efc9be
chore: formatter
pixincreate Apr 15, 2025
c7647ef
chore: address comments
pixincreate Apr 16, 2025
56cc63c
refactor: properly pass a reference instead of cloning
pixincreate Apr 16, 2025
560db3a
refactor: verify cmid to be null for ntid
pixincreate Apr 16, 2025
84d18fd
docs(openapi): re-generate OpenAPI specification
hyperswitch-bot[bot] Apr 16, 2025
4b27806
Merge branch 'main' of github.com:juspay/hyperswitch into connector/f…
pixincreate Apr 21, 2025
92bfa95
Merge branch 'connector/facilitapay-pix-pmt' of github.com:juspay/hyp…
pixincreate Apr 21, 2025
0f11aa5
chore: run formatter
hyperswitch-bot[bot] Apr 21, 2025
f57633f
fix: build failures and nits
pixincreate Apr 22, 2025
52fab3c
chore: lints
pixincreate Apr 22, 2025
e313fda
refactor; remove validation since connector does have any validations…
pixincreate Apr 22, 2025
c9936af
chore: lints
pixincreate Apr 22, 2025
4c2c26d
refactor: address comments
pixincreate Apr 22, 2025
2e8341f
refactor: address comments
pixincreate Apr 22, 2025
6189efe
Merge branch 'main' of github.com:juspay/hyperswitch into connector/f…
pixincreate Apr 22, 2025
a21679e
chore: add env that got missed while reslving conflicts
pixincreate Apr 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6230,6 +6230,18 @@
"description": "CNPJ is a Brazilian company tax identification number",
"example": "74469027417312",
"nullable": true
},
"source_bank_account_id": {
"type": "string",
"description": "Source bank account number",
"example": "8b2812f0-d6c8-4073-97bb-9fa964d08bc5",
"nullable": true
},
"destination_bank_account_id": {
"type": "string",
"description": "Destination bank account number",
"example": "9b95f84e-de61-460b-a14b-f23b4e71c97b",
"nullable": true
}
}
}
Expand Down Expand Up @@ -7776,6 +7788,7 @@
"dlocal",
"ebanx",
"elavon",
"facilitapay",
"fiserv",
"fiservemea",
"fiuu",
Expand Down Expand Up @@ -10443,6 +10456,18 @@
"user_bank_account_number"
]
},
{
"type": "string",
"enum": [
"user_source_bank_account_id"
]
},
{
"type": "string",
"enum": [
"user_destination_bank_account_id"
]
},
{
"type": "string",
"enum": [
Expand Down Expand Up @@ -19428,6 +19453,18 @@
"description": "Partially masked CNPJ - CNPJ is a Brazilian company tax identification number",
"example": "**** 417312",
"nullable": true
},
"source_bank_account_id": {
"type": "string",
"description": "Partially masked source bank account number",
"example": "********-****-4073-****-9fa964d08bc5",
"nullable": true
},
"destination_bank_account_id": {
"type": "string",
"description": "Partially masked destination bank account number",
"example": "********-****-460b-****-f23b4e71c97b",
"nullable": true
}
}
},
Expand Down Expand Up @@ -21082,6 +21119,7 @@
"dlocal",
"ebanx",
"elavon",
"facilitapay",
"fiserv",
"fiservemea",
"fiuu",
Expand Down
38 changes: 38 additions & 0 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -8321,6 +8321,18 @@
"description": "CNPJ is a Brazilian company tax identification number",
"example": "74469027417312",
"nullable": true
},
"source_bank_account_id": {
"type": "string",
"description": "Source bank account number",
"example": "8b2812f0-d6c8-4073-97bb-9fa964d08bc5",
"nullable": true
},
"destination_bank_account_id": {
"type": "string",
"description": "Destination bank account number",
"example": "9b95f84e-de61-460b-a14b-f23b4e71c97b",
"nullable": true
}
}
}
Expand Down Expand Up @@ -9826,6 +9838,7 @@
"dlocal",
"ebanx",
"elavon",
"facilitapay",
"fiserv",
"fiservemea",
"fiuu",
Expand Down Expand Up @@ -12640,6 +12653,18 @@
"user_bank_account_number"
]
},
{
"type": "string",
"enum": [
"user_source_bank_account_id"
]
},
{
"type": "string",
"enum": [
"user_destination_bank_account_id"
]
},
{
"type": "string",
"enum": [
Expand Down Expand Up @@ -23809,6 +23834,18 @@
"description": "Partially masked CNPJ - CNPJ is a Brazilian company tax identification number",
"example": "**** 417312",
"nullable": true
},
"source_bank_account_id": {
"type": "string",
"description": "Partially masked source bank account number",
"example": "********-****-4073-****-9fa964d08bc5",
"nullable": true
},
"destination_bank_account_id": {
"type": "string",
"description": "Partially masked destination bank account number",
"example": "********-****-460b-****-f23b4e71c97b",
"nullable": true
}
}
},
Expand Down Expand Up @@ -25573,6 +25610,7 @@
"dlocal",
"ebanx",
"elavon",
"facilitapay",
"fiserv",
"fiservemea",
"fiuu",
Expand Down
7 changes: 5 additions & 2 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ cards = [
"datatrans",
"deutschebank",
"digitalvirgo",
"facilitapay",
"facilitapay",
"globalpay",
"globepay",
"gocardless",
Expand Down Expand Up @@ -647,6 +647,9 @@ credit = { country = "FR", currency = "CAD, AUD, EUR, USD" }
[pm_filters.digitalvirgo]
direct_carrier_billing = {country = "MA, CM, ZA, EG, SN, DZ, TN, ML, GN, GH, LY, GA, CG, MG, BW, SD, NG, ID, SG, AZ, TR, FR, ES, PL, GB, PT, DE, IT, BE, IE, SK, GR, NL, CH, BR, MX, AR, CL, AE, IQ, KW, BH, SA, QA, PS, JO, OM, RU" , currency = "MAD, XOF, XAF, ZAR, EGP, DZD, TND, GNF, GHS, LYD, XAF, CDF, MGA, BWP, SDG, NGN, IDR, SGD, RUB, AZN, TRY, EUR, PLN, GBP, CHF, BRL, MXN, ARS, CLP, AED, IQD, KWD, BHD, SAR, QAR, ILS, JOD, OMR" }

[pm_filters.facilitapay]
pix = { country = "BR", currency = "BRL" }

[pm_filters.helcim]
credit = { country = "US, CA", currency = "USD, CAD" }
debit = { country = "US, CA", currency = "USD, CAD" }
Expand Down Expand Up @@ -745,7 +748,7 @@ credit = { country = "AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,B
debit = { country = "AD,AE,AF,AG,AI,AL,AM,AO,AQ,AR,AS,AT,AU,AW,AX,AZ,BA,BB,BD,BE,BF,BG,BH,BI,BJ,BL,BM,BN,BO,BQ,BR,BS,BT,BV,BW,BY,BZ,CA,CC,CD,CF,CG,CH,CI,CK,CL,CM,CN,CO,CR,CU,CV,CW,CX,CY,CZ,DE,DJ,DK,DM,DO,DZ,EC,EE,EG,EH,ER,ES,ET,FI,FJ,FK,FM,FO,FR,GA,GB,GD,GE,GF,GG,GH,GI,GL,GM,GN,GP,GQ,GR,GT,GU,GW,GY,HK,HM,HN,HR,HT,HU,ID,IE,IL,IM,IN,IO,IQ,IR,IS,IT,JE,JM,JO,JP,KE,KG,KH,KI,KM,KN,KP,KR,KW,KY,KZ,LA,LB,LC,LI,LK,LR,LS,LT,LU,LV,LY,MA,MC,MD,ME,MF,MG,MH,MK,ML,MM,MN,MO,MP,MQ,MR,MS,MT,MU,MV,MW,MX,MY,MZ,NA,NC,NE,NF,NG,NI,NL,NO,NP,NR,NU,NZ,OM,PA,PE,PF,PG,PH,PK,PL,PM,PN,PR,PS,PT,PW,PY,QA,RE,RO,RS,RU,RW,SA,SB,SC,SD,SE,SG,SH,SI,SJ,SK,SL,SM,SN,SO,SR,SS,ST,SV,SX,SY,SZ,TC,TD,TF,TG,TH,TJ,TL,TM,TN,TO,TR,TT,TV,TW,TZ,UA,UG,UM,US,UY,UZ,VA,VC,VE,VG,VI,VN,VU,WF,WS,YE,YT,ZA,ZM,ZW", currency = "AED,AFN,ALL,AMD,ANG,AOA,ARS,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,KPW,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,SLL,SOS,SRD,SSP,SVC,SYP,SZL,THB,TJS,TMT,TND,TOP,TRY,TTD,TWD,TZS,UAH,UGX,USD,UYU,UZS,VND,VUV,WST,XAF,XCD,XOF,XPF,YER,ZAR,ZMW,ZWL" }

[connector_customer]
connector_list = "gocardless,stax,stripe"
connector_list = "gocardless,stax,stripe,facilitapay"
payout_connector_list = "nomupay,stripe,wise"

[bank_config.online_banking_fpx]
Expand Down
5 changes: 4 additions & 1 deletion config/deployments/integration_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ force_cookies = true
enabled = true

[connector_customer]
connector_list = "gocardless,stax,stripe"
connector_list = "gocardless,stax,stripe,facilitapay"
payout_connector_list = "nomupay,stripe,wise"

[delayed_session_response]
Expand Down Expand Up @@ -359,6 +359,9 @@ paypal.currency = "AUD,BRL,CAD,CNY,CZK,DKK,EUR,HKD,HUF,ILS,JPY,MYR,MXN,TWD,NZD,N
credit.currency = "USD"
debit.currency = "USD"

[pm_filters.facilitapay]
pix = { country = "BR", currency = "BRL" }

[pm_filters.helcim]
credit = { country = "US, CA", currency = "USD, CAD" }
debit = { country = "US, CA", currency = "USD, CAD" }
Expand Down
5 changes: 4 additions & 1 deletion config/deployments/production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open_banking_uk.adyen.banks = "aib,bank_of_scotland,danske_bank,first_direct,fir
przelewy24.stripe.banks = "alior_bank,bank_millennium,bank_nowy_bfg_sa,bank_pekao_sa,banki_spbdzielcze,blik,bnp_paribas,boz,citi,credit_agricole,e_transfer_pocztowy24,getin_bank,idea_bank,inteligo,mbank_mtransfer,nest_przelew,noble_pay,pbac_z_ipko,plus_bank,santander_przelew24,toyota_bank,volkswagen_bank"

[connector_customer]
connector_list = "stax,stripe,gocardless"
connector_list = "stax,stripe,gocardless,facilitapay"
payout_connector_list = "nomupay,stripe,wise"

# Connector configuration, provided attributes will be used to fulfill API requests.
Expand Down Expand Up @@ -409,6 +409,9 @@ paypal.currency = "AUD,BRL,CAD,CNY,CZK,DKK,EUR,HKD,HUF,ILS,JPY,MYR,MXN,TWD,NZD,N
credit.currency = "USD"
debit.currency = "USD"

[pm_filters.facilitapay]
pix = { country = "BR", currency = "BRL" }

[pm_filters.helcim]
credit = { country = "US, CA", currency = "USD, CAD" }
debit = { country = "US, CA", currency = "USD, CAD" }
Expand Down
5 changes: 4 additions & 1 deletion config/deployments/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open_banking_uk.adyen.banks = "aib,bank_of_scotland,danske_bank,first_direct,fir
przelewy24.stripe.banks = "alior_bank,bank_millennium,bank_nowy_bfg_sa,bank_pekao_sa,banki_spbdzielcze,blik,bnp_paribas,boz,citi,credit_agricole,e_transfer_pocztowy24,getin_bank,idea_bank,inteligo,mbank_mtransfer,nest_przelew,noble_pay,pbac_z_ipko,plus_bank,santander_przelew24,toyota_bank,volkswagen_bank"

[connector_customer]
connector_list = "stax,stripe,gocardless"
connector_list = "stax,stripe,gocardless,facilitapay"
payout_connector_list = "nomupay,stripe,wise"

# Connector configuration, provided attributes will be used to fulfill API requests.
Expand Down Expand Up @@ -411,6 +411,9 @@ paypal.currency = "AUD,BRL,CAD,CNY,CZK,DKK,EUR,HKD,HUF,ILS,JPY,MYR,MXN,TWD,NZD,N
credit.currency = "USD"
debit.currency = "USD"

[pm_filters.facilitapay]
pix = { country = "BR", currency = "BRL" }

[pm_filters.helcim]
credit = { country = "US, CA", currency = "USD, CAD" }
debit = { country = "US, CA", currency = "USD, CAD" }
Expand Down
5 changes: 4 additions & 1 deletion config/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,9 @@ paypal = { country = "AD,AE,AL,AM,AR,AT,AU,AZ,BA,BB,BD,BE,BG,BH,BI,BM,BN,BO,BR,B
[pm_filters.braintree]
paypal = { currency = "AUD,BRL,CAD,CNY,CZK,DKK,EUR,HKD,HUF,ILS,JPY,MYR,MXN,TWD,NZD,NOK,PHP,PLN,GBP,RUB,SGD,SEK,CHF,THB,USD" }

[pm_filters.facilitapay]
pix = { country = "BR", currency = "BRL" }

[pm_filters.helcim]
credit = { country = "US, CA", currency = "USD, CAD" }
debit = { country = "US, CA", currency = "USD, CAD" }
Expand Down Expand Up @@ -751,7 +754,7 @@ nexixpay = { payment_method = "card" }
redsys = { payment_method = "card" }

[connector_customer]
connector_list = "gocardless,stax,stripe"
connector_list = "gocardless,stax,stripe,facilitapay"
payout_connector_list = "nomupay,stripe,wise"

[dummy_connector]
Expand Down
5 changes: 4 additions & 1 deletion config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,9 @@ apple_pay = { country = "AD,AE,AL,AM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ency = "USD, CAD" }
debit = { country = "US, CA", currency = "USD, CAD" }
Expand Down Expand Up @@ -713,7 +716,7 @@ card.debit = { connector_list = "cybersource" }
connector_list = "adyen,cybersource,novalnet,stripe,worldpay"

[connector_customer]
connector_list = "gocardless,stax,stripe"
connector_list = "gocardless,stax,stripe,facilitapay"
payout_connector_list = "nomupay,stripe,wise"


Expand Down
2 changes: 2 additions & 0 deletions crates/api_models/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ pub enum FieldType {
UserBlikCode,
UserBank,
UserBankAccountNumber,
UserSourceBankAccountId,
UserDestinationBankAccountId,
Text,
DropDown { options: Vec<String> },
UserDateOfBirth,
Expand Down
9 changes: 9 additions & 0 deletions crates/api_models/src/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ use common_utils::{
ext_traits::{ConfigExt, Encode, ValueExt},
hashing::HashedString,
id_type,
new_type::MaskedBankAccount,
pii::{self, Email},
types::{MinorUnit, StringMajorUnit},
};
Expand Down Expand Up @@ -3413,6 +3414,14 @@ pub enum BankTransferData {
/// CNPJ is a Brazilian company tax identification number
#[schema(value_type = Option<String>, example = "74469027417312")]
cnpj: Option<Secret<String>>,

/// Source bank account number
#[schema(value_type = Option<String>, example = "8b2812f0-d6c8-4073-97bb-9fa964d08bc5")]
source_bank_account_id: Option<MaskedBankAccount>,

/// Destination bank account number
#[schema(value_type = Option<String>, example = "9b95f84e-de61-460b-a14b-f23b4e71c97b")]
destination_bank_account_id: Option<MaskedBankAccount>,
},
Pse {},
LocalBankTransfer {
Expand Down
8 changes: 8 additions & 0 deletions crates/api_models/src/payments/additional_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,14 @@ pub struct PixBankTransferAdditionalData {
/// Partially masked CNPJ - CNPJ is a Brazilian company tax identification number
#[schema(value_type = Option<String>, example = "**** 417312")]
pub cnpj: Option<MaskedBankAccount>,

/// Partially masked source bank account number
#[schema(value_type = Option<String>, example = "********-****-4073-****-9fa964d08bc5")]
pub source_bank_account_id: Option<MaskedBankAccount>,

/// Partially masked destination bank account number
#[schema(value_type = Option<String>, example = "********-****-460b-****-f23b4e71c97b")]
pub destination_bank_account_id: Option<MaskedBankAccount>,
}

#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, ToSchema)]
Expand Down
11 changes: 6 additions & 5 deletions crates/common_enums/src/connector_enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ pub enum RoutableConnectors {
Dlocal,
Ebanx,
Elavon,
// Facilitapay,
Facilitapay,
Fiserv,
Fiservemea,
Fiuu,
Expand Down Expand Up @@ -225,7 +225,7 @@ pub enum Connector {
Dlocal,
Ebanx,
Elavon,
// Facilitapay,
Facilitapay,
Fiserv,
Fiservemea,
Fiuu,
Expand Down Expand Up @@ -344,6 +344,7 @@ impl Connector {
| (Self::Iatapay, _)
| (Self::Volt, _)
| (Self::Itaubank, _)
| (Self::Facilitapay, _)
)
}
pub fn supports_file_storage_module(self) -> bool {
Expand Down Expand Up @@ -387,7 +388,7 @@ impl Connector {
| Self::Dlocal
| Self::Ebanx
| Self::Elavon
// | Self::Facilitapay
| Self::Facilitapay
| Self::Fiserv
| Self::Fiservemea
| Self::Fiuu
Expand Down Expand Up @@ -537,7 +538,7 @@ impl From<RoutableConnectors> for Connector {
RoutableConnectors::Dlocal => Self::Dlocal,
RoutableConnectors::Ebanx => Self::Ebanx,
RoutableConnectors::Elavon => Self::Elavon,
// RoutableConnectors::Facilitapay => Self::Facilitapay,
RoutableConnectors::Facilitapay => Self::Facilitapay,
RoutableConnectors::Fiserv => Self::Fiserv,
RoutableConnectors::Fiservemea => Self::Fiservemea,
RoutableConnectors::Fiuu => Self::Fiuu,
Expand Down Expand Up @@ -646,7 +647,7 @@ impl TryFrom<Connector> for RoutableConnectors {
Connector::Dlocal => Ok(Self::Dlocal),
Connector::Ebanx => Ok(Self::Ebanx),
Connector::Elavon => Ok(Self::Elavon),
// Connector::Facilitapay => Ok(Self::Facilitapay),
Connector::Facilitapay => Ok(Self::Facilitapay),
Connector::Fiserv => Ok(Self::Fiserv),
Connector::Fiservemea => Ok(Self::Fiservemea),
Connector::Fiuu => Ok(Self::Fiuu),
Expand Down
Loading
Loading