refactor(connector): [Worldpayvantiv] refactor void flow and handle transaction status (#8540)

This commit is contained in:
AkshayaFoiger
2025-07-04 19:13:03 +05:30
committed by GitHub
parent fc3c64fad3
commit 41291e5cde
2 changed files with 1787 additions and 87 deletions

View File

@ -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));