mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2026-03-03 02:47:02 +00:00
Stop throwing exceptions for null btc payment webhooks
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\DataMapper\Tax\TaxModel;
|
||||
use App\Utils\Ninja;
|
||||
use App\Models\Company;
|
||||
use App\Repositories\BaseRepository;
|
||||
|
||||
Reference in New Issue
Block a user