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:
Sahkal Poddar
2025-03-28 13:23:59 +05:30
committed by GitHub
parent bfb6f59a79
commit 9e5e6be730
27 changed files with 168 additions and 92 deletions

View File

@ -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"),
}
}
}

View File

@ -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,
}
}