original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Builds URLs that will be passed in the request to the merchant.
  
  @param string $destination `notify`, `return`, `cancel`
  @param DepositRequest $depositRequest
  @return string URL
docstring_tokens: Builds URLs that will be passed in the request to the merchant .