mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -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:
@ -48,6 +48,7 @@ namespace Bit.Billing.Controllers
|
||||
[HttpPost("ipn")]
|
||||
public async Task<IActionResult> PostIpn()
|
||||
{
|
||||
_logger.LogDebug("PayPal webhook has been hit.");
|
||||
if (HttpContext?.Request?.Query == null)
|
||||
{
|
||||
return new BadRequestResult();
|
||||
@ -57,6 +58,7 @@ namespace Bit.Billing.Controllers
|
||||
HttpContext.Request.Query["key"].ToString() : null;
|
||||
if (key != _billingSettings.PayPal.WebhookKey)
|
||||
{
|
||||
_logger.LogWarning("PayPal webhook key is incorrect or does not exist.");
|
||||
return new BadRequestResult();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user