Exemplo n.º 1
0
 /**
  * Add to request object common info to proccess a request
  * @param string $lang language to be used
  * @param string $command PayU request command
  * @return the request with basic information
  */
 protected static function buildCommonRequest($lang, $command)
 {
     $request = new stdClass();
     $request->language = $lang;
     $request->command = $command;
     $request->merchant = CommonRequestUtil::buildMerchant();
     $request->test = PayU::$isTest;
     return $request;
 }