feat: Apple pay session flow integrate (#138)

This commit is contained in:
Sangamesh Kulkarni
2022-12-14 17:59:27 +05:30
committed by GitHub
parent 1f0d1deb2b
commit 8b8ff8188f
29 changed files with 495 additions and 33 deletions

View File

@ -104,6 +104,20 @@ pub trait ConnectorIntegration<T, Req, Resp>: ConnectorIntegrationExt<T, Req, Re
) -> CustomResult<ErrorResponse, errors::ConnectorError> {
Ok(ErrorResponse::get_not_implemented())
}
fn get_certificate(
&self,
_req: &types::RouterData<T, Req, Resp>,
) -> CustomResult<Option<String>, errors::ConnectorError> {
Ok(None)
}
fn get_certificate_key(
&self,
_req: &types::RouterData<T, Req, Resp>,
) -> CustomResult<Option<String>, errors::ConnectorError> {
Ok(None)
}
}
#[instrument(skip_all)]
@ -196,9 +210,10 @@ async fn send_request(
&state.conf.proxy,
should_bypass_proxy,
crate::consts::REQUEST_TIME_OUT,
request.certificate,
request.certificate_key,
)?;
let headers = request.headers.construct_header_map()?;
match request.method {
Method::Get => client.get(url).add_headers(headers).send().await,
Method::Post => {