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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera (#7623)
Debarati Ghatakb19b195fbe3c
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rsindex 47ccfa6ac0..d0d258aaf3 100644--- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs@@ -1292,7 +1292,7 @@ impl(Some(Secret::new(authn_data.cavv.clone())),None,- Some("1".to_string()),+ Some("2".to_string()),)} else {(None, Some(authn_data.cavv.clone()), None)@@ -1375,14 +1375,18 @@ impl.authentication_data.as_ref().map(|authn_data| {- let (ucaf_authentication_data, cavv) =+ let (ucaf_authentication_data, cavv, ucaf_collection_indicator) =if ccard.card_network == Some(common_enums::CardNetwork::Mastercard) {- (Some(Secret::new(authn_data.cavv.clone())), None)+ (+ Some(Secret::new(authn_data.cavv.clone())),+ None,+ Some("2".to_string()),+ )} else {- (None, Some(authn_data.cavv.clone()))+ (None, Some(authn_data.cavv.clone()), None)};CybersourceConsumerAuthInformation {- ucaf_collection_indicator: None,+ ucaf_collection_indicator,cavv,ucaf_authentication_data,xid: None,@@ -1457,14 +1461,18 @@ impl.authentication_data.as_ref().map(|authn_data| {- let (ucaf_authentication_data, cavv) =+ let (ucaf_authentication_data, cavv, ucaf_collection_indicator) =if token_data.card_network == Some(common_enums::CardNetwork::Mastercard) {- (Some(Secret::new(authn_data.cavv.clone())), None)+ (+ Some(Secret::new(authn_data.cavv.clone())),+ None,+ Some("2".to_string()),+ )} else {- (None, Some(authn_data.cavv.clone()))+ (None, Some(authn_data.cavv.clone()), None)};CybersourceConsumerAuthInformation {- ucaf_collection_indicator: None,+ ucaf_collection_indicator,cavv,ucaf_authentication_data,xid: None,