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
refactor(connector): [Nexinets] Mask PII data (#3874)
AkshayaFoiger9ea531068d87
diff --git a/crates/router/src/connector/nexinets/transformers.rs b/crates/router/src/connector/nexinets/transformers.rsindex 07488271ae..9fdaaa36b3 100644--- a/crates/router/src/connector/nexinets/transformers.rs+++ b/crates/router/src/connector/nexinets/transformers.rs@@ -3,7 +3,7 @@ use base64::Engine;use cards::CardNumber;use common_utils::errors::CustomResult;use error_stack::{IntoReport, ResultExt};-use masking::{PeekInterface, Secret};+use masking::{ExposeInterface, PeekInterface, Secret};use serde::{Deserialize, Serialize};use url::Url;@@ -86,7 +86,7 @@ pub struct CardDetails {#[derive(Debug, Serialize, Deserialize)]#[serde(rename_all = "camelCase")]pub struct PaymentInstrument {- payment_instrument_id: Option<String>,+ payment_instrument_id: Option<Secret<String>>,}#[derive(Debug, Serialize)]@@ -357,7 +357,7 @@ impl<F, T>.payment_instrument.payment_instrument_id.map(|id| types::MandateReference {- connector_mandate_id: Some(id),+ connector_mandate_id: Some(id.expose()),payment_method_id: None,});Ok(Self {@@ -641,7 +641,7 @@ fn get_card_data(true => {let card_data = match item.request.off_session {Some(true) => CardDataDetails::PaymentInstrument(Box::new(PaymentInstrument {- payment_instrument_id: item.request.connector_mandate_id(),+ payment_instrument_id: item.request.connector_mandate_id().map(Secret::new),})),_ => CardDataDetails::CardDetails(Box::new(get_card_details(card)?)),};