mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
feat(payment_link): added display_sdk_only option for displaying only sdk without payment details (#4363)
This commit is contained in:
@ -1065,6 +1065,9 @@ pub struct PaymentLinkConfigRequest {
|
||||
/// Custom layout for sdk
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "accordion")]
|
||||
pub sdk_layout: Option<String>,
|
||||
/// Display only the sdk for payment link
|
||||
#[schema(default = false, example = true)]
|
||||
pub display_sdk_only: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, PartialEq, ToSchema)]
|
||||
@ -1077,4 +1080,6 @@ pub struct PaymentLinkConfig {
|
||||
pub seller_name: String,
|
||||
/// Custom layout for sdk
|
||||
pub sdk_layout: String,
|
||||
/// Display only the sdk for payment link
|
||||
pub display_sdk_only: bool,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user