mirror of
https://github.com/bitwarden/server
synced 2025-12-16 00:03:54 +00:00
paypal webhook key
This commit is contained in:
@@ -31,6 +31,11 @@ namespace Bit.Billing.Controllers
|
||||
[HttpPost("webhook")]
|
||||
public async Task<IActionResult> PostWebhook([FromQuery] string key)
|
||||
{
|
||||
if(key != _billingSettings.PayPal.WebhookKey)
|
||||
{
|
||||
return new BadRequestResult();
|
||||
}
|
||||
|
||||
if(HttpContext?.Request == null)
|
||||
{
|
||||
return new BadRequestResult();
|
||||
|
||||
Reference in New Issue
Block a user