mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +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, | ||||
| } | ||||
|  | ||||
| @ -4490,6 +4490,7 @@ pub struct PaymentLinkDetails { | ||||
|     pub merchant_description: Option<String>, | ||||
|     pub sdk_layout: String, | ||||
|     pub display_sdk_only: bool, | ||||
|     pub enabled_saved_payment_method: bool, | ||||
| } | ||||
|  | ||||
| #[derive(Debug, serde::Serialize)] | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Sahkal Poddar
					Sahkal Poddar