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): [Adyen] Use connector_request_reference_id as reference to Payments (#3547)

Swangi Kumaric2eecce1e803
diff --git a/crates/router/src/connector/adyen/transformers.rs b/crates/router/src/connector/adyen/transformers.rs
index b141634d46..c228bfffe6 100644
--- a/crates/router/src/connector/adyen/transformers.rs
+++ b/crates/router/src/connector/adyen/transformers.rs
@@ -2541,7 +2541,7 @@ impl<'a>
amount,
merchant_account: auth_type.merchant_account,
payment_method,
- reference: item.router_data.payment_id.to_string(),
+ reference: item.router_data.connector_request_reference_id.to_string(),
return_url,
browser_info,
shopper_interaction,
@@ -2588,7 +2588,7 @@ impl<'a>
amount,
merchant_account: auth_type.merchant_account,
payment_method,
- reference: item.router_data.payment_id.to_string(),
+ reference: item.router_data.connector_request_reference_id.to_string(),
return_url,
browser_info: None,
shopper_interaction,
@@ -2635,7 +2635,7 @@ impl<'a>
amount,
merchant_account: auth_type.merchant_account,
payment_method,
- reference: item.router_data.payment_id.to_string(),
+ reference: item.router_data.connector_request_reference_id.to_string(),
return_url,
browser_info: None,
shopper_interaction,
@@ -2894,7 +2894,7 @@ impl<'a>
amount,
merchant_account: auth_type.merchant_account,
payment_method,
- reference: item.router_data.payment_id.to_string(),
+ reference: item.router_data.connector_request_reference_id.to_string(),
return_url,
shopper_interaction,
recurring_processing_model: None,