Skip to content

Commit e4f4fba

Browse files
feat(connector): [Paybox] add paybox connector (#5575)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
1 parent 8fa51b7 commit e4f4fba

File tree

17 files changed

+962
-182
lines changed

17 files changed

+962
-182
lines changed

api-reference-v2/openapi_spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3577,6 +3577,7 @@
35773577
"noon",
35783578
"nuvei",
35793579
"opennode",
3580+
"paybox",
35803581
"payme",
35813582
"payone",
35823583
"paypal",
@@ -15493,6 +15494,7 @@
1549315494
"noon",
1549415495
"nuvei",
1549515496
"opennode",
15497+
"paybox",
1549615498
"payme",
1549715499
"payone",
1549815500
"paypal",

api-reference/openapi_spec.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8055,6 +8055,7 @@
80558055
"noon",
80568056
"nuvei",
80578057
"opennode",
8058+
"paybox",
80588059
"payme",
80598060
"payone",
80608061
"paypal",
@@ -20765,6 +20766,7 @@
2076520766
"noon",
2076620767
"nuvei",
2076720768
"opennode",
20769+
"paybox",
2076820770
"payme",
2076920771
"payone",
2077020772
"paypal",

config/deployments/production.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ noon.key_mode = "Live"
7070
nuvei.base_url = "https://ppp-test.nuvei.com/"
7171
opayo.base_url = "https://pi-live.sagepay.com/"
7272
opennode.base_url = "https://api.opennode.com"
73-
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
73+
paybox.base_url = "https://ppps.paybox.com/PPPS.php"
7474
payeezy.base_url = "https://api.payeezy.com/"
7575
payme.base_url = "https://live.payme.io/"
7676
payone.base_url = "https://payment.payone.com/"

crates/api_models/src/enums.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ pub enum Connector {
116116
Nuvei,
117117
// Opayo, added as template code for future usage
118118
Opennode,
119-
// Paybox, added as template code for future usage
119+
Paybox,
120120
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
121121
Payme,
122122
Payone,
@@ -244,8 +244,8 @@ impl Connector {
244244
| Self::Nexinets
245245
| Self::Nuvei
246246
| Self::Opennode
247-
// | Self::Paybox added as template code for future usage
248-
| Self::Payme
247+
| Self::Paybox
248+
| Self::Payme
249249
| Self::Payone
250250
| Self::Paypal
251251
| Self::Payu

crates/common_enums/src/enums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ pub enum RoutableConnectors {
229229
// Opayo, added as template code for future usage
230230
Opennode,
231231
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
232-
// Paybox, added as template code for future usage
232+
Paybox,
233233
Payme,
234234
Payone,
235235
Paypal,

crates/connector_configs/src/connector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ pub struct ConnectorConfig {
175175
pub nmi: Option<ConnectorTomlConfig>,
176176
pub noon: Option<ConnectorTomlConfig>,
177177
pub nuvei: Option<ConnectorTomlConfig>,
178-
// pub paybox: Option<ConnectorTomlConfig>, added for future usage
178+
pub paybox: Option<ConnectorTomlConfig>,
179179
pub payme: Option<ConnectorTomlConfig>,
180180
#[cfg(feature = "payouts")]
181181
pub payone_payout: Option<ConnectorTomlConfig>,
@@ -323,6 +323,7 @@ impl ConnectorConfig {
323323
Connector::Nmi => Ok(connector_data.nmi),
324324
Connector::Noon => Ok(connector_data.noon),
325325
Connector::Nuvei => Ok(connector_data.nuvei),
326+
Connector::Paybox => Ok(connector_data.paybox),
326327
Connector::Payme => Ok(connector_data.payme),
327328
Connector::Payone => Err("Use get_payout_connector_config".to_string()),
328329
Connector::Paypal => Ok(connector_data.paypal),
@@ -363,7 +364,6 @@ impl ConnectorConfig {
363364
#[cfg(feature = "dummy_connector")]
364365
Connector::DummyConnector7 => Ok(connector_data.paypal_test),
365366
Connector::Netcetera => Ok(connector_data.netcetera),
366-
// Connector::Paybox => Ok(connector_data.paybox), added for future usage
367367
}
368368
}
369369
}

crates/connector_configs/toml/development.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3803,6 +3803,46 @@ key1="Public Api Key"
38033803
api_key = "Passcode"
38043804
key1 = "datatrans MerchantId"
38053805

3806+
[paybox]
3807+
[[paybox.credit]]
3808+
payment_method_type = "Mastercard"
3809+
[[paybox.credit]]
3810+
payment_method_type = "Visa"
3811+
[[paybox.credit]]
3812+
payment_method_type = "Interac"
3813+
[[paybox.credit]]
3814+
payment_method_type = "AmericanExpress"
3815+
[[paybox.credit]]
3816+
payment_method_type = "JCB"
3817+
[[paybox.credit]]
3818+
payment_method_type = "DinersClub"
3819+
[[paybox.credit]]
3820+
payment_method_type = "Discover"
3821+
[[paybox.credit]]
3822+
payment_method_type = "CartesBancaires"
3823+
[[paybox.credit]]
3824+
payment_method_type = "UnionPay"
3825+
[[paybox.debit]]
3826+
payment_method_type = "Mastercard"
3827+
[[paybox.debit]]
3828+
payment_method_type = "Visa"
3829+
[[paybox.debit]]
3830+
payment_method_type = "Interac"
3831+
[[paybox.debit]]
3832+
payment_method_type = "AmericanExpress"
3833+
[[paybox.debit]]
3834+
payment_method_type = "JCB"
3835+
[[paybox.debit]]
3836+
payment_method_type = "DinersClub"
3837+
[[paybox.debit]]
3838+
payment_method_type = "Discover"
3839+
[[paybox.debit]]
3840+
payment_method_type = "CartesBancaires"
3841+
[paybox.connector_auth.SignatureKey]
3842+
api_key="SITE Key"
3843+
key1="Rang Identifier"
3844+
api_secret="CLE Secret"
3845+
38063846
[wellsfargo]
38073847
[[wellsfargo.credit]]
38083848
payment_method_type = "Mastercard"

crates/connector_configs/toml/production.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,6 +2680,46 @@ key1 = "Merchant ID"
26802680
api_key="Private Api Key"
26812681
key1="Public Api Key"
26822682

2683+
[paybox]
2684+
[[paybox.credit]]
2685+
payment_method_type = "Mastercard"
2686+
[[paybox.credit]]
2687+
payment_method_type = "Visa"
2688+
[[paybox.credit]]
2689+
payment_method_type = "Interac"
2690+
[[paybox.credit]]
2691+
payment_method_type = "AmericanExpress"
2692+
[[paybox.credit]]
2693+
payment_method_type = "JCB"
2694+
[[paybox.credit]]
2695+
payment_method_type = "DinersClub"
2696+
[[paybox.credit]]
2697+
payment_method_type = "Discover"
2698+
[[paybox.credit]]
2699+
payment_method_type = "CartesBancaires"
2700+
[[paybox.credit]]
2701+
payment_method_type = "UnionPay"
2702+
[[paybox.debit]]
2703+
payment_method_type = "Mastercard"
2704+
[[paybox.debit]]
2705+
payment_method_type = "Visa"
2706+
[[paybox.debit]]
2707+
payment_method_type = "Interac"
2708+
[[paybox.debit]]
2709+
payment_method_type = "AmericanExpress"
2710+
[[paybox.debit]]
2711+
payment_method_type = "JCB"
2712+
[[paybox.debit]]
2713+
payment_method_type = "DinersClub"
2714+
[[paybox.debit]]
2715+
payment_method_type = "Discover"
2716+
[[paybox.debit]]
2717+
payment_method_type = "CartesBancaires"
2718+
[paybox.connector_auth.SignatureKey]
2719+
api_key="SITE Key"
2720+
key1="Rang Identifier"
2721+
api_secret="CLE Secret"
2722+
26832723
[datatrans]
26842724
[[datatrans.credit]]
26852725
payment_method_type = "Mastercard"

crates/connector_configs/toml/sandbox.toml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3796,6 +3796,46 @@ key1="Public Api Key"
37963796
api_key = "Passcode"
37973797
key1 = "datatrans MerchantId"
37983798

3799+
[paybox]
3800+
[[paybox.credit]]
3801+
payment_method_type = "Mastercard"
3802+
[[paybox.credit]]
3803+
payment_method_type = "Visa"
3804+
[[paybox.credit]]
3805+
payment_method_type = "Interac"
3806+
[[paybox.credit]]
3807+
payment_method_type = "AmericanExpress"
3808+
[[paybox.credit]]
3809+
payment_method_type = "JCB"
3810+
[[paybox.credit]]
3811+
payment_method_type = "DinersClub"
3812+
[[paybox.credit]]
3813+
payment_method_type = "Discover"
3814+
[[paybox.credit]]
3815+
payment_method_type = "CartesBancaires"
3816+
[[paybox.credit]]
3817+
payment_method_type = "UnionPay"
3818+
[[paybox.debit]]
3819+
payment_method_type = "Mastercard"
3820+
[[paybox.debit]]
3821+
payment_method_type = "Visa"
3822+
[[paybox.debit]]
3823+
payment_method_type = "Interac"
3824+
[[paybox.debit]]
3825+
payment_method_type = "AmericanExpress"
3826+
[[paybox.debit]]
3827+
payment_method_type = "JCB"
3828+
[[paybox.debit]]
3829+
payment_method_type = "DinersClub"
3830+
[[paybox.debit]]
3831+
payment_method_type = "Discover"
3832+
[[paybox.debit]]
3833+
payment_method_type = "CartesBancaires"
3834+
[paybox.connector_auth.SignatureKey]
3835+
api_key="SITE Key"
3836+
key1="Rang Identifier"
3837+
api_secret="CLE Secret"
3838+
37993839
[wellsfargo]
38003840
[[wellsfargo.credit]]
38013841
payment_method_type = "Mastercard"

0 commit comments

Comments
 (0)