Remove debug code

This commit is contained in:
Joshua Dwire 2016-05-01 00:37:14 -04:00
parent d78b874838
commit 3e9dd7d8d1

View File

@ -837,7 +837,7 @@ class PaymentController extends BaseController
], 400); ], 400);
} }
if (!$eventDetails['pending_webhooks'] && false) { if (!$eventDetails['pending_webhooks']) {
return response()->json([ return response()->json([
'message' => 'This is not a pending event', 'message' => 'This is not a pending event',
], 400); ], 400);
@ -853,7 +853,7 @@ class PaymentController extends BaseController
} }
if ($eventType == 'charge.failed') { if ($eventType == 'charge.failed') {
if (!$payment->isFailed() || true) { if (!$payment->isFailed() {
$payment->markFailed($charge['failure_message']); $payment->markFailed($charge['failure_message']);
$this->userMailer->sendNotification($payment->user, $payment->invoice, 'payment_failed', $payment); $this->userMailer->sendNotification($payment->user, $payment->invoice, 'payment_failed', $payment);
} }