diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index de440e3e1321..f9f824c9151e 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -220,7 +220,7 @@ class PaymentController extends \BaseController if ($response->isSuccessful()) { - self::createPayment($invitation, $ref); + $payment = self::createPayment($invitation, $ref); $invoice->invoice_status_id = INVOICE_STATUS_PAID; $invoice->save();