mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Remove debug code
This commit is contained in:
parent
d78b874838
commit
3e9dd7d8d1
@ -837,7 +837,7 @@ class PaymentController extends BaseController
|
||||
], 400);
|
||||
}
|
||||
|
||||
if (!$eventDetails['pending_webhooks'] && false) {
|
||||
if (!$eventDetails['pending_webhooks']) {
|
||||
return response()->json([
|
||||
'message' => 'This is not a pending event',
|
||||
], 400);
|
||||
@ -853,7 +853,7 @@ class PaymentController extends BaseController
|
||||
}
|
||||
|
||||
if ($eventType == 'charge.failed') {
|
||||
if (!$payment->isFailed() || true) {
|
||||
if (!$payment->isFailed() {
|
||||
$payment->markFailed($charge['failure_message']);
|
||||
$this->userMailer->sendNotification($payment->user, $payment->invoice, 'payment_failed', $payment);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user