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(router): [OpenNode] response reference id (#2416)

Sarang S3bfea72df34f
diff --git a/crates/router/src/connector/opennode/transformers.rs b/crates/router/src/connector/opennode/transformers.rs
index 70a50e1b92..aa3fae3a51 100644
--- a/crates/router/src/connector/opennode/transformers.rs
+++ b/crates/router/src/connector/opennode/transformers.rs
@@ -78,6 +78,7 @@ pub struct OpennodePaymentsResponseData {
id: String,
hosted_checkout_url: String,
status: OpennodePaymentStatus,
+ order_id: Option<String>,
}
//TODO: Fill the struct with respective fields
@@ -114,7 +115,7 @@ impl<F, T>
mandate_reference: None,
connector_metadata: None,
network_txn_id: None,
- connector_response_reference_id: None,
+ connector_response_reference_id: item.response.data.order_id,
})
} else {
Ok(types::PaymentsResponseData::TransactionUnresolvedResponse {
@@ -125,7 +126,7 @@ impl<F, T>
"Please check the transaction in opennode dashboard and resolve manually"
.to_string(),
}),
- connector_response_reference_id: None,
+ connector_response_reference_id: item.response.data.order_id,
})
};
Ok(Self {