Пример #1
0
 /**
  * (non-PHPdoc)
  *
  * @see OmiseApiResource::g_reload()
  */
 public function reload()
 {
     if ($this['object'] === 'customer') {
         parent::g_reload(self::getUrl($this['id']));
     } else {
         parent::g_reload(self::getUrl());
     }
 }
Пример #2
0
 /**
  * (non-PHPdoc)
  *
  * @see OmiseApiResource::g_reload()
  */
 public function reload()
 {
     if ($this['object'] === 'transaction') {
         parent::reload(self::getUrl($this['id']));
     } else {
         parent::g_reload(self::getUrl());
     }
 }
Пример #3
0
 /**
  * @param array $cards
  * @param string $customerID
  * @param string $publickey
  * @param string $secretkey
  */
 public function __construct($cards, $customerID, $options = array(), $publickey = null, $secretkey = null)
 {
     if (!is_array($options) && func_num_args() == 4) {
         $publickey = func_get_arg(2);
         $secretkey = func_get_arg(3);
     }
     parent::__construct($publickey, $secretkey);
     $this->_customerID = $customerID;
     if (is_array($options)) {
         parent::g_reload($this->getUrl('?' . http_build_query($options)));
     } else {
         $this->refresh($cards);
     }
 }
Пример #4
0
 /**
  * (non-PHPdoc)
  * @see OmiseApiResource::g_reload()
  */
 public function reload()
 {
     parent::g_reload(self::getUrl());
 }
Пример #5
0
 /**
  * (non-PHPdoc)
  *
  * @see OmiseApiResource::g_reload()
  */
 public function reload()
 {
     parent::g_reload($this->getUrl($this['id']));
 }