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

feat(connector): [Worldpay] Use connector_request_reference_id as reference to the connector (#2553)

Ayan Joshi9ea5830befe3
diff --git a/crates/router/src/connector/worldpay/transformers.rs b/crates/router/src/connector/worldpay/transformers.rs
index aabe27fc4e..61d04a8e9f 100644
--- a/crates/router/src/connector/worldpay/transformers.rs
+++ b/crates/router/src/connector/worldpay/transformers.rs
@@ -167,10 +167,14 @@ impl
debt_repayment: None,
},
merchant: Merchant {
- entity: item.router_data.attempt_id.clone().replace('_', "-"),
+ entity: item
+ .router_data
+ .connector_request_reference_id
+ .clone()
+ .replace('_', "-"),
..Default::default()
},
- transaction_reference: item.router_data.attempt_id.clone(),
+ transaction_reference: item.router_data.connector_request_reference_id.clone(),
channel: None,
customer: None,
})