mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
refactor(auth_type): updated auth type in update tracker and also changed the default flow to non-3ds from 3ds (#1424)
This commit is contained in:
@ -61,9 +61,9 @@ pub enum AttemptStatus {
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum AuthenticationType {
|
||||
/// If the card is enrolled for 3DS authentication, the 3DS based authentication will be activated. The liability of chargeback shift to the issuer
|
||||
#[default]
|
||||
ThreeDs,
|
||||
/// 3DS based authentication will not be activated. The liability of chargeback stays with the merchant.
|
||||
#[default]
|
||||
NoThreeDs,
|
||||
}
|
||||
|
||||
|
||||
@ -376,7 +376,7 @@ impl<F: Clone> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for Paymen
|
||||
.attach_printable("Failed to encode additional pm data")?;
|
||||
|
||||
let business_sub_label = payment_data.payment_attempt.business_sub_label.clone();
|
||||
|
||||
let authentication_type = payment_data.payment_attempt.authentication_type;
|
||||
payment_data.payment_attempt = db
|
||||
.update_payment_attempt_with_attempt_id(
|
||||
payment_data.payment_attempt,
|
||||
@ -385,7 +385,7 @@ impl<F: Clone> UpdateTracker<F, PaymentData<F>, api::PaymentsRequest> for Paymen
|
||||
currency: payment_data.currency,
|
||||
status: attempt_status,
|
||||
payment_method,
|
||||
authentication_type: None,
|
||||
authentication_type,
|
||||
browser_info,
|
||||
connector,
|
||||
payment_token,
|
||||
|
||||
@ -80,8 +80,8 @@ pub enum AttemptStatus {
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[strum(serialize_all = "snake_case")]
|
||||
pub enum AuthenticationType {
|
||||
#[default]
|
||||
ThreeDs,
|
||||
#[default]
|
||||
NoThreeDs,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user