feat: Add bank redirect mapping to adyen and stripe (#680)

Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in>
This commit is contained in:
Kartikeya Hegde
2023-02-28 13:23:01 +05:30
committed by GitHub
parent 79aa8f3d3d
commit e6f627d931
3 changed files with 313 additions and 29 deletions

View File

@ -363,9 +363,10 @@ impl
req: &types::PaymentsAuthorizeRouterData,
) -> CustomResult<Option<String>, errors::ConnectorError> {
let connector_req = adyen::AdyenPaymentRequest::try_from(req)?;
let adyen_req =
utils::Encode::<adyen::AdyenPaymentRequest>::encode_to_string_of_json(&connector_req)
.change_context(errors::ConnectorError::RequestEncodingFailed)?;
let adyen_req = utils::Encode::<adyen::AdyenPaymentRequest<'_>>::encode_to_string_of_json(
&connector_req,
)
.change_context(errors::ConnectorError::RequestEncodingFailed)?;
Ok(Some(adyen_req))
}