mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(payments): [Payment links] add hide card nickname field config for secure payment links (#6554)
Co-authored-by: Chikke Srujan <chikke.srujan@Chikke-Srujan-N7WRTY72X7.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2692,6 +2692,9 @@ pub struct PaymentLinkConfigRequest {
|
||||
/// Enable saved payment method option for payment link
|
||||
#[schema(default = false, example = true)]
|
||||
pub enabled_saved_payment_method: Option<bool>,
|
||||
/// Hide card nickname field option for payment link
|
||||
#[schema(default = false, example = true)]
|
||||
pub hide_card_nickname_field: Option<bool>,
|
||||
/// Dynamic details related to merchant to be rendered in payment link
|
||||
pub transaction_details: Option<Vec<PaymentLinkTransactionDetails>>,
|
||||
}
|
||||
@ -2735,6 +2738,8 @@ pub struct PaymentLinkConfig {
|
||||
pub display_sdk_only: bool,
|
||||
/// Enable saved payment method option for payment link
|
||||
pub enabled_saved_payment_method: bool,
|
||||
/// Hide card nickname field option for payment link
|
||||
pub hide_card_nickname_field: bool,
|
||||
/// A list of allowed domains (glob patterns) where this link can be embedded / opened from
|
||||
pub allowed_domains: Option<HashSet<String>>,
|
||||
/// Dynamic details related to merchant to be rendered in payment link
|
||||
|
||||
@ -6556,6 +6556,7 @@ pub struct PaymentLinkDetails {
|
||||
pub merchant_description: Option<String>,
|
||||
pub sdk_layout: String,
|
||||
pub display_sdk_only: bool,
|
||||
pub hide_card_nickname_field: bool,
|
||||
pub locale: Option<String>,
|
||||
pub transaction_details: Option<Vec<admin::PaymentLinkTransactionDetails>>,
|
||||
}
|
||||
@ -6563,6 +6564,7 @@ pub struct PaymentLinkDetails {
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
pub struct SecurePaymentLinkDetails {
|
||||
pub enabled_saved_payment_method: bool,
|
||||
pub hide_card_nickname_field: bool,
|
||||
#[serde(flatten)]
|
||||
pub payment_link_details: PaymentLinkDetails,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user