コード例 #1
0
 /**
  *
  * 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;
 }
コード例 #2
0
 /**
  *
  * 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
 }
コード例 #3
0
 /**
  * 
  * 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');
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 /**
  * Constructor for SofortLib_Notification
  */
 public function __construct()
 {
     parent::__construct('', '', '');
 }