public function redirectToSuccessPage($orderId)
    {
        $this->getLog()->addInfo("Redirecting customer to payment success page");

        throw new RedirectException(
            $this->retrieveUrlFromRouteId(
                'order.placed',
                [],
                [
                    'order_id' => $orderId
                ],
                Router::ABSOLUTE_PATH
            )
        );
    }
public function redirectToSuccessPage($orderId)
    {
        $this->getLog()->addInfo("Redirecting customer to payment success page");

        throw new RedirectException(
            $this->retrieveUrlFromRouteId(
                'order.placed',
                [],
                [
                    'order_id' => $orderId
                ],
                Router::ABSOLUTE_PATH
            )
        );
    }
public function redirectToSuccessPage ( $ orderId ) { $ this -> getLog ( ) -> addInfo ( "Redirecting customer to payment success page" ) ; throw new RedirectException ( $ this -> retrieveUrlFromRouteId ( 'order.placed' , [ ] , [ 'order_id' => $ orderId ] , Router :: ABSOLUTE_PATH ) ) ; }
Redirect the customer to the successful payment page.

@param int $orderId the order ID
Redirect the customer to the successful payment page .