feat(connector): [paysafe] introduce applepay encrypt and predecrypt flow (#9358)

This commit is contained in:
Pa1NarK
2025-09-24 20:03:00 +05:30
committed by GitHub
parent a751837378
commit 2e0da5c032
16 changed files with 769 additions and 97 deletions

View File

@ -6568,6 +6568,12 @@ where
router_data.preprocessing_steps(state, connector).await?,
false,
)
} else if connector.connector_name == router_types::Connector::Paysafe {
router_data = router_data.preprocessing_steps(state, connector).await?;
let is_error_in_response = router_data.response.is_err();
// If is_error_in_response is true, should_continue_payment should be false, we should throw the error
(router_data, !is_error_in_response)
} else {
(router_data, should_continue_payment)
}