Skip to content

Commit

Permalink
feat(connector): [Payone] add connector template code (#4469)
Browse files Browse the repository at this point in the history
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
  • Loading branch information
KiranKBR and hyperswitch-bot[bot] committed May 9, 2024
1 parent 9135423 commit f386f42
Show file tree
Hide file tree
Showing 23 changed files with 1,286 additions and 11 deletions.
1 change: 1 addition & 0 deletions config/config.example.toml
Expand Up @@ -208,6 +208,7 @@ opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
paypal.base_url = "https://api-m.sandbox.paypal.com/"
payu.base_url = "https://secure.snd.payu.com/"
placetopay.base_url = "https://test.placetopay.com/rest/gateway"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/integration_test.toml
Expand Up @@ -62,6 +62,7 @@ opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
paypal.base_url = "https://api-m.sandbox.paypal.com/"
payu.base_url = "https://secure.snd.payu.com/"
placetopay.base_url = "https://test.placetopay.com/rest/gateway"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/production.toml
Expand Up @@ -66,6 +66,7 @@ opayo.base_url = "https://pi-live.sagepay.com/"
opennode.base_url = "https://api.opennode.com"
payeezy.base_url = "https://api.payeezy.com/"
payme.base_url = "https://live.payme.io/"
payone.base_url = "https://payment.payone.com/"
paypal.base_url = "https://api-m.paypal.com/"
payu.base_url = "https://secure.payu.com/api/"
placetopay.base_url = "https://checkout.placetopay.com/rest/gateway"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/sandbox.toml
Expand Up @@ -66,6 +66,7 @@ opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
paypal.base_url = "https://api-m.sandbox.paypal.com/"
payu.base_url = "https://secure.snd.payu.com/"
placetopay.base_url = "https://test.placetopay.com/rest/gateway"
Expand Down
2 changes: 2 additions & 0 deletions config/development.toml
Expand Up @@ -128,6 +128,7 @@ cards = [
"opennode",
"payeezy",
"payme",
"payone",
"paypal",
"payu",
"placetopay",
Expand Down Expand Up @@ -208,6 +209,7 @@ opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
paypal.base_url = "https://api-m.sandbox.paypal.com/"
payu.base_url = "https://secure.snd.payu.com/"
placetopay.base_url = "https://test.placetopay.com/rest/gateway"
Expand Down
2 changes: 2 additions & 0 deletions config/docker_compose.toml
Expand Up @@ -145,6 +145,7 @@ opayo.base_url = "https://pi-test.sagepay.com/"
opennode.base_url = "https://dev-api.opennode.com"
payeezy.base_url = "https://api-cert.payeezy.com/"
payme.base_url = "https://sandbox.payme.io/"
payone.base_url = "https://payment.preprod.payone.com/"
paypal.base_url = "https://api-m.sandbox.paypal.com/"
payu.base_url = "https://secure.snd.payu.com/"
placetopay.base_url = "https://test.placetopay.com/rest/gateway"
Expand Down Expand Up @@ -216,6 +217,7 @@ cards = [
"opennode",
"payeezy",
"payme",
"payone",
"paypal",
"payu",
"placetopay",
Expand Down
2 changes: 2 additions & 0 deletions crates/api_models/src/enums.rs
Expand Up @@ -110,6 +110,7 @@ pub enum Connector {
Opennode,
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
Payme,
// Payone, added as template code for future usage
Paypal,
Payu,
Placetopay,
Expand Down Expand Up @@ -218,6 +219,7 @@ impl Connector {
| Self::Nuvei
| Self::Opennode
| Self::Payme
// | Self::Payone Added as a template code for future usage
| Self::Paypal
| Self::Payu
| Self::Placetopay
Expand Down
1 change: 1 addition & 0 deletions crates/common_enums/src/enums.rs
Expand Up @@ -148,6 +148,7 @@ pub enum RoutableConnectors {
Opennode,
// Payeezy, As psync and rsync are not supported by this connector, it is added as template code for future usage
Payme,
Payone,
Paypal,
Payu,
Placetopay,
Expand Down
1 change: 1 addition & 0 deletions crates/router/src/configs/settings.rs
Expand Up @@ -533,6 +533,7 @@ pub struct Connectors {
pub opennode: ConnectorParams,
pub payeezy: ConnectorParams,
pub payme: ConnectorParams,
pub payone: ConnectorParams,
pub paypal: ConnectorParams,
pub payu: ConnectorParams,
pub placetopay: ConnectorParams,
Expand Down
11 changes: 6 additions & 5 deletions crates/router/src/connector.rs
Expand Up @@ -38,6 +38,7 @@ pub mod opayo;
pub mod opennode;
pub mod payeezy;
pub mod payme;
pub mod payone;
pub mod paypal;
pub mod payu;
pub mod placetopay;
Expand Down Expand Up @@ -72,9 +73,9 @@ pub use self::{
globepay::Globepay, gocardless::Gocardless, helcim::Helcim, iatapay::Iatapay, klarna::Klarna,
mifinity::Mifinity, mollie::Mollie, multisafepay::Multisafepay, netcetera::Netcetera,
nexinets::Nexinets, nmi::Nmi, noon::Noon, nuvei::Nuvei, opayo::Opayo, opennode::Opennode,
payeezy::Payeezy, payme::Payme, paypal::Paypal, payu::Payu, placetopay::Placetopay,
powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, riskified::Riskified,
shift4::Shift4, signifyd::Signifyd, square::Square, stax::Stax, stripe::Stripe,
threedsecureio::Threedsecureio, trustpay::Trustpay, tsys::Tsys, volt::Volt, wise::Wise,
worldline::Worldline, worldpay::Worldpay, zen::Zen, zsl::Zsl,
payeezy::Payeezy, payme::Payme, payone::Payone, paypal::Paypal, payu::Payu,
placetopay::Placetopay, powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd,
riskified::Riskified, shift4::Shift4, signifyd::Signifyd, square::Square, stax::Stax,
stripe::Stripe, threedsecureio::Threedsecureio, trustpay::Trustpay, tsys::Tsys, volt::Volt,
wise::Wise, worldline::Worldline, worldpay::Worldpay, zen::Zen, zsl::Zsl,
};

0 comments on commit f386f42

Please sign in to comment.