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(trustpay): add connector request reference ID generation for v2 (#8925)
Ayush Anand041656ec6642
diff --git a/crates/hyperswitch_connectors/src/connectors/trustpay.rs b/crates/hyperswitch_connectors/src/connectors/trustpay.rsindex d3a6a2cdf7..878c4ed0c1 100644--- a/crates/hyperswitch_connectors/src/connectors/trustpay.rs+++ b/crates/hyperswitch_connectors/src/connectors/trustpay.rs@@ -1364,4 +1364,13 @@ impl ConnectorSpecifications for Trustpay {fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {Some(&TRUSTPAY_SUPPORTED_WEBHOOK_FLOWS)}+ #[cfg(feature = "v2")]+ fn generate_connector_request_reference_id(+ &self,+ _payment_intent: &hyperswitch_domain_models::payments::PaymentIntent,+ _payment_attempt: &hyperswitch_domain_models::payments::payment_attempt::PaymentAttempt,+ ) -> String {+ // The length of receipt for Trustpay order request should not exceed 35 characters.+ uuid::Uuid::now_v7().simple().to_string()+ }}