feat(payments): [Payment links] Add config for changing button text for payment links (#6860)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Debarati Ghatak
2024-12-19 18:31:48 +05:30
committed by GitHub
parent 092c79ec40
commit 46aad503b0
11 changed files with 53 additions and 1 deletions

View File

@ -2769,6 +2769,8 @@ pub struct PaymentLinkConfigRequest {
/// Custom layout for details section
#[schema(value_type = Option<PaymentLinkDetailsLayout>, example = "layout1")]
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
/// Text for payment link's handle confirm button
pub payment_button_text: Option<String>,
}
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
@ -2838,6 +2840,8 @@ pub struct PaymentLinkConfig {
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
/// Toggle for HyperSwitch branding visibility
pub branding_visibility: Option<bool>,
/// Text for payment link's handle confirm button
pub payment_button_text: Option<String>,
}
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]

View File

@ -6853,6 +6853,7 @@ pub struct PaymentLinkDetails {
pub background_image: Option<admin::PaymentLinkBackgroundImageConfig>,
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
pub branding_visibility: Option<bool>,
pub payment_button_text: Option<String>,
}
#[derive(Debug, serde::Serialize, Clone)]
@ -6862,6 +6863,7 @@ pub struct SecurePaymentLinkDetails {
pub show_card_form_by_default: bool,
#[serde(flatten)]
pub payment_link_details: PaymentLinkDetails,
pub payment_button_text: Option<String>,
}
#[derive(Debug, serde::Serialize)]