feat(connector): Add support for complete authorize payment after 3DS redirection (#741)

This commit is contained in:
Jagan
2023-03-15 14:18:17 +05:30
committed by GitHub
parent 4859b6e4f3
commit ec2b1b18fd
71 changed files with 1870 additions and 631 deletions

View File

@ -11,10 +11,7 @@ use self::transformers as adyen;
use crate::{
configs::settings,
consts,
core::{
errors::{self, CustomResult},
payments,
},
core::errors::{self, CustomResult},
db::StorageInterface,
headers, logger, services,
types::{
@ -36,8 +33,7 @@ impl ConnectorCommon for Adyen {
&self,
auth_type: &types::ConnectorAuthType,
) -> CustomResult<Vec<(String, String)>, errors::ConnectorError> {
let auth: adyen::AdyenAuthType = auth_type
.try_into()
let auth = adyen::AdyenAuthType::try_from(auth_type)
.change_context(errors::ConnectorError::FailedToObtainAuthType)?;
Ok(vec![(headers::X_API_KEY.to_string(), auth.api_key)])
}
@ -762,12 +758,3 @@ impl api::IncomingWebhook for Adyen {
))
}
}
impl services::ConnectorRedirectResponse for Adyen {
fn get_flow_type(
&self,
_query_params: &str,
) -> CustomResult<payments::CallConnectorAction, errors::ConnectorError> {
Ok(payments::CallConnectorAction::Trigger)
}
}