settings->getSettings(['type' => 'payment']); $currency = app('system_settings')->fields['selling_currency'] ?? 'USD'; $checkoutItem = $this->payment->getCheckoutItem($item_type, $id, $request->coupon); $itemCoupons = $this->payment->validateExamCoupons($item_type, $id); return view('paymentgateways::index', [ 'id' => $id, 'from' => $from, 'coupon' => $request->coupon, 'item_type' => $item_type, 'payments' => $payments, 'currency' => $currency, 'itemCoupons' => $itemCoupons, ...$checkoutItem, ]); } }