mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat: Add bank redirect mapping to adyen and stripe (#680)
Co-authored-by: Sangamesh <sangamesh.kulkarni@juspay.in>
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user