Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sai-harsha-vardhan committed Jan 21, 2025
1 parent 260a030 commit 0582ec6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/router/src/connector/trustpay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ impl TryFrom<&TrustpayRouterData<&types::PaymentsAuthorizeRouterData>> for Trust
os_type: None,
os_version: None,
device_model: None,
accept_language: None,
accept_language: Some(browser_info.accept_language.unwrap_or("en".to_string())),
};
let params = get_mandatory_fields(item.router_data)?;
let amount = item.amount.to_owned();
Expand Down
2 changes: 1 addition & 1 deletion crates/router/tests/connectors/trustpay.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fn get_default_browser_info() -> BrowserInformation {
os_type: None,
os_version: None,
device_model: None,
accept_language: None,
accept_language: Some("en".to_string()),
}
}

Expand Down
2 changes: 1 addition & 1 deletion crates/router/tests/connectors/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ impl Default for BrowserInfoType {
device_model: Some("Apple IPHONE 7".to_string()),
os_type: Some("IOS or ANDROID".to_string()),
os_version: Some("IOS 14.5".to_string()),
accept_language: None,
accept_language: Some("en".to_string()),
};
Self(data)
}
Expand Down

0 comments on commit 0582ec6

Please sign in to comment.