Skip to content

Commit

Permalink
fix(router): [NETCETERA] skip sending browser_information in authenti…
Browse files Browse the repository at this point in the history
…cation request for app device_channel (#4613)
  • Loading branch information
sai-harsha-vardhan authored May 9, 2024
1 parent a0f11d7 commit d2a496c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/router/src/connector/netcetera/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,12 @@ impl TryFrom<&NetceteraRouterData<&types::authentication::ConnectorAuthenticatio
seller_info: None,
results_response_notification_url: Some(request.webhook_url),
};
let browser_information = request.browser_details.map(netcetera_types::Browser::from);
let browser_information = match request.device_channel {
api_models::payments::DeviceChannel::Browser => {
request.browser_details.map(netcetera_types::Browser::from)
}
api_models::payments::DeviceChannel::App => None,
};
let sdk_information = request.sdk_information.map(netcetera_types::Sdk::from);
let device_render_options = match request.device_channel {
api_models::payments::DeviceChannel::App => {
Expand Down

0 comments on commit d2a496c

Please sign in to comment.