mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
Add configuration support for QA cloud environment (#1572)
* Adding a QA environment specific configuration * separating the bitwarden environment and stripe environment checks * adding a logging statement for the PayPal webhook key check * adding more logging * switched logging type * Changing the log level on the PayPal webhook. Removing the debugging log from the Stripe Controller
This commit is contained in:
@ -43,8 +43,8 @@ namespace Bit.Core.Services
|
||||
return null;
|
||||
}
|
||||
var validEnvironment = _globalSettings.AppleIap.AppInReview ||
|
||||
(!_hostingEnvironment.IsProduction() && receiptStatus.Environment == "Sandbox") ||
|
||||
(_hostingEnvironment.IsProduction() && receiptStatus.Environment != "Sandbox");
|
||||
(!(_hostingEnvironment.IsProduction() || _hostingEnvironment.IsEnvironment("QA")) && receiptStatus.Environment == "Sandbox") ||
|
||||
((_hostingEnvironment.IsProduction() || _hostingEnvironment.IsEnvironment("QA")) && receiptStatus.Environment != "Sandbox");
|
||||
var validProductBundle = receiptStatus.Receipt.BundleId == "com.bitwarden.desktop" ||
|
||||
receiptStatus.Receipt.BundleId == "com.8bit.bitwarden";
|
||||
var validProduct = receiptStatus.LatestReceiptInfo.LastOrDefault()?.ProductId == "premium_annually";
|
||||
|
Reference in New Issue
Block a user