mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(frm): Add support to accept and decline payment when manually reviewed by merchant for risky transaction (#2071)
This commit is contained in:
@ -9,9 +9,8 @@ pub mod types;
|
||||
|
||||
use std::{fmt::Debug, marker::PhantomData, ops::Deref, time::Instant};
|
||||
|
||||
use api_models::payments::FrmMessage;
|
||||
use common_utils::{ext_traits::AsyncExt, pii};
|
||||
use diesel_models::ephemeral_key;
|
||||
use diesel_models::{ephemeral_key, fraud_check::FraudCheck};
|
||||
use error_stack::{IntoReport, ResultExt};
|
||||
use futures::future::join_all;
|
||||
use masking::Secret;
|
||||
@ -19,8 +18,9 @@ use router_env::{instrument, tracing};
|
||||
use time;
|
||||
|
||||
pub use self::operations::{
|
||||
PaymentCancel, PaymentCapture, PaymentConfirm, PaymentCreate, PaymentMethodValidate,
|
||||
PaymentResponse, PaymentSession, PaymentStatus, PaymentUpdate,
|
||||
PaymentApprove, PaymentCancel, PaymentCapture, PaymentConfirm, PaymentCreate,
|
||||
PaymentMethodValidate, PaymentReject, PaymentResponse, PaymentSession, PaymentStatus,
|
||||
PaymentUpdate,
|
||||
};
|
||||
use self::{
|
||||
flows::{ConstructFlowSpecificData, Feature},
|
||||
@ -1146,7 +1146,7 @@ where
|
||||
pub recurring_mandate_payment_data: Option<RecurringMandatePaymentData>,
|
||||
pub ephemeral_key: Option<ephemeral_key::EphemeralKey>,
|
||||
pub redirect_response: Option<api_models::payments::RedirectResponse>,
|
||||
pub frm_message: Option<FrmMessage>,
|
||||
pub frm_message: Option<FraudCheck>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Default, Clone)]
|
||||
@ -1239,6 +1239,7 @@ pub fn should_call_connector<Op: Debug, F: Clone>(
|
||||
)
|
||||
}
|
||||
"CompleteAuthorize" => true,
|
||||
"PaymentApprove" => true,
|
||||
"PaymentSession" => true,
|
||||
_ => false,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user