mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(payment_link): expose configurations for payment links (#7742)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2895,6 +2895,14 @@ pub struct PaymentLinkConfigRequest {
|
||||
pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
/// Flag to enable the button only when the payment form is ready for submission
|
||||
pub enable_button_only_on_form_ready: Option<bool>,
|
||||
/// Optional header for the SDK's payment form
|
||||
pub payment_form_header_text: Option<String>,
|
||||
/// Label type in the SDK's payment form
|
||||
#[schema(value_type = Option<PaymentLinkSdkLabelType>, example = "floating")]
|
||||
pub payment_form_label_type: Option<api_enums::PaymentLinkSdkLabelType>,
|
||||
/// Boolean for controlling whether or not to show the explicit consent for storing cards
|
||||
#[schema(value_type = Option<PaymentLinkShowSdkTerms>, example = "always")]
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2982,6 +2990,14 @@ pub struct PaymentLinkConfig {
|
||||
pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
/// Flag to enable the button only when the payment form is ready for submission
|
||||
pub enable_button_only_on_form_ready: bool,
|
||||
/// Optional header for the SDK's payment form
|
||||
pub payment_form_header_text: Option<String>,
|
||||
/// Label type in the SDK's payment form
|
||||
#[schema(value_type = Option<PaymentLinkSdkLabelType>, example = "floating")]
|
||||
pub payment_form_label_type: Option<api_enums::PaymentLinkSdkLabelType>,
|
||||
/// Boolean for controlling whether or not to show the explicit consent for storing cards
|
||||
#[schema(value_type = Option<PaymentLinkShowSdkTerms>, example = "always")]
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
Reference in New Issue
Block a user