Stop throwing exceptions for null btc payment webhooks

This commit is contained in:
David Bomba
2025-11-23 12:10:37 +11:00
parent 5158fae577
commit dcd8681bd6
2 changed files with 1 additions and 2 deletions

View File

@@ -98,7 +98,7 @@ class BTCPayPaymentDriver extends BaseDriver
$btcpayRep = json_decode($webhook_payload);
if ($btcpayRep == null) {
throw new PaymentFailed('Empty data');
return response()->noContent();
}
if (empty($btcpayRep->invoiceId)) {

View File

@@ -12,7 +12,6 @@
namespace App\Repositories;
use App\DataMapper\Tax\TaxModel;
use App\Utils\Ninja;
use App\Models\Company;
use App\Repositories\BaseRepository;