/** * * Constructor for SofortLib_TransactionData * @param string $configKey */ public function __construct($configKey = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); $apiUrl = getenv('sofortApiUrl') != '' ? getenv('sofortApiUrl') : 'https://api.sofort.com/api/xml'; parent::__construct($userId, $apiKey, $apiUrl); return $this; }
/** * * Constructor for SofortLib_Debit * @param string $configKey */ public function __construct($configKey = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); $apiUrl = getenv('debitApiUrl') != '' ? getenv('debitApiUrl') : 'https://www.sofort.com/payment/debitpay/xml'; parent::__construct($userId, $apiKey, $apiUrl); $this->setProjectId($projectId); $this->setDate(); //set date to today }
/** * * Constructor for SofortLib_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'); }
public function __construct($configKey = '') { list($userId, $projectId, $apiKey) = explode(':', $configKey); $apiUrl = getenv('refundApiUrl') != '' ? getenv('refundApiUrl') : 'https://www.sofort.com/payment/refunds'; parent::__construct($userId, $apiKey, $apiUrl); }
/** * Constructor for SofortLib_Notification */ public function __construct() { parent::__construct('', '', ''); }