mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 10:02:47 -05: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