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
feat(nexinets): Use connector_request_reference_id as reference to the connector - Work In Progress (#2515)
frazar088dce076d8d
diff --git a/crates/router/src/connector/nexinets/transformers.rs b/crates/router/src/connector/nexinets/transformers.rsindex 7b2a41cfb0..897d8f639d 100644--- a/crates/router/src/connector/nexinets/transformers.rs+++ b/crates/router/src/connector/nexinets/transformers.rs@@ -27,6 +27,7 @@ pub struct NexinetsPaymentsRequest {payment: Option<NexinetsPaymentDetails>,#[serde(rename = "async")]nexinets_async: NexinetsAsyncDetails,+ merchant_order_id: Option<String>,}#[derive(Debug, Serialize, Default)]@@ -172,6 +173,11 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NexinetsPaymentsRequest {failure_url: return_url,};let (payment, product) = get_payment_details_and_product(item)?;+ let merchant_order_id = match item.payment_method {+ // Merchant order id is sent only in case of card payment+ enums::PaymentMethod::Card => Some(item.connector_request_reference_id.clone()),+ _ => None,+ };Ok(Self {initial_amount: item.request.amount,currency: item.request.currency,@@ -179,6 +185,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NexinetsPaymentsRequest {product,payment,nexinets_async,+ merchant_order_id,})}}