-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(router): add accept-language from request headers into browser-info #7074
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Changed Files
|
srujanchikke
previously approved these changes
Jan 20, 2025
Narayanbhat166
previously approved these changes
Jan 21, 2025
@@ -1022,6 +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, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -52,6 +52,7 @@ fn get_default_browser_info() -> BrowserInformation { | |||
os_type: None, | |||
os_version: None, | |||
device_model: None, | |||
accept_language: None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Since we are considering "en" as the default language. You can add the same here.
0582ec6
srujanchikke
previously approved these changes
Jan 21, 2025
ShankarSinghC
previously approved these changes
Jan 21, 2025
b5dae84
srujanchikke
approved these changes
Jan 23, 2025
ShankarSinghC
approved these changes
Jan 23, 2025
pixincreate
added a commit
that referenced
this pull request
Jan 30, 2025
…ress * 'main' of github.com:juspay/hyperswitch: chore(version): 2025.01.30.0 Documentation edits made through Mintlify web editor feat(connector): add template code for chargebee (#7036) chore: run clippy with default number of jobs in github workflows (#7088) feat(router): add accept-language from request headers into browser-info (#7074) refactor(euclid): update proto file for elimination routing (#7032) chore(version): 2025.01.29.0 refactor(router): prioritise `connector_mandate_id` over `network_transaction_id` during MITs (#7081) chore: add stripe to network transaction id support (#7096) fix(multitenancy): add a fallback for get commands in redis (#7043) refactor(currency_conversion): re frame the currency_conversion crate to make api calls on background thread (#6906) chore: fix `toml` format to address wasm build failure (#6967)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-connector-integration
Area: Connector integration
C-feature
Category: Feature request or enhancement
M-api-contract-changes
Metadata: This PR involves API contract changes
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Tested Manually
Perform a sanity external authentication payment through Netcetera
CURL
Raw connector Request
![image](https://private-user-images.githubusercontent.com/56996463/404911510-42b5468e-f031-4186-a129-2bd34ae3c651.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDU1MDQsIm5iZiI6MTczOTEwNTIwNCwicGF0aCI6Ii81Njk5NjQ2My80MDQ5MTE1MTAtNDJiNTQ2OGUtZjAzMS00MTg2LWExMjktMmJkMzRhZTNjNjUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyNDY0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWY1ZjdkYWRjNTNkZWY0N2IzMDY4OTkxMmRjODI1NjhlYWVlNTJkYmIyZWNiYzA0OGFmODM1NjIwZTc3NDFmZDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.eR4rD1o6hMxHZlHFiBsQ0UH5xPBVqBi6OdoTKmFBs7w)
Browser Info in Database
![image](https://private-user-images.githubusercontent.com/56996463/404836489-dc35abf4-aaec-4d5a-82d1-a6da5f5dd412.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxMDU1MDQsIm5iZiI6MTczOTEwNTIwNCwicGF0aCI6Ii81Njk5NjQ2My80MDQ4MzY0ODktZGMzNWFiZjQtYWFlYy00ZDVhLTgyZDEtYTZkYTVmNWRkNDEyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA5VDEyNDY0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxODUzYmEzMDBjMjRiNTFmMGZmZWVmMmVjMzMxM2E1ZmNmODg3ZWMwODAwNDY3Y2U2ZjM1Mjk4ZWMxNGE3MDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OMwKYfFrhI6qEdJYdQQLYYnEeH8Ksmv3z5tkDeXw8Tc)
Checklist
cargo +nightly fmt --all
cargo clippy