feat(payments): add client_secret auth for payments retrieve (#1663)

This commit is contained in:
Abhishek Marrivagu
2023-07-10 13:21:10 +05:30
committed by GitHub
parent be5d55c98f
commit b428298030
9 changed files with 52 additions and 14 deletions

View File

@ -372,6 +372,12 @@ impl ClientSecretFetch for api_models::cards_info::CardsInfoRequest {
}
}
impl ClientSecretFetch for api_models::payments::PaymentsRetrieveRequest {
fn get_client_secret(&self) -> Option<&String> {
self.client_secret.as_ref()
}
}
pub fn get_auth_type_and_flow<A: AppStateInfo + Sync>(
headers: &HeaderMap,
) -> RouterResult<(