mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(core): add referer field to browser_info (#9474)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e0fa7e9b6c
commit
46d483d87c
@ -76,6 +76,9 @@ impl ForeignTryFrom<&RouterData<PSync, PaymentsSyncData, PaymentsResponseData>>
|
||||
Ok(Self {
|
||||
transaction_id: connector_transaction_id.or(encoded_data),
|
||||
request_ref_id: connector_ref_id,
|
||||
access_token: None,
|
||||
capture_method: None,
|
||||
handle_response: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -507,6 +510,7 @@ impl ForeignTryFrom<&RouterData<Authorize, PaymentsAuthorizeData, PaymentsRespon
|
||||
browser_info,
|
||||
test_mode: None,
|
||||
payment_method_type: None,
|
||||
access_token: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -1040,6 +1044,7 @@ impl ForeignTryFrom<hyperswitch_domain_models::router_request_types::BrowserInfo
|
||||
device_model: browser_info.device_model,
|
||||
accept_language: browser_info.accept_language,
|
||||
time_zone_offset_minutes: browser_info.time_zone,
|
||||
referer: browser_info.referer,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -1305,6 +1310,7 @@ pub fn build_webhook_transform_request(
|
||||
}),
|
||||
request_details: Some(request_details_grpc),
|
||||
webhook_secrets,
|
||||
access_token: None,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@ -36,6 +36,7 @@ pub fn populate_browser_info(
|
||||
os_version: None,
|
||||
device_model: None,
|
||||
accept_language: None,
|
||||
referer: None,
|
||||
});
|
||||
|
||||
let ip_address = req
|
||||
|
||||
@ -164,6 +164,9 @@ where
|
||||
Some(unified_connector_service_client::payments::webhook_response_content::Content::DisputesResponse(_)) => {
|
||||
Err(errors::ConnectorError::ProcessingStepFailed(Some("UCS webhook contains dispute response but payment processing was expected".to_string().into())).into())
|
||||
},
|
||||
Some(unified_connector_service_client::payments::webhook_response_content::Content::IncompleteTransformation(_)) => {
|
||||
Err(errors::ConnectorError::ProcessingStepFailed(Some("UCS webhook contains incomplete transformation but payment processing was expected".to_string().into())).into())
|
||||
},
|
||||
None => {
|
||||
Err(errors::ConnectorError::ResponseDeserializationFailed)
|
||||
.attach_printable("UCS webhook content missing payments_response")
|
||||
|
||||
Reference in New Issue
Block a user