Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(router): made payment account reference optional for visa click to pay (#11224)

Sahkal Poddarac60bb8aa0e6
diff --git a/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs b/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
index 42ebcfbbef..f02531330a 100644
--- a/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs
@@ -427,7 +427,7 @@ pub struct AuthenticationDetails {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct UasTokenDetails {
pub payment_token: cards::NetworkToken,
- pub payment_account_reference: String,
+ pub payment_account_reference: Option<String>,
pub token_expiration_month: Secret<String>,
pub token_expiration_year: Secret<String>,
}
diff --git a/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs b/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
index 91ef8a55d6..e1ba076af0 100644
--- a/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
+++ b/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs
@@ -174,7 +174,7 @@ pub struct RawCardDetails {
#[derive(serde::Serialize, serde::Deserialize, Debug, Clone)]
pub struct TokenDetails {
pub payment_token: cards::NetworkToken,
- pub payment_account_reference: String,
+ pub payment_account_reference: Option<String>,
pub token_expiration_month: Secret<String>,
pub token_expiration_year: Secret<String>,
}