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(Core): Send key_id In The Payload To Euler For Network Tokenization (#11910)

Anurag16115b35bc0f
diff --git a/crates/router/src/core/payment_methods/network_tokenization.rs b/crates/router/src/core/payment_methods/network_tokenization.rs
index 22c50ed6d7..1c655d755e 100644
--- a/crates/router/src/core/payment_methods/network_tokenization.rs
+++ b/crates/router/src/core/payment_methods/network_tokenization.rs
@@ -149,6 +149,7 @@ pub async fn mk_tokenization_req(
card_data: Secret::new(jwt),
order_data,
should_send_token: true,
+ key_id: Secret::new(key_id.clone()),
};
let masked_request_body = api_payload
.masked_serialize()
@@ -318,6 +319,7 @@ pub async fn generate_network_token(
card_data: Secret::new(jwt),
order_data,
should_send_token: true,
+ key_id: Secret::new(key_id.clone()),
};
let masked_request_body = api_payload
.masked_serialize()
diff --git a/crates/router/src/types/payment_methods.rs b/crates/router/src/types/payment_methods.rs
index a3d4c0beec..8e30a8a936 100644
--- a/crates/router/src/types/payment_methods.rs
+++ b/crates/router/src/types/payment_methods.rs
@@ -236,6 +236,7 @@ pub struct ApiPayload {
pub card_data: Secret<String>, //encrypted card data
pub order_data: OrderData,
pub should_send_token: bool,
+ pub key_id: Secret<String>,
}
#[derive(Debug, Deserialize, Eq, PartialEq)]