mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(connector): [paysafe] introduce applepay encrypt and predecrypt flow (#9358)
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user