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): fixed netcetera flow for backward flow cavv fetching (#8035)

Sahkal Poddarfc914203dbc3
diff --git a/crates/router/src/core/authentication.rs b/crates/router/src/core/authentication.rs
index 3736475660..d9af28c17e 100644
--- a/crates/router/src/core/authentication.rs
+++ b/crates/router/src/core/authentication.rs
@@ -151,11 +151,14 @@ pub async fn perform_post_authentication(
false,
key_store.key.get_inner(),
)
- .await?;
+ .await
+ .inspect_err(|err| router_env::logger::error!(tokenized_data_result=?err))
+ .attach_printable("cavv not present after authentication flow")
+ .ok();
let authentication_store =
hyperswitch_domain_models::router_request_types::authentication::AuthenticationStore {
- cavv: Some(tokenized_data.value1),
+ cavv: tokenized_data.map(|data| data.value1),
authentication: authentication_update,
};