diff --git a/app/controllers/PaymentController.php b/app/controllers/PaymentController.php index 0eda769b71f4..2a34c5e83172 100755 --- a/app/controllers/PaymentController.php +++ b/app/controllers/PaymentController.php @@ -227,7 +227,7 @@ class PaymentController extends \BaseController $key = $invoice->invoice_number . '_details'; $gateway = $invoice->client->account->account_gateways[0]->gateway; $paymentLibrary = $gateway->paymentlibrary; - $currencyCode = $invoice->client->currency ? $invoice->client->currency->code : $invoice->account->currency ? $invoice->account->currency->code : 'USD'; + $currencyCode = $invoice->client->currency ? $invoice->client->currency->code : ($invoice->account->currency ? $invoice->account->currency->code : 'USD'); if ($input && $paymentLibrary->id == PAYMENT_LIBRARY_OMNIPAY) {