Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
jpmorgan.secondary_base_url= "https://id.payments.jpmorgan.com"
klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
mifinity.base_url = "https://demo.mifinity.com/"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/integration_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
mifinity.base_url = "https://demo.mifinity.com/"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ iatapay.base_url = "https://iata-pay.iata.org/api/v1"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
itaubank.base_url = "https://secure.api.itau/"
jpmorgan.base_url = "https://api-ms.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
klarna.base_url = "https://api{{klarna_region}}.klarna.com/"
mifinity.base_url = "https://secure.mifinity.com/"
Expand Down
1 change: 1 addition & 0 deletions config/deployments/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
mifinity.base_url = "https://demo.mifinity.com/"
Expand Down
2 changes: 2 additions & 0 deletions config/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ cards = [
"inespay",
"itaubank",
"jpmorgan",
"juspaythreedsserver",
"mollie",
"moneris",
"multisafepay",
Expand Down Expand Up @@ -295,6 +296,7 @@ iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
jpmorgan.secondary_base_url = "https://id.payments.jpmorgan.com"
klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
mifinity.base_url = "https://demo.mifinity.com/"
Expand Down
2 changes: 2 additions & 0 deletions config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ iatapay.base_url = "https://sandbox.iata-pay.iata.org/api/v1"
inespay.base_url = "https://apiflow.inespay.com/san/v21"
itaubank.base_url = "https://sandbox.devportal.itau.com.br/"
jpmorgan.base_url = "https://api-mock.payments.jpmorgan.com/api/v2"
juspaythreedsserver.base_url = "http://localhost:8000"
jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
jpmorgan.secondary_base_url="https://id.payments.jpmorgan.com"
jpmorgan.secondary_base_url = "https://id.payments.jpmorgan.com"

nit: consistant formatting

klarna.base_url = "https://api{{klarna_region}}.playground.klarna.com/"
mifinity.base_url = "https://demo.mifinity.com/"
Expand Down Expand Up @@ -264,6 +265,7 @@ cards = [
"inespay",
"itaubank",
"jpmorgan",
"juspaythreedsserver",
"mollie",
"moneris",
"multisafepay",
Expand Down
2 changes: 2 additions & 0 deletions crates/common_enums/src/connector_enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ pub enum Connector {
Iatapay,
Itaubank,
Jpmorgan,
Juspaythreedsserver,
Klarna,
Mifinity,
Mollie,
Expand Down Expand Up @@ -389,6 +390,7 @@ impl Connector {
| Self::Inespay
| Self::Itaubank
| Self::Jpmorgan
| Self::Juspaythreedsserver
| Self::Klarna
| Self::Mifinity
| Self::Mollie
Expand Down
4 changes: 3 additions & 1 deletion crates/common_enums/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6502,6 +6502,7 @@ pub enum AuthenticationConnectors {
Gpayments,
CtpMastercard,
UnifiedAuthenticationService,
Juspaythreedsserver,
}

impl AuthenticationConnectors {
Expand All @@ -6510,7 +6511,8 @@ impl AuthenticationConnectors {
Self::Threedsecureio
| Self::Netcetera
| Self::CtpMastercard
| Self::UnifiedAuthenticationService => false,
| Self::UnifiedAuthenticationService
| Self::Juspaythreedsserver => false,
Self::Gpayments => true,
}
}
Expand Down
3 changes: 3 additions & 0 deletions crates/connector_configs/src/connector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ pub struct ConnectorTomlConfig {
#[serde_with::skip_serializing_none]
#[derive(Debug, Deserialize, serde::Serialize, Clone)]
pub struct ConnectorConfig {
pub juspaythreedsserver: Option<ConnectorTomlConfig>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you put it in the ascending order of the names? Also, is this a single word or is it? juspay_threeds_server?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ascending order fix i will take this while completing the integration with transformers and types

pub aci: Option<ConnectorTomlConfig>,
pub adyen: Option<ConnectorTomlConfig>,
#[cfg(feature = "payouts")]
Expand Down Expand Up @@ -304,6 +305,7 @@ impl ConnectorConfig {
AuthenticationConnectors::UnifiedAuthenticationService => {
Ok(connector_data.unified_authentication_service)
}
AuthenticationConnectors::Juspaythreedsserver => Ok(connector_data.juspaythreedsserver),
}
}

Expand Down Expand Up @@ -371,6 +373,7 @@ impl ConnectorConfig {
Connector::Helcim => Ok(connector_data.helcim),
Connector::Inespay => Ok(connector_data.inespay),
Connector::Jpmorgan => Ok(connector_data.jpmorgan),
Connector::Juspaythreedsserver => Ok(connector_data.juspaythreedsserver),
Connector::Klarna => Ok(connector_data.klarna),
Connector::Mifinity => Ok(connector_data.mifinity),
Connector::Mollie => Ok(connector_data.mollie),
Expand Down
53 changes: 52 additions & 1 deletion crates/connector_configs/toml/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4617,4 +4617,55 @@ webhook_verification_token="Source verification key"
api_key="API Key"
key1="API Token"
[inespay.connector_webhook_details]
merchant_secret="API Key"
merchant_secret="API Key"

[juspaythreedsserver]
[juspaythreedsserver.metadata.mcc]
name="mcc"
label="MCC"
placeholder="Enter MCC"
required=false
type="Text"

[juspaythreedsserver.metadata.merchant_country_code]
name="merchant_country_code"
label="3 digit numeric country code"
placeholder="Enter 3 digit numeric country code"
required=false
type="Text"
[juspaythreedsserver.metadata.merchant_name]
name="merchant_name"
label="Name of the merchant"
placeholder="Enter Name of the merchant"
required=false
type="Text"
[juspaythreedsserver.metadata.three_ds_requestor_name]
name="three_ds_requestor_name"
label="ThreeDS requestor name"
placeholder="Enter ThreeDS requestor name"
required=false
type="Text"
[juspaythreedsserver.metadata.three_ds_requestor_id]
name="three_ds_requestor_id"
label="ThreeDS request id"
placeholder="Enter ThreeDS request id"
required=false
type="Text"
[juspaythreedsserver.metadata.acquirer_bin]
name="acquirer_bin"
label="Acquirer Bin"
placeholder="Enter Acquirer Bin"
required=true
type="Text"
[juspaythreedsserver.metadata.acquirer_country_code]
name="acquirer_country_code"
label="Acquirer Country Code"
placeholder="Enter Acquirer Country Code"
required=true
type="Text"
[juspaythreedsserver.metadata.acquirer_merchant_id]
name="acquirer_merchant_id"
label="Acquirer Merchant Id"
placeholder="Enter Acquirer Merchant Id"
required=true
type="Text"
53 changes: 52 additions & 1 deletion crates/connector_configs/toml/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4558,4 +4558,55 @@ webhook_verification_token="Source verification key"
api_key="API Key"
key1="API Token"
[inespay.connector_webhook_details]
merchant_secret="API Key"
merchant_secret="API Key"

[juspaythreedsserver]
[juspaythreedsserver.metadata.mcc]
name="mcc"
label="MCC"
placeholder="Enter MCC"
required=false
type="Text"

[juspaythreedsserver.metadata.merchant_country_code]
name="merchant_country_code"
label="3 digit numeric country code"
placeholder="Enter 3 digit numeric country code"
required=false
type="Text"
[juspaythreedsserver.metadata.merchant_name]
name="merchant_name"
label="Name of the merchant"
placeholder="Enter Name of the merchant"
required=false
type="Text"
[juspaythreedsserver.metadata.three_ds_requestor_name]
name="three_ds_requestor_name"
label="ThreeDS requestor name"
placeholder="Enter ThreeDS requestor name"
required=false
type="Text"
[juspaythreedsserver.metadata.three_ds_requestor_id]
name="three_ds_requestor_id"
label="ThreeDS request id"
placeholder="Enter ThreeDS request id"
required=false
type="Text"
[juspaythreedsserver.metadata.acquirer_bin]
name="acquirer_bin"
label="Acquirer Bin"
placeholder="Enter Acquirer Bin"
required=true
type="Text"
[juspaythreedsserver.metadata.acquirer_country_code]
name="acquirer_country_code"
label="Acquirer Country Code"
placeholder="Enter Acquirer Country Code"
required=true
type="Text"
[juspaythreedsserver.metadata.acquirer_merchant_id]
name="acquirer_merchant_id"
label="Acquirer Merchant Id"
placeholder="Enter Acquirer Merchant Id"
required=true
type="Text"
21 changes: 11 additions & 10 deletions crates/hyperswitch_connectors/src/connectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ pub mod iatapay;
pub mod inespay;
pub mod itaubank;
pub mod jpmorgan;
pub mod juspaythreedsserver;
pub mod klarna;
pub mod mifinity;
pub mod mollie;
Expand Down Expand Up @@ -88,14 +89,14 @@ pub use self::{
elavon::Elavon, fiserv::Fiserv, fiservemea::Fiservemea, fiuu::Fiuu, forte::Forte,
getnet::Getnet, globalpay::Globalpay, globepay::Globepay, gocardless::Gocardless,
helcim::Helcim, iatapay::Iatapay, inespay::Inespay, itaubank::Itaubank, jpmorgan::Jpmorgan,
klarna::Klarna, mifinity::Mifinity, mollie::Mollie, moneris::Moneris,
multisafepay::Multisafepay, nexinets::Nexinets, nexixpay::Nexixpay, nomupay::Nomupay,
noon::Noon, novalnet::Novalnet, nuvei::Nuvei, opayo::Opayo, opennode::Opennode, paybox::Paybox,
payeezy::Payeezy, payme::Payme, paystack::Paystack, payu::Payu, placetopay::Placetopay,
powertranz::Powertranz, prophetpay::Prophetpay, rapyd::Rapyd, razorpay::Razorpay,
recurly::Recurly, redsys::Redsys, shift4::Shift4, square::Square, stax::Stax,
stripebilling::Stripebilling, taxjar::Taxjar, thunes::Thunes, trustpay::Trustpay, tsys::Tsys,
unified_authentication_service::UnifiedAuthenticationService, volt::Volt,
wellsfargo::Wellsfargo, worldline::Worldline, worldpay::Worldpay, xendit::Xendit, zen::Zen,
zsl::Zsl,
juspaythreedsserver::Juspaythreedsserver, klarna::Klarna, mifinity::Mifinity, mollie::Mollie,
moneris::Moneris, multisafepay::Multisafepay, nexinets::Nexinets, nexixpay::Nexixpay,
nomupay::Nomupay, noon::Noon, novalnet::Novalnet, nuvei::Nuvei, opayo::Opayo,
opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payme::Payme, paystack::Paystack,
payu::Payu, placetopay::Placetopay, powertranz::Powertranz, prophetpay::Prophetpay,
rapyd::Rapyd, razorpay::Razorpay, recurly::Recurly, redsys::Redsys, shift4::Shift4,
square::Square, stax::Stax, stripebilling::Stripebilling, taxjar::Taxjar, thunes::Thunes,
trustpay::Trustpay, tsys::Tsys, unified_authentication_service::UnifiedAuthenticationService,
volt::Volt, wellsfargo::Wellsfargo, worldline::Worldline, worldpay::Worldpay, xendit::Xendit,
zen::Zen, zsl::Zsl,
};
Loading
Loading