Skip to content

Commit bbf8844

Browse files
feat(connector): [Xendit] ADD Cards & Mandates Flow (#6966)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
1 parent 043cf8e commit bbf8844

File tree

21 files changed

+1534
-210
lines changed

21 files changed

+1534
-210
lines changed

api-reference-v2/openapi_spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6663,6 +6663,7 @@
66636663
"signifyd",
66646664
"plaid",
66656665
"riskified",
6666+
"xendit",
66666667
"zen",
66676668
"zsl"
66686669
]
@@ -19420,6 +19421,7 @@
1942019421
"wise",
1942119422
"worldline",
1942219423
"worldpay",
19424+
"xendit",
1942319425
"zen",
1942419426
"plaid",
1942519427
"zsl"

api-reference/openapi_spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9316,6 +9316,7 @@
93169316
"signifyd",
93179317
"plaid",
93189318
"riskified",
9319+
"xendit",
93199320
"zen",
93209321
"zsl"
93219322
]
@@ -23975,6 +23976,7 @@
2397523976
"wise",
2397623977
"worldline",
2397723978
"worldpay",
23979+
"xendit",
2397823980
"zen",
2397923981
"plaid",
2398023982
"zsl"

crates/common_enums/src/connector_enums.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ pub enum RoutableConnectors {
130130
Wise,
131131
Worldline,
132132
Worldpay,
133-
// Xendit,
133+
Xendit,
134134
Zen,
135135
Plaid,
136136
Zsl,
@@ -268,7 +268,7 @@ pub enum Connector {
268268
Signifyd,
269269
Plaid,
270270
Riskified,
271-
// Xendit,
271+
Xendit,
272272
Zen,
273273
Zsl,
274274
}
@@ -404,7 +404,7 @@ impl Connector {
404404
| Self::Wise
405405
| Self::Worldline
406406
| Self::Worldpay
407-
// | Self::Xendit
407+
| Self::Xendit
408408
| Self::Zen
409409
| Self::Zsl
410410
| Self::Signifyd
@@ -536,6 +536,7 @@ impl From<RoutableConnectors> for Connector {
536536
RoutableConnectors::Zen => Self::Zen,
537537
RoutableConnectors::Plaid => Self::Plaid,
538538
RoutableConnectors::Zsl => Self::Zsl,
539+
RoutableConnectors::Xendit => Self::Xendit,
539540
}
540541
}
541542
}

crates/connector_configs/src/connector.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,7 @@ impl ConnectorConfig {
414414
Connector::DummyConnector7 => Ok(connector_data.paypal_test),
415415
Connector::Netcetera => Ok(connector_data.netcetera),
416416
Connector::CtpMastercard => Ok(connector_data.ctp_mastercard),
417+
Connector::Xendit => Ok(connector_data.xendit),
417418
}
418419
}
419420
}

crates/connector_configs/toml/development.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4472,3 +4472,43 @@ label="Merchant Country Code"
44724472
placeholder="Enter Merchant Country Code"
44734473
required=true
44744474
type="Text"
4475+
4476+
[xendit]
4477+
[[xendit.credit]]
4478+
payment_method_type = "Mastercard"
4479+
[[xendit.credit]]
4480+
payment_method_type = "Visa"
4481+
[[xendit.credit]]
4482+
payment_method_type = "Interac"
4483+
[[xendit.credit]]
4484+
payment_method_type = "AmericanExpress"
4485+
[[xendit.credit]]
4486+
payment_method_type = "JCB"
4487+
[[xendit.credit]]
4488+
payment_method_type = "DinersClub"
4489+
[[xendit.credit]]
4490+
payment_method_type = "Discover"
4491+
[[xendit.credit]]
4492+
payment_method_type = "CartesBancaires"
4493+
[[xendit.credit]]
4494+
payment_method_type = "UnionPay"
4495+
[[xendit.debit]]
4496+
payment_method_type = "Mastercard"
4497+
[[xendit.debit]]
4498+
payment_method_type = "Visa"
4499+
[[xendit.debit]]
4500+
payment_method_type = "Interac"
4501+
[[xendit.debit]]
4502+
payment_method_type = "AmericanExpress"
4503+
[[xendit.debit]]
4504+
payment_method_type = "JCB"
4505+
[[xendit.debit]]
4506+
payment_method_type = "DinersClub"
4507+
[[xendit.debit]]
4508+
payment_method_type = "Discover"
4509+
[[xendit.debit]]
4510+
payment_method_type = "CartesBancaires"
4511+
[[xendit.debit]]
4512+
payment_method_type = "UnionPay"
4513+
[xendit.connector_auth.HeaderKey]
4514+
api_key="API Key"

crates/connector_configs/toml/production.toml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3340,4 +3340,44 @@ merchant_secret="Source verification key"
33403340
[elavon.connector_auth.SignatureKey]
33413341
api_key="Account Id"
33423342
key1="User ID"
3343-
api_secret="Pin"
3343+
api_secret="Pin"
3344+
3345+
[xendit]
3346+
[[xendit.credit]]
3347+
payment_method_type = "Mastercard"
3348+
[[xendit.credit]]
3349+
payment_method_type = "Visa"
3350+
[[xendit.credit]]
3351+
payment_method_type = "Interac"
3352+
[[xendit.credit]]
3353+
payment_method_type = "AmericanExpress"
3354+
[[xendit.credit]]
3355+
payment_method_type = "JCB"
3356+
[[xendit.credit]]
3357+
payment_method_type = "DinersClub"
3358+
[[xendit.credit]]
3359+
payment_method_type = "Discover"
3360+
[[xendit.credit]]
3361+
payment_method_type = "CartesBancaires"
3362+
[[xendit.credit]]
3363+
payment_method_type = "UnionPay"
3364+
[[xendit.debit]]
3365+
payment_method_type = "Mastercard"
3366+
[[xendit.debit]]
3367+
payment_method_type = "Visa"
3368+
[[xendit.debit]]
3369+
payment_method_type = "Interac"
3370+
[[xendit.debit]]
3371+
payment_method_type = "AmericanExpress"
3372+
[[xendit.debit]]
3373+
payment_method_type = "JCB"
3374+
[[xendit.debit]]
3375+
payment_method_type = "DinersClub"
3376+
[[xendit.debit]]
3377+
payment_method_type = "Discover"
3378+
[[xendit.debit]]
3379+
payment_method_type = "CartesBancaires"
3380+
[[xendit.debit]]
3381+
payment_method_type = "UnionPay"
3382+
[xendit.connector_auth.HeaderKey]
3383+
api_key="API Key"

crates/connector_configs/toml/sandbox.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4409,3 +4409,43 @@ label="Merchant Country Code"
44094409
placeholder="Enter Merchant Country Code"
44104410
required=true
44114411
type="Text"
4412+
4413+
[xendit]
4414+
[[xendit.credit]]
4415+
payment_method_type = "Mastercard"
4416+
[[xendit.credit]]
4417+
payment_method_type = "Visa"
4418+
[[xendit.credit]]
4419+
payment_method_type = "Interac"
4420+
[[xendit.credit]]
4421+
payment_method_type = "AmericanExpress"
4422+
[[xendit.credit]]
4423+
payment_method_type = "JCB"
4424+
[[xendit.credit]]
4425+
payment_method_type = "DinersClub"
4426+
[[xendit.credit]]
4427+
payment_method_type = "Discover"
4428+
[[xendit.credit]]
4429+
payment_method_type = "CartesBancaires"
4430+
[[xendit.credit]]
4431+
payment_method_type = "UnionPay"
4432+
[[xendit.debit]]
4433+
payment_method_type = "Mastercard"
4434+
[[xendit.debit]]
4435+
payment_method_type = "Visa"
4436+
[[xendit.debit]]
4437+
payment_method_type = "Interac"
4438+
[[xendit.debit]]
4439+
payment_method_type = "AmericanExpress"
4440+
[[xendit.debit]]
4441+
payment_method_type = "JCB"
4442+
[[xendit.debit]]
4443+
payment_method_type = "DinersClub"
4444+
[[xendit.debit]]
4445+
payment_method_type = "Discover"
4446+
[[xendit.debit]]
4447+
payment_method_type = "CartesBancaires"
4448+
[[xendit.debit]]
4449+
payment_method_type = "UnionPay"
4450+
[xendit.connector_auth.HeaderKey]
4451+
api_key="API Key"

0 commit comments

Comments
 (0)