src/Backend/Modules/Commerce/Domain/PaymentMethod/Checkout/ConfirmOrder.php
/**
     * Go to a given cart page.
     *
     * @throws RedirectException
     */
Go to a given cart page.
Go to a given cart page .
private function goToPage(string $page, array $parameters = []): void
    {
        $url = Navigation::getUrlForBlock('Commerce', 'Cart') . '/' . $page;
        if ($parameters) {
            $query = [];
            foreach ($parameters as $key => $value) {
                $query[] = $key . '=' . $value;
            }
            $url .= '?' . implode('&', $query);
        }
        throw new RedirectException('Redirect', new RedirectResponse($url, Response::HTTP_FOUND));
    }
private function goToPage ( string $ page , array $ parameters = [ ] ) : void { $ url = Navigation :: getUrlForBlock ( 'Commerce' , 'Cart' ) . '/' . $ page ; if ( $ parameters ) { $ query = [ ] ; foreach ( $ parameters as $ key => $ value ) { $ query [ ] = $ key . '=' . $ value ; } $ url .= '?' . implode ( '&' , $ query ) ; } throw new RedirectException ( 'Redirect' , new RedirectResponse ( $ url , Response :: HTTP_FOUND ) ) ; }
Go to a given cart page.
Go to a given cart page .
// Add extra parameters