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:
parent
c9afb760b8
commit
81f781be48
@ -171,6 +171,7 @@ public class OrdersController : ControllerBase
|
|||||||
|
|
||||||
// Webhook endpoint for BTCPay Server
|
// Webhook endpoint for BTCPay Server
|
||||||
[HttpPost("payments/webhook")]
|
[HttpPost("payments/webhook")]
|
||||||
|
[AllowAnonymous]
|
||||||
public async Task<ActionResult> PaymentWebhook([FromBody] PaymentWebhookDto webhookDto)
|
public async Task<ActionResult> PaymentWebhook([FromBody] PaymentWebhookDto webhookDto)
|
||||||
{
|
{
|
||||||
var success = await _cryptoPaymentService.ProcessPaymentWebhookAsync(
|
var success = await _cryptoPaymentService.ProcessPaymentWebhookAsync(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user