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

refactor(connector): [Gocardless] Mask PII data (#3844)

AkshayaFoiger2f3ec7f95196
diff --git a/crates/router/src/connector/gocardless/transformers.rs b/crates/router/src/connector/gocardless/transformers.rs
index d3703bc6bf..21fc44fe84 100644
--- a/crates/router/src/connector/gocardless/transformers.rs
+++ b/crates/router/src/connector/gocardless/transformers.rs
@@ -547,7 +547,7 @@ pub struct GocardlessMandateResponse {
#[derive(Debug, Clone, Deserialize, Serialize)]
pub struct MandateResponse {
- id: String,
+ id: Secret<String>,
}
impl<F>
@@ -570,7 +570,7 @@ impl<F>
>,
) -> Result<Self, Self::Error> {
let mandate_reference = Some(MandateReference {
- connector_mandate_id: Some(item.response.mandates.id.clone()),
+ connector_mandate_id: Some(item.response.mandates.id.clone().expose()),
payment_method_id: None,
});
Ok(Self {