public function buildUrl($destination, DepositRequest $depositRequest)
    {
        $page = [
            $this->getPage($destination, $depositRequest),
            'username'      => $depositRequest->username,
            'merchant'      => $depositRequest->merchant,
            'transactionId' => $depositRequest->id,
        ];

        if (is_array($page)) {
            $page[0] = $this->localizePage($page[0]);
        } else {
            $page = $this->localizePage($page);
        }

        return Url::to($page, true);
    }
public function buildUrl($destination, DepositRequest $depositRequest)
    {
        $page = [
            $this->getPage($destination, $depositRequest),
            'username'      => $depositRequest->username,
            'merchant'      => $depositRequest->merchant,
            'transactionId' => $depositRequest->id,
        ];

        if (is_array($page)) {
            $page[0] = $this->localizePage($page[0]);
        } else {
            $page = $this->localizePage($page);
        }

        return Url::to($page, true);
    }
public function buildUrl ( $ destination , DepositRequest $ depositRequest ) { $ page = [ $ this -> getPage ( $ destination , $ depositRequest ) , 'username' => $ depositRequest -> username , 'merchant' => $ depositRequest -> merchant , 'transactionId' => $ depositRequest -> id , ] ; if ( is_array ( $ page ) ) { $ page [ 0 ] = $ this -> localizePage ( $ page [ 0 ] ) ; } else { $ page = $ this -> localizePage ( $ page ) ; } return Url :: to ( $ page , true ) ; }
Builds URLs that will be passed in the request to the merchant.

@param string $destination `notify`, `return`, `cancel`
@param DepositRequest $depositRequest
@return string URL
Builds URLs that will be passed in the request to the merchant .