File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
crates/router/src/connector/nexinets Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ pub struct NexinetsPaymentsRequest {
27
27
payment : Option < NexinetsPaymentDetails > ,
28
28
#[ serde( rename = "async" ) ]
29
29
nexinets_async : NexinetsAsyncDetails ,
30
+ merchant_order_id : Option < String > ,
30
31
}
31
32
32
33
#[ derive( Debug , Serialize , Default ) ]
@@ -172,13 +173,19 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for NexinetsPaymentsRequest {
172
173
failure_url : return_url,
173
174
} ;
174
175
let ( payment, product) = get_payment_details_and_product ( item) ?;
176
+ let merchant_order_id = match item. payment_method {
177
+ // Merchant order id is sent only in case of card payment
178
+ enums:: PaymentMethod :: Card => Some ( item. connector_request_reference_id . clone ( ) ) ,
179
+ _ => None ,
180
+ } ;
175
181
Ok ( Self {
176
182
initial_amount : item. request . amount ,
177
183
currency : item. request . currency ,
178
184
channel : NexinetsChannel :: Ecom ,
179
185
product,
180
186
payment,
181
187
nexinets_async,
188
+ merchant_order_id,
182
189
} )
183
190
}
184
191
}
You can’t perform that action at this time.
0 commit comments