mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
feat(payment_link): add provision for secured payment links (#5357)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
//! Commonly used constants
|
||||
|
||||
use std::collections::HashSet;
|
||||
|
||||
/// Number of characters in a generated ID
|
||||
pub const ID_LENGTH: usize = 20;
|
||||
|
||||
@ -81,6 +83,9 @@ pub const DEFAULT_DISPLAY_SDK_ONLY: bool = false;
|
||||
/// Default bool to enable saved payment method
|
||||
pub const DEFAULT_ENABLE_SAVED_PAYMENT_METHOD: bool = false;
|
||||
|
||||
/// Default allowed domains for payment links
|
||||
pub const DEFAULT_ALLOWED_DOMAINS: Option<HashSet<String>> = None;
|
||||
|
||||
/// Default ttl for Extended card info in redis (in seconds)
|
||||
pub const DEFAULT_TTL_FOR_EXTENDED_CARD_INFO: u16 = 15 * 60;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user