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): [Coinbase][Cryptopay] Mask PII data (#3936)
AkshayaFoiger8eb31f94f4aa
diff --git a/crates/router/src/connector/coinbase/transformers.rs b/crates/router/src/connector/coinbase/transformers.rsindex 5b3b6f6327..f02984136b 100644--- a/crates/router/src/connector/coinbase/transformers.rs+++ b/crates/router/src/connector/coinbase/transformers.rs@@ -21,7 +21,7 @@ pub struct LocalPrice {#[derive(Debug, Default, Eq, PartialEq, Serialize, Deserialize)]pub struct Metadata {pub customer_id: Option<String>,- pub customer_name: Option<String>,+ pub customer_name: Option<Secret<String>>,}#[derive(Default, Debug, Serialize, Eq, PartialEq)]@@ -335,7 +335,7 @@ pub enum WebhookEventType {pub struct CoinbasePaymentResponseData {pub id: String,pub code: String,- pub name: Option<String>,+ pub name: Option<Secret<String>>,pub utxo: bool,pub pricing: HashMap<String, OverpaymentAbsoluteThreshold>,pub fee_rate: f64,@@ -355,7 +355,7 @@ pub struct CoinbasePaymentResponseData {pub fees_settled: bool,pub pricing_type: String,pub redirect_url: String,- pub support_email: String,+ pub support_email: pii::Email,pub brand_logo_url: String,pub offchain_eligible: bool,pub organization_name: String,diff --git a/crates/router/src/connector/cryptopay/transformers.rs b/crates/router/src/connector/cryptopay/transformers.rsindex d4697e3ba1..635d4a66c2 100644--- a/crates/router/src/connector/cryptopay/transformers.rs+++ b/crates/router/src/connector/cryptopay/transformers.rs@@ -222,7 +222,7 @@ pub struct CryptopayPaymentResponseData {pub customer_id: Option<String>,pub status: CryptopayPaymentStatus,pub status_context: Option<String>,- pub address: Option<String>,+ pub address: Option<Secret<String>>,pub network: Option<String>,pub uri: Option<String>,pub price_amount: Option<String>,