Fix: Allow anonymous access to BTCPay webhook endpoint

- Added [AllowAnonymous] attribute to PaymentWebhook endpoint
- Resolves authentication errors preventing BTCPay Server callbacks
- Webhook endpoint now accepts unauthenticated POST requests

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
SysAdmin 2025-10-06 15:47:35 +01:00
parent c9afb760b8
commit 81f781be48

View File

@ -171,6 +171,7 @@ public class OrdersController : ControllerBase
// Webhook endpoint for BTCPay Server
[HttpPost("payments/webhook")]
[AllowAnonymous]
public async Task<ActionResult> PaymentWebhook([FromBody] PaymentWebhookDto webhookDto)
{
var success = await _cryptoPaymentService.ProcessPaymentWebhookAsync(