feat: connector tokenization flow (#750)

Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
Sangamesh Kulkarni
2023-04-11 17:24:45 +05:30
committed by GitHub
parent ccf032732e
commit 29da1dfa50
70 changed files with 1441 additions and 230 deletions

View File

@ -54,6 +54,20 @@ pub trait Feature<F, T> {
F: Clone,
Self: Sized,
dyn api::Connector: services::ConnectorIntegration<F, T, types::PaymentsResponseData>;
async fn add_payment_method_token<'a>(
&self,
_state: &AppState,
_connector: &api::ConnectorData,
_tokenization_action: &payments::TokenizationAction,
) -> RouterResult<Option<String>>
where
F: Clone,
Self: Sized,
dyn api::Connector: services::ConnectorIntegration<F, T, types::PaymentsResponseData>,
{
Ok(None)
}
}
macro_rules! default_imp_for_complete_authorize{