mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
refactor(connector): [Worldpayvantiv] refactor void flow and handle transaction status (#8540)
This commit is contained in:
@ -274,6 +274,8 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData
|
||||
event_builder: Option<&mut ConnectorEvent>,
|
||||
res: Response,
|
||||
) -> CustomResult<PaymentsAuthorizeRouterData, errors::ConnectorError> {
|
||||
// For certification purposes, to be removed later
|
||||
router_env::logger::info!(raw_connector_response=?res.response);
|
||||
let response: worldpayvantiv::CnpOnlineResponse =
|
||||
connector_utils::deserialize_xml_to_struct(&res.response)?;
|
||||
event_builder.map(|i| i.set_response_body(&response));
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user