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(connectors): [Checkout] PII data masking (#3775)
AkshayaFoiger6076eb01ca80
diff --git a/crates/router/src/connector/checkout/transformers.rs b/crates/router/src/connector/checkout/transformers.rsindex 2a20999085..7d2d4f7f72 100644--- a/crates/router/src/connector/checkout/transformers.rs+++ b/crates/router/src/connector/checkout/transformers.rs@@ -188,7 +188,7 @@ pub struct CardSource {pub struct WalletSource {#[serde(rename = "type")]pub source_type: CheckoutSourceTypes,- pub token: String,+ pub token: Secret<String>,}#[derive(Debug, Serialize)]@@ -301,7 +301,7 @@ impl TryFrom<&CheckoutRouterData<&types::PaymentsAuthorizeRouterData>> for PaymeOk(PaymentSource::Wallets(WalletSource {source_type: CheckoutSourceTypes::Token,token: match item.router_data.get_payment_method_token()? {- types::PaymentMethodToken::Token(token) => token,+ types::PaymentMethodToken::Token(token) => token.into(),types::PaymentMethodToken::ApplePayDecrypt(_) => {Err(errors::ConnectorError::InvalidWalletToken)?}@@ -314,7 +314,7 @@ impl TryFrom<&CheckoutRouterData<&types::PaymentsAuthorizeRouterData>> for Paymetypes::PaymentMethodToken::Token(apple_pay_payment_token) => {Ok(PaymentSource::Wallets(WalletSource {source_type: CheckoutSourceTypes::Token,- token: apple_pay_payment_token,+ token: apple_pay_payment_token.into(),}))}types::PaymentMethodToken::ApplePayDecrypt(decrypt_data) => {