mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat(router): add card_discovery in payment_attempt (#7039)
Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in>
This commit is contained in:
committed by
GitHub
parent
e2ddcc26b8
commit
b9aa3ab445
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user