mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
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:
@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user