using Nop.Core.Configuration; using Nop.Plugin.Payments.PayPalCommerce.Domain; namespace Nop.Plugin.Payments.PayPalCommerce; /// /// Represents plugin settings /// public class PayPalCommerceSettings : ISettings { /// /// Gets or sets merchant email /// public string Email { get; set; } /// /// Gets or sets the URL to sign up /// public string SignUpUrl { get; set; } /// /// Gets or sets internal merchant id /// public string MerchantGuid { get; set; } /// /// Gets or sets a value indicating whether to manually set the credentials. /// For example, there is already an app created, or if the merchant wants to use the sandbox mode. /// public bool SetCredentialsManually { get; set; } /// /// Gets or sets a value indicating whether to use sandbox environment /// public bool UseSandbox { get; set; } /// /// Gets or sets client identifier /// public string ClientId { get; set; } /// /// Gets or sets client secret /// public string SecretKey { get; set; } /// /// Gets or sets the payment type /// public PaymentType PaymentType { get; set; } /// /// Gets or sets a webhook URL /// public string WebhookUrl { get; set; } /// /// Gets or sets a period (in seconds) before the request times out /// public int? RequestTimeout { get; set; } /// /// Gets or sets a minimum value that can be considered a real discount, and not a rounding error in calculations, /// for example, if you are sure that the store will not have discounts less than a $1, set here 1.00 /// public decimal MinDiscountAmount { get; set; } #region Advanced settings /// /// Gets or sets a value indicating whether to display buttons on the shopping cart page /// public bool DisplayButtonsOnShoppingCart { get; set; } /// /// Gets or sets a value indicating whether to display buttons on a product details page /// public bool DisplayButtonsOnProductDetails { get; set; } /// /// Gets or sets a value indicating whether to display logo in header links /// public bool DisplayLogoInHeaderLinks { get; set; } /// /// Gets or sets the source code of logo in header links /// public string LogoInHeaderLinks { get; set; } /// /// Gets or sets a value indicating whether to display logo in footer /// public bool DisplayLogoInFooter { get; set; } /// /// Gets or sets the source code of logo in footer /// public string LogoInFooter { get; set; } /// /// Gets or sets a value indicating whether to display Pay Later messages /// public bool DisplayPayLaterMessages { get; set; } /// /// Gets or sets the disabled funding sources for the transaction (separated by comma) /// By default, funding source eligibility is determined based on a variety of factors /// public string DisabledFunding { get; set; } /// /// Gets or sets the enabled funding sources for the transaction (separated by comma) /// Enable funding can be used to ensure a funding source is rendered, if eligible /// public string EnabledFunding { get; set; } /// /// Gets or sets the layout option to determine the button layout when multiple buttons are available /// public string StyleLayout { get; set; } /// /// Gets or sets the color option /// public string StyleColor { get; set; } /// /// Gets or sets the shape option /// public string StyleShape { get; set; } /// /// Gets or sets the label option /// public string StyleLabel { get; set; } /// /// Gets or sets the tagline option /// public string StyleTagline { get; set; } #endregion }