![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/vendor/omise/omise-php/lib/omise/ |
<?php class OmiseCardList extends OmiseApiResource { const ENDPOINT = 'cards'; private $_customerID; /** * @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); } /** * retrieve a card * * @param string $id * * @return OmiseCard */ public function retrieve($id) { $result = parent::execute($this->getUrl($id), parent::REQUEST_GET, self::getResourceKey()); return new OmiseCard($result, $this->_customerID, $this->_publickey, $this->_secretkey); } /** * @param string $id * * @return string */ private function getUrl($id = '') { return OMISE_API_URL . 'customers/' . $this->_customerID . '/' . self::ENDPOINT . '/' . $id; } }