feat(payment_link): added display_sdk_only option for displaying only sdk without payment details (#4363)

This commit is contained in:
Sahkal Poddar
2024-04-16 19:00:45 +05:30
committed by GitHub
parent c9e5cf45c8
commit 4d9909899f
7 changed files with 85 additions and 33 deletions

View File

@ -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,
}