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

fix(connector): [WorldpayWPG] Updated connector_request_reference_id generation to its default logic (#10961)

Vani Gupta0f80acfb545f
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
index 1f4808cafa..f0c195b88b 100644
--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml.rs
@@ -1356,22 +1356,4 @@ impl ConnectorSpecifications for Worldpayxml {
fn get_supported_webhook_flows(&self) -> Option<&'static [common_enums::EventClass]> {
Some(WORLDPAYXML_SUPPORTED_WEBHOOK_FLOWS)
}
-
- #[cfg(feature = "v1")]
- fn generate_connector_request_reference_id(
- &self,
- payment_intent: &hyperswitch_domain_models::payments::PaymentIntent,
- payment_attempt: &hyperswitch_domain_models::payments::payment_attempt::PaymentAttempt,
- is_config_enabled_to_send_payment_id_as_connector_request_id: bool,
- ) -> String {
- if is_config_enabled_to_send_payment_id_as_connector_request_id
- && payment_intent.is_payment_id_from_merchant.unwrap_or(false)
- {
- payment_attempt.payment_id.get_string_repr().to_owned()
- } else {
- let max_payment_reference_id_length =
- worldpayxml::worldpayxml_constants::MAX_PAYMENT_REFERENCE_ID_LENGTH;
- nanoid::nanoid!(max_payment_reference_id_length)
- }
- }
}