feat(payment_link): Add support for saved payment method option for payment link (#4373)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sahkal Poddar
2024-04-17 17:07:33 +05:30
committed by GitHub
parent ca47ea9b13
commit 14341cad27
6 changed files with 43 additions and 5 deletions

View File

@ -1068,6 +1068,9 @@ pub struct PaymentLinkConfigRequest {
/// Display only the sdk for payment link
#[schema(default = false, example = true)]
pub display_sdk_only: Option<bool>,
/// Enable saved payment method option for payment link
#[schema(default = false, example = true)]
pub enabled_saved_payment_method: Option<bool>,
}
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, PartialEq, ToSchema)]
@ -1082,4 +1085,6 @@ pub struct PaymentLinkConfig {
pub sdk_layout: String,
/// Display only the sdk for payment link
pub display_sdk_only: bool,
/// Enable saved payment method option for payment link
pub enabled_saved_payment_method: bool,
}