From 3e9dd7d8d1e72f179aab6da564e0a4624e4aff82 Mon Sep 17 00:00:00 2001 From: Joshua Dwire Date: Sun, 1 May 2016 00:37:14 -0400 Subject: [PATCH] Remove debug code --- app/Http/Controllers/PaymentController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/PaymentController.php b/app/Http/Controllers/PaymentController.php index 374665e32506..171274b9428b 100644 --- a/app/Http/Controllers/PaymentController.php +++ b/app/Http/Controllers/PaymentController.php @@ -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); }