Fix syntax error

This commit is contained in:
Joshua Dwire 2016-05-01 00:38:48 -04:00
parent 3e9dd7d8d1
commit 059a23b612

View File

@ -853,7 +853,7 @@ class PaymentController extends BaseController
}
if ($eventType == 'charge.failed') {
if (!$payment->isFailed() {
if (!$payment->isFailed()) {
$payment->markFailed($charge['failure_message']);
$this->userMailer->sendNotification($payment->user, $payment->invoice, 'payment_failed', $payment);
}