Show payment page
@return \Magento\Framework\View\Result\PageFactory
480267
public function execute()
    {
        $result = $this->payment->createPaymentRequest();
        $resultPage = $this->resultPageFactory->create();
        $code = $result->getCode();
        $resultPage->getLayout()->getBlock('pagseguro.payment.checkout')
            ->setCode($code);
        $resultPage->getLayout()->getBlock('pagseguro.payment.checkout')
            ->setPaymentJs($this->getPagSeguroPaymentJs());
        $resultPage->getLayout()->getBlock('pagseguro.payment.checkout')
            ->setPaymentUrl($this->payment->checkoutUrl($code, 'paymentService'));

        return $resultPage;
    }
702105
public function getCurrentPage()
    {
        $page = $this->getRequest()->query->getInt($this->getActionQueryParameter(static::QUERY_PARAMETER_PAGE), 1);
        if ($page < 1) {
            $page = 1;
        }
        return $page;
    }
1200069
public function publishPageRevisionAction()
    {
        $request = $this->getRequest();

//        //HTTP method check //this was comented our because the current UI bizarly does an HTTP GET to this action
//        if (!$request->isPost()) {
//
//            $response = new Response();
//            $response->setStatusCode('405');
//
//            return $response;
//        }

        //ACL access check
        if (!$this->rcmUserService->isAllowed(
            $this->getServiceLocator()->get(ResourceName::class)->get(
                ResourceName::RESOURCE_SITES,
                $this->currentSite->getSiteId(),
                ResourceName::RESOURCE_PAGES
            ),
            'edit'
        )
        ) {
            $response = new Response();
            $response->setStatusCode('401');

            return $response;
        }

        $pageName = $this->getEvent()
            ->getRouteMatch()
            ->getParam(
                'rcmPageName',
                'index'
            );

        $pageRevision = $this->getEvent()
            ->getRouteMatch()
            ->getParam(
                'rcmPageRevision',
                null
            );

        $pageType = $this->getEvent()
            ->getRouteMatch()
            ->getParam(
                'rcmPageType',
                'n'
            );

        return $this->redirect()->toUrl(
            $this->pageMutationService->publishPageRevision(
                $this->rcmUserService->getCurrentUser(),
                $this->currentSite->getSiteId(),
                $pageName,
                $pageType,
                $pageRevision,
                function ($pageName, $pageType = 'n', $pageRevision = null) {
                    return $this->urlToPage($pageName, $pageType, $pageRevision);
                }
            )
        );
    }
1268211
public function editPage()
    {
        $page = Page::preload($this->_block->getPageId());
        if ($page->exists) {
            $paths = Path::getById($page->id);
            return View::make('coaster::pages.gallery', ['paths' => $paths, '_block' => $this->_block, 'can_delete' => Auth::action('gallery.delete', ['page_id' => $page->id]), 'can_edit_caption' => Auth::action('gallery.caption', ['page_id' => $page->id])]);
        } else {
            return 'page not found';
        }
    }
458353
public function index()
    {
        $apiRequest = RequestFactory::create();

        $page = $apiRequest->getPage();
        if (!$page->size()) {
            $page->setSize($this->pageSize);
        }

        $fields = $apiRequest->getFields();
        $sorting = $apiRequest->getSort();
        $included = $apiRequest->getIncludedRelationships();
        $filters = $apiRequest->getFilters();

        $resource = new ListResource($this->serializer, $page, $fields, $sorting, $included, $filters);

        $totalAmount = $this->totalAmountResourceCallable();
        $results = $this->listResourceCallable();

        $controllerAction = '\\'.get_called_class().'@index';
        $uri = $this->uriGenerator($controllerAction);

        return $this->addHeaders($resource->get($totalAmount, $results, $uri, get_class($this->getDataModel())));
    }
843547
public function getPaymentList()
    {
        if (is_null($this->paymentList)) {
            $paymentList = oxNew(\OxidEsales\PayPalModule\Model\OrderPaymentList::class);
            $paymentList->load($this->getOrderId());
            $this->setPaymentList($paymentList);
        }

        return $this->paymentList;
    }
351190
public function getPage()
	{
		return $this->offset > $this->limit ? floor($this->offset / $this->limit) : 1;
	}
957181
public function index()
    {
        return Merchant::content(function (Content $content) {
            $content->header(trans('merchant.operation_log'));
            $content->description(trans('merchant.list'));

            $grid = Merchant::grid(OperationLog::class, function (Grid $grid) {
                $grid->model()->orderBy('id', 'DESC');

                $grid->id('ID')->sortable();
                $grid->user()->name(trans('merchant.user'));
                $grid->method()->display(function ($method) {
                    $color = array_get(OperationLog::$methodColors, $method, 'grey');

                    return "<span class=\"badge bg-$color\">$method</span>";
                });
                $grid->path()->label('info');
                $grid->ip()->label('primary');
                $grid->input()->display(function ($input) {
                    $input = json_decode($input, true);
                    $input = array_except($input, ['_pjax', '_token', '_method', '_previous_']);
                    if (empty($input)) {
                        return '<code>{}</code>';
                    }

                    return '<pre>'.json_encode($input, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE).'</pre>';
                });

                $grid->created_at(trans('merchant.created_at'));

                $grid->actions(function (Grid\Displayers\Actions $actions) {
                    $actions->disableEdit();
                });

                $grid->disableCreation();

                $grid->filter(function ($filter) {
                    $filter->equal('user_id', 'User')->select(Administrator::all()->pluck('name', 'id'));
                    $filter->equal('method')->select(array_combine(OperationLog::$methods, OperationLog::$methods));
                    $filter->like('path');
                    $filter->equal('ip');
                });
            });

            $content->body($grid);
        });
    }
593891
public function billing()
    {
        $form = $this->BillingForm();
        
        // If we are using simple checkout, skip
        if (Checkout::config()->simple_checkout) {
            return $this->redirect($this->Link('finish'));
        }
            
        // Check permissions for guest checkout
        if (!Member::currentUserID() && !Checkout::config()->guest_checkout) {
            return $this->redirect($this->Link('index'));
        }

        // Pre populate form with member info
        if (Member::currentUserID()) {
            $form->loadDataFrom(Member::currentUser());
        }

        $this->customise(array(
            'Title'     => _t('Checkout.BillingDetails', "Billing Details"),
            'Form'      => $form
        ));

        $this->extend("onBeforeBilling");

        return $this->renderWith(array(
            'Checkout_billing',
            'Checkout',
            'Page'
        ));
    }
500261
public function indexAction()
    {
        $pager = $this->get('sonata.classification.manager.collection')
            ->getRootCollectionsPager($this->getCurrentRequest()->get('page'));

        return $this->render('SonataProductBundle:Collection:index.html.twig', [
            'pager' => $pager,
        ]);
    }
671434
public function index()
    {
        $orderGrid = new OrderGrid($this->repository->query()->orderBy('id', 'desc'));

        return view('avored-ecommerce::order.index')->with('dataGrid', $orderGrid->dataGrid);
    }
773655
public function getPageStart()
    {
        $request = $this->getRequest();
        if ($this->pageStart === null) {
            if ($request
                && isset($request[$this->getPaginationGetVar()])
                && $request[$this->getPaginationGetVar()] > 0
            ) {
                $this->pageStart = (int)$request[$this->getPaginationGetVar()];
            } else {
                $this->pageStart = 0;
            }
        }

        return $this->pageStart;
    }
1244288
public function index()
    {
        $page = Request::input('page');
        $perPage = config('typicms.galleries.per_page');
        $data = $this->repository->byPage($page, $perPage, ['translations']);
        $models = new Paginator($data->items, $data->totalItems, $perPage, null, ['path' => Paginator::resolveCurrentPath()]);

        return view('galleries::public.index')
            ->with(compact('models'));
    }
1277122
public function show()
    {
        $params = static::$router->current()->parameters();
        $id     = Arr::get($params, 'id');
        $slug   = Arr::get($params, 'slug');

        $page = $this->getRequestedContent($id, $slug);
        $id   = $page->getAttribute('id');
        $slug = $page->getAttribute('slug');

        set_meta('title', $page->getAttribute('title'));

        return $this->getResponse($page, $id, $slug);
    }
618396
public function display()
    {
        $path = func_get_args();

        $count = count($path);
        if (!$count) {
            return $this->redirect('/');
        }
        $page = $subpage = null;

        if (!empty($path[0])) {
            $page = $path[0];
        }
        if (!empty($path[1])) {
            $subpage = $path[1];
        }
        $this->set(compact('page', 'subpage'));

        try {
            $this->render(implode('/', $path));
        } catch (MissingTemplateException $e) {
            if (Configure::read('debug')) {
                throw $e;
            }
            throw new NotFoundException();
        }
    }
633680
public function visible()
    {
        $visible = [];

        foreach ($this->items as $path => $slug) {
            $page = $this->pages->get($path);
            if ($page !== null && $page->visible()) {
                $visible[$path] = $slug;
            }
        }
        $this->items = $visible;

        return $this;
    }
33619
public function payment() {
		$registration = $this->getCurrentRegistration(false);
		if(!$registration || !$registration->canPay()){
			return $this->redirect($this->Link());
		}
		$controller = new PaymentController($this, "payment", $registration, $registration->Total);
		$controller->setSuccessURL($this->Link('complete'));
		$controller->setCancelURL($this->Link('payment'));
		//hack the url segment until the parent controller of this works properly
		$controller->data()->URLSegment = "register/payment";
		return $controller;
	}