Esempio n. 1
0
 /**
  * Do the request
  *
  * @param null $endpoint
  * @param null $version
  * @return array The result
  */
 public function doRequest($endpoint = null, $version = null)
 {
     if (isset(self::$cache[Config::getServiceId()])) {
         return self::$cache[Config::getServiceId()];
     } else {
         $result = parent::doRequest('transaction/getService');
         self::$cache[Config::getServiceId()] = $result;
         return $result;
     }
 }
Esempio n. 2
0
 /**
  * Do the request
  *
  * @param null $endpoint
  * @param null $version
  * @return array the result
  */
 public function doRequest($endpoint = null, $version = null)
 {
     return parent::doRequest('transaction/decline');
 }