mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(core): Add visa click to pay support (#7562)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1162,7 +1162,17 @@ pub struct CtpServiceDetails {
|
||||
/// session transaction flow id
|
||||
pub x_src_flow_id: Option<String>,
|
||||
/// provider Eg: Visa, Mastercard
|
||||
pub provider: Option<String>,
|
||||
#[schema(value_type = CtpServiceProvider)]
|
||||
pub provider: api_enums::CtpServiceProvider,
|
||||
/// Encrypted payload
|
||||
#[schema(value_type = Option<String>)]
|
||||
pub encypted_payload: Option<Secret<String>>,
|
||||
}
|
||||
|
||||
impl CtpServiceDetails {
|
||||
pub fn is_network_confirmation_call_required(&self) -> bool {
|
||||
self.provider == api_enums::CtpServiceProvider::Mastercard
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
|
||||
Reference in New Issue
Block a user