Merge branch 'feature/stripe' of github.com:ONLYOFFICE/AppServer into feature/stripe

This commit is contained in:
Tatiana Lopaeva 2022-09-02 16:15:15 +03:00
commit bb2f5fbecd
3 changed files with 16 additions and 2 deletions

View File

@ -53,4 +53,12 @@ public class FeaturePriceDto
public string CurrencySymbol { get; set; }
public string Count { get; set; }
public string Per { get; set; }
public FeaturePriceRangeDto Range { get; set; }
}
public class FeaturePriceRangeDto
{
public object Value { get; set; }
public object Min { get; set; }
public object Max { get; set; }
}

View File

@ -112,7 +112,13 @@ public class QuotaHelper
Value = val,
CurrencySymbol = currentRegion.CurrencySymbol,
Per = string.Format(Resource.ResourceManager.GetString($"TariffsFeature_{id}_price_per"), GetPriceString(val, currentRegion)),
Count = Resource.ResourceManager.GetString($"TariffsFeature_{id}_price_count")
Count = Resource.ResourceManager.GetString($"TariffsFeature_{id}_price_count"),
Range = new FeaturePriceRangeDto
{
Value = 1,
Min = 1,
Max = 999,
}
};
}

View File

@ -169,7 +169,7 @@ public class AdditionalWhiteLabelSettingsHelper
{
get
{
var email = _configuration["web:payment:email"];
var email = _configuration["core:payment:email"];
return !string.IsNullOrEmpty(email) ? email : "sales@onlyoffice.com";
}
}