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): [Rapyd] Use connector_response_reference_id (#6302)

Nabeel Hussain M Na845d46899d8
diff --git a/crates/router/src/connector/rapyd/transformers.rs b/crates/router/src/connector/rapyd/transformers.rs
index bcd0693500..63f9287860 100644
--- a/crates/router/src/connector/rapyd/transformers.rs
+++ b/crates/router/src/connector/rapyd/transformers.rs
@@ -274,6 +274,7 @@ pub struct ResponseData {
pub country_code: Option<String>,
pub captured: Option<bool>,
pub transaction_id: String,
+ pub merchant_reference_id: Option<String>,
pub paid: Option<bool>,
pub failure_code: Option<String>,
pub failure_message: Option<String>,
@@ -478,7 +479,9 @@ impl<F, T>
mandate_reference: Box::new(None),
connector_metadata: None,
network_txn_id: None,
- connector_response_reference_id: None,
+ connector_response_reference_id: data
+ .merchant_reference_id
+ .to_owned(),
incremental_authorization_allowed: None,
charge_id: None,
}),