mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(core): Add visa click to pay support (#7562)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -217,6 +217,7 @@ pub enum Connector {
|
||||
Coingate,
|
||||
Cryptopay,
|
||||
CtpMastercard,
|
||||
CtpVisa,
|
||||
Cybersource,
|
||||
Datatrans,
|
||||
Deutschebank,
|
||||
@ -451,6 +452,7 @@ impl Connector {
|
||||
| Self::Threedsecureio
|
||||
| Self::Netcetera
|
||||
| Self::CtpMastercard
|
||||
| Self::CtpVisa
|
||||
| Self::Noon
|
||||
| Self::Stripe
|
||||
| Self::Datatrans => false,
|
||||
@ -707,7 +709,8 @@ impl TryFrom<Connector> for RoutableConnectors {
|
||||
| Connector::Juspaythreedsserver
|
||||
| Connector::Netcetera
|
||||
| Connector::Taxjar
|
||||
| Connector::Threedsecureio => Err("Invalid conversion. Not a routable connector"),
|
||||
| Connector::Threedsecureio
|
||||
| Connector::CtpVisa => Err("Invalid conversion. Not a routable connector"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -1933,6 +1933,26 @@ pub enum ScaExemptionType {
|
||||
TransactionRiskAnalysis,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
Debug,
|
||||
Eq,
|
||||
PartialEq,
|
||||
serde::Deserialize,
|
||||
serde::Serialize,
|
||||
strum::Display,
|
||||
strum::EnumString,
|
||||
ToSchema,
|
||||
)]
|
||||
#[router_derive::diesel_enum(storage_type = "text")]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum CtpServiceProvider {
|
||||
Visa,
|
||||
Mastercard,
|
||||
}
|
||||
|
||||
#[derive(
|
||||
Clone,
|
||||
Copy,
|
||||
@ -6685,6 +6705,7 @@ pub enum AuthenticationConnectors {
|
||||
CtpMastercard,
|
||||
UnifiedAuthenticationService,
|
||||
Juspaythreedsserver,
|
||||
CtpVisa,
|
||||
}
|
||||
|
||||
impl AuthenticationConnectors {
|
||||
@ -6694,7 +6715,8 @@ impl AuthenticationConnectors {
|
||||
| Self::Netcetera
|
||||
| Self::CtpMastercard
|
||||
| Self::UnifiedAuthenticationService
|
||||
| Self::Juspaythreedsserver => false,
|
||||
| Self::Juspaythreedsserver
|
||||
| Self::CtpVisa => false,
|
||||
Self::Gpayments => true,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user