예제 #1
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);
     }
 }
예제 #2
0
 /**
  * @param array  $refunds
  * @param string $chargeID
  * @param string $publickey
  * @param string $secretkey
  */
 public function __construct($refunds, $chargeID, $publickey = null, $secretkey = null)
 {
     parent::__construct($publickey, $secretkey);
     $this->_chargeID = $chargeID;
     $this->refresh($refunds);
 }
예제 #3
0
 /**
  * @param array $cards
  * @param string $customerID
  * @param string $publickey
  * @param string $secretkey
  */
 public function __construct($cards, $customerID, $publickey = null, $secretkey = null)
 {
     parent::__construct($publickey, $secretkey);
     $this->_customerID = $customerID;
     $this->refresh($cards);
 }
예제 #4
0
 /**
  * @param array $refund
  * @param string $publickey
  * @param string $secretkey
  */
 public function __construct($refund, $publickey = null, $secretkey = null)
 {
     parent::__construct($publickey, $secretkey);
     $this->refresh($refund);
 }