Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(connector): [Paybox] add paybox connector #5575

Merged
merged 22 commits into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
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
2 changes: 1 addition & 1 deletion config/deployments/production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ noon.key_mode = "Live"
nuvei.base_url = "https://ppp-test.nuvei.com/"
opayo.base_url = "https://pi-live.sagepay.com/"
opennode.base_url = "https://api.opennode.com"
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
paybox.base_url = "https://ppps.paybox.com/PPPS.php"
payeezy.base_url = "https://api.payeezy.com/"
payme.base_url = "https://live.payme.io/"
payone.base_url = "https://payment.payone.com/"
Expand Down
6 changes: 3 additions & 3 deletions crates/api_models/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub enum Connector {
Nuvei,
// Opayo, added as template code for future usage
Opennode,
// Paybox, added as template code for future usage
Paybox,
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
Payme,
Payone,
Expand Down Expand Up @@ -240,8 +240,8 @@ impl Connector {
| Self::Nexinets
| Self::Nuvei
| Self::Opennode
// | Self::Paybox added as template code for future usage
| Self::Payme
| Self::Paybox
| Self::Payme
| Self::Payone
| Self::Paypal
| Self::Payu
Expand Down
2 changes: 1 addition & 1 deletion crates/common_enums/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ pub enum RoutableConnectors {
// Opayo, added as template code for future usage
Opennode,
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
// Paybox, added as template code for future usage
Paybox,
Payme,
Payone,
Paypal,
Expand Down
4 changes: 2 additions & 2 deletions crates/connector_configs/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ pub struct ConnectorConfig {
pub nmi: Option<ConnectorTomlConfig>,
pub noon: Option<ConnectorTomlConfig>,
pub nuvei: Option<ConnectorTomlConfig>,
// pub paybox: Option<ConnectorTomlConfig>, added for future usage
pub paybox: Option<ConnectorTomlConfig>,
pub payme: Option<ConnectorTomlConfig>,
#[cfg(feature = "payouts")]
pub payone_payout: Option<ConnectorTomlConfig>,
Expand Down Expand Up @@ -314,6 +314,7 @@ impl ConnectorConfig {
Connector::Nmi => Ok(connector_data.nmi),
Connector::Noon => Ok(connector_data.noon),
Connector::Nuvei => Ok(connector_data.nuvei),
Connector::Paybox => Ok(connector_data.paybox),
Connector::Payme => Ok(connector_data.payme),
Connector::Payone => Err("Use get_payout_connector_config".to_string()),
Connector::Paypal => Ok(connector_data.paypal),
Expand Down Expand Up @@ -354,7 +355,6 @@ impl ConnectorConfig {
#[cfg(feature = "dummy_connector")]
Connector::DummyConnector7 => Ok(connector_data.paypal_test),
Connector::Netcetera => Ok(connector_data.netcetera),
// Connector::Paybox => Ok(connector_data.paybox), added for future usage
}
}
}
40 changes: 40 additions & 0 deletions crates/connector_configs/toml/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3803,6 +3803,46 @@ key1="Public Api Key"
api_key = "Passcode"
key1 = "datatrans MerchantId"

[paybox]
[[paybox.credit]]
payment_method_type = "Mastercard"
[[paybox.credit]]
payment_method_type = "Visa"
[[paybox.credit]]
payment_method_type = "Interac"
[[paybox.credit]]
payment_method_type = "AmericanExpress"
[[paybox.credit]]
payment_method_type = "JCB"
[[paybox.credit]]
payment_method_type = "DinersClub"
[[paybox.credit]]
payment_method_type = "Discover"
[[paybox.credit]]
payment_method_type = "CartesBancaires"
[[paybox.credit]]
payment_method_type = "UnionPay"
[[paybox.debit]]
payment_method_type = "Mastercard"
[[paybox.debit]]
payment_method_type = "Visa"
[[paybox.debit]]
payment_method_type = "Interac"
[[paybox.debit]]
payment_method_type = "AmericanExpress"
[[paybox.debit]]
payment_method_type = "JCB"
[[paybox.debit]]
payment_method_type = "DinersClub"
[[paybox.debit]]
payment_method_type = "Discover"
[[paybox.debit]]
payment_method_type = "CartesBancaires"
[paybox.connector_auth.SignatureKey]
api_key="SITE Key"
key1="Rang Identifier"
api_secret="CLE Secret"
KiranKBR marked this conversation as resolved.
Show resolved Hide resolved

[wellsfargo]
[[wellsfargo.credit]]
payment_method_type = "Mastercard"
Expand Down
40 changes: 40 additions & 0 deletions crates/connector_configs/toml/production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2680,6 +2680,46 @@ key1 = "Merchant ID"
api_key="Private Api Key"
key1="Public Api Key"

[paybox]
[[paybox.credit]]
payment_method_type = "Mastercard"
[[paybox.credit]]
payment_method_type = "Visa"
[[paybox.credit]]
payment_method_type = "Interac"
[[paybox.credit]]
payment_method_type = "AmericanExpress"
[[paybox.credit]]
payment_method_type = "JCB"
[[paybox.credit]]
payment_method_type = "DinersClub"
[[paybox.credit]]
payment_method_type = "Discover"
[[paybox.credit]]
payment_method_type = "CartesBancaires"
[[paybox.credit]]
payment_method_type = "UnionPay"
[[paybox.debit]]
payment_method_type = "Mastercard"
[[paybox.debit]]
payment_method_type = "Visa"
[[paybox.debit]]
payment_method_type = "Interac"
[[paybox.debit]]
payment_method_type = "AmericanExpress"
[[paybox.debit]]
payment_method_type = "JCB"
[[paybox.debit]]
payment_method_type = "DinersClub"
[[paybox.debit]]
payment_method_type = "Discover"
[[paybox.debit]]
payment_method_type = "CartesBancaires"
[paybox.connector_auth.SignatureKey]
api_key="SITE Key"
key1="Rang Identifier"
api_secret="CLE Secret"

[datatrans]
[[datatrans.credit]]
payment_method_type = "Mastercard"
Expand Down
40 changes: 40 additions & 0 deletions crates/connector_configs/toml/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3796,6 +3796,46 @@ key1="Public Api Key"
api_key = "Passcode"
key1 = "datatrans MerchantId"

[paybox]
[[paybox.credit]]
payment_method_type = "Mastercard"
[[paybox.credit]]
payment_method_type = "Visa"
[[paybox.credit]]
payment_method_type = "Interac"
[[paybox.credit]]
payment_method_type = "AmericanExpress"
[[paybox.credit]]
payment_method_type = "JCB"
[[paybox.credit]]
payment_method_type = "DinersClub"
[[paybox.credit]]
payment_method_type = "Discover"
[[paybox.credit]]
payment_method_type = "CartesBancaires"
[[paybox.credit]]
payment_method_type = "UnionPay"
[[paybox.debit]]
payment_method_type = "Mastercard"
[[paybox.debit]]
payment_method_type = "Visa"
[[paybox.debit]]
payment_method_type = "Interac"
[[paybox.debit]]
payment_method_type = "AmericanExpress"
[[paybox.debit]]
payment_method_type = "JCB"
[[paybox.debit]]
payment_method_type = "DinersClub"
[[paybox.debit]]
payment_method_type = "Discover"
[[paybox.debit]]
payment_method_type = "CartesBancaires"
[paybox.connector_auth.SignatureKey]
api_key="SITE Key"
key1="Rang Identifier"
api_secret="CLE Secret"

[wellsfargo]
[[wellsfargo.credit]]
payment_method_type = "Mastercard"
Expand Down
Loading
Loading