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
fix(connectors): [paypal] mask webhook body in verify webhook request (#11137)
AkshayaFoigercc846641ef3b
diff --git a/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs b/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rsindex 119c55f99b..f754383809 100644--- a/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs@@ -3606,7 +3606,7 @@ pub struct PaypalSourceVerificationRequest {pub transmission_sig: String,pub auth_algo: String,pub webhook_id: String,- pub webhook_event: serde_json::Value,+ pub webhook_event: Secret<serde_json::Value>,}#[derive(Deserialize, Serialize, Debug)]@@ -3879,7 +3879,7 @@ impl TryFrom<&VerifyWebhookSourceRequestData> for PaypalSourceVerificationRequeswebhook_id: String::from_utf8(req.merchant_secret.secret.to_vec()).change_context(errors::ConnectorError::WebhookVerificationSecretNotFound).attach_printable("Could not convert secret to UTF-8")?,- webhook_event: req_body,+ webhook_event: Secret::new(req_body),})}}