Пример #1
0
 protected function _getPostData()
 {
     $data = parent::_getPostData();
     if ($this->_apiToken == '') {
         throw new Pay_Exception('apiToken not set', 1);
     } else {
         $data['token'] = $this->_apiToken;
     }
     if (!isset($this->_postData['transactionId'])) {
         throw new Pay_Exception('transactionId is not set', 1);
     }
     return $data;
 }
Пример #2
0
 protected function _getPostData()
 {
     $data = parent::_getPostData();
     // Checken of alle verplichte velden geset zijn
     if ($this->_apiToken == '') {
         throw new Pay_Exception('apiToken not set', 1);
     } else {
         $data['token'] = $this->_apiToken;
     }
     if (empty($this->_serviceId)) {
         throw new Pay_Exception('serviceId not set', 1);
     } else {
         $data['serviceId'] = $this->_serviceId;
     }
     return $data;
 }
Пример #3
0
 protected function _getPostData()
 {
     $data = parent::_getPostData();
     // Check if all required variables are set
     if ($this->_apiToken == '') {
         throw new Pay_Exception('apiToken not set', 1);
     } else {
         $data['token'] = $this->_apiToken;
     }
     if (empty($this->_serviceId)) {
         throw new Pay_Exception('serviceId not set', 1);
     } else {
         $data['serviceId'] = $this->_serviceId;
     }
     return $data;
 }
Пример #4
0
 protected function _getPostData()
 {
     $data = parent::_getPostData();
     // Checken of alle verplichte velden geset zijn
     if ($this->_apiToken == '') {
         throw new Pay_Exception('apiToken not set', 1);
     } else {
         $data['token'] = $this->_apiToken;
     }
     if (empty($this->_serviceId)) {
         throw new Pay_Exception('apiToken not set', 1);
     } else {
         $data['serviceId'] = $this->_serviceId;
     }
     if (empty($this->_amount)) {
         throw new Pay_Exception('Amount is niet geset', 1);
     } else {
         $data['amount'] = $this->_amount;
     }
     if (!empty($this->_paymentOptionId)) {
         $data['paymentOptionId'] = $this->_paymentOptionId;
     }
     if (empty($this->_finishUrl)) {
         throw new Pay_Exception('FinishUrl is niet geset', 1);
     } else {
         $data['finishUrl'] = $this->_finishUrl;
     }
     if (!empty($this->_exchangeUrl)) {
         $data['transaction']['orderExchangeUrl'] = $this->_exchangeUrl;
     }
     if (!empty($this->_description)) {
         $data['transaction']['description'] = $this->_description;
     }
     if (!empty($this->_currency)) {
         $data['transaction']['currency'] = $this->_currency;
     }
     if (!empty($this->_paymentOptionSubId)) {
         $data['paymentOptionSubId'] = $this->_paymentOptionSubId;
     }
     //ip en browserdata setten browserdata set ik met dummydata
     $data['ipAddress'] = $_SERVER['REMOTE_ADDR'];
     $data['browserData'] = array('browser_name_regex' => '^mozilla/5\\.0 (windows; .; windows nt 5\\.1; .*rv:.*) gecko/.* firefox/0\\.9.*$', 'browser_name_pattern' => 'Mozilla/5.0 (Windows; ?; Windows NT 5.1; *rv:*) Gecko/* Firefox/0.9*', 'parent' => 'Firefox 0.9', 'platform' => 'WinXP', 'browser' => 'Firefox', 'version' => 0.9, 'majorver' => 0, 'minorver' => 9, 'cssversion' => 2, 'frames' => 1, 'iframes' => 1, 'tables' => 1, 'cookies' => 1);
     if (!empty($this->_products)) {
         $data['saleData']['invoiceDate'] = date('d-m-Y');
         $data['saleData']['deliveryDate'] = date('d-m-Y', strtotime('+1 day'));
         $data['saleData']['orderData'] = $this->_products;
     }
     if (!empty($this->_enduser)) {
         $data['enduser'] = $this->_enduser;
     }
     if (!empty($this->_extra1)) {
         $data['statsData']['extra1'] = $this->_extra1;
     }
     if (!empty($this->_extra2)) {
         $data['statsData']['extra2'] = $this->_extra2;
     }
     if (!empty($this->_extra3)) {
         $data['statsData']['extra3'] = $this->_extra3;
     }
     if (!empty($this->_promotorId)) {
         $data['statsData']['promotorId'] = $this->_promotorId;
     }
     if (!empty($this->_info)) {
         $data['statsData']['info'] = $this->_info;
     }
     if (!empty($this->_tool)) {
         $data['statsData']['tool'] = $this->_tool;
     }
     if (!empty($this->_object)) {
         $data['statsData']['object'] = $this->_object;
     }
     if (!empty($this->_domainId)) {
         $data['statsData']['domain_id'] = $this->_domainId;
     }
     if (!empty($this->_transferData)) {
         $data['statsData']['transferData'] = $this->_transferData;
     }
     return $data;
 }