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): [Noon] Add reference id in Order Struct (#1371)

SamraatBansalf0cd5ee20d6f
diff --git a/crates/router/src/connector/noon/transformers.rs b/crates/router/src/connector/noon/transformers.rs
index 83ef89bac8..666713d97f 100644
--- a/crates/router/src/connector/noon/transformers.rs
+++ b/crates/router/src/connector/noon/transformers.rs
@@ -37,6 +37,7 @@ pub struct NoonOrder {
currency: Option<storage_models::enums::Currency>,
channel: NoonChannels,
category: Option<String>,
+ reference: String,
//Short description of the order.
name: String,
}
@@ -142,6 +143,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NoonPaymentsRequest {
currency,
channel: NoonChannels::Web,
category,
+ reference: item.payment_id.clone(),
name,
};
let payment_action = if item.request.is_auto_capture()? {