/** * create a new payment object * @param string $apikey your API key * @param int $projectId your project id */ public function __construct($configKey = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); $apiUrl = getenv('ubrirApiUrl') != '' ? getenv('ubrirApiUrl') : 'https://api.ubrir.com/api/xml'; parent::__construct($userId, $apiKey, $apiUrl); $this->_parameters['project_id'] = $projectId; }
/** * * Constructor for ubrirLib_Debit * @param string $configKey */ public function __construct($configKey = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); $apiUrl = getenv('debitApiUrl') != '' ? getenv('debitApiUrl') : 'https://www.ubrir.com/payment/debitpay/xml'; parent::__construct($userId, $apiKey, $apiUrl); $this->setProjectId($projectId); $this->setDate(); //set date to today }
/** * * Constructor for ubrirLib_iDeal_Banks * @param string $configKey * @param strign $apiUrl */ public function __construct($configKey, $apiUrl = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); parent::__construct($userId, $apiKey, $apiUrl . '/banks'); }
/** * * Constructor for ubrirLib_Refund * @param string $configKey */ public function __construct($configKey = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); $apiUrl = getenv('refundApiUrl') != '' ? getenv('refundApiUrl') : 'https://www.ubrir.com/payment/refunds'; parent::__construct($userId, $apiKey, $apiUrl); }
/** * Constructor for ubrirLib_Notification */ public function __construct() { parent::__construct('', '', ''); }