feat(router): add card_discovery in payment_attempt (#7039)

Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in>
This commit is contained in:
Sai Harsha Vardhan
2025-02-04 22:43:02 +05:30
committed by GitHub
parent e2ddcc26b8
commit b9aa3ab445
19 changed files with 127 additions and 3 deletions

View File

@ -181,6 +181,31 @@ impl AttemptStatus {
}
}
/// Indicates the method by which a card is discovered during a payment
#[derive(
Clone,
Copy,
Debug,
Default,
Hash,
Eq,
PartialEq,
serde::Deserialize,
serde::Serialize,
strum::Display,
strum::EnumString,
ToSchema,
)]
#[router_derive::diesel_enum(storage_type = "db_enum")]
#[serde(rename_all = "snake_case")]
#[strum(serialize_all = "snake_case")]
pub enum CardDiscovery {
#[default]
Manual,
SavedCard,
ClickToPay,
}
/// Pass this parameter to force 3DS or non 3DS auth for this payment. Some connectors will still force 3DS auth even in case of passing 'no_three_ds' here and vice versa. Default value is 'no_three_ds' if not set
#[derive(
Clone,