Skip to content

Commit

Permalink
SHPWR-22 Device Ident implementieren
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmartius committed Aug 11, 2015
1 parent eec693c commit c357a26
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function getLabel()
*/
public function getVersion()
{
return "4.0.3";
return "4.0.4";
}

/**
Expand Down Expand Up @@ -170,6 +170,13 @@ public function update($version)
$this->_subscribeEvents();
$this->_createForm();

switch($version) {
case '4.0.3':
$sql= "ALTER TABLE `rpay_ratepay_config` ADD `deviceFingerprintStatus` int(1) NOT NULL";
Shopware()->Db()->query($sql);
default:
}

return array(
'success' => true,
'invalidateCache' => array(
Expand Down Expand Up @@ -424,6 +431,7 @@ private function _createDataBaseTables()
"`limit-invoice-max` int(5) NOT NULL, " .
"`limit-debit-max` int(5) NOT NULL, " .
"`limit-rate-max` int(5) NOT NULL, " .
"`deviceFingerprintStatus` int(1) NOT NULL, " .
"PRIMARY KEY (`profileId`, `shopId`)" .
") ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci";

Expand Down Expand Up @@ -1108,6 +1116,8 @@ private function getRatepayConfig($profileId, $securityCode, $shopId, $sandbox)
$response->getElementsByTagName('tx-limit-invoice-max')->item(0)->nodeValue,
$response->getElementsByTagName('tx-limit-elv-max')->item(0)->nodeValue,
$response->getElementsByTagName('tx-limit-installment-max')->item(0)->nodeValue,
$response->getElementsByTagName('eligibility-device-fingerprint')->item(0)->nodeValue ? : 'no',

$shopId
);

Expand Down
2 changes: 1 addition & 1 deletion Component/Service/RequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Shopware_Plugins_Frontend_RpayRatePay_Component_Service_RequestService
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_POST => 1,
CURLOPT_SSLVERSION => 6,
#CURLOPT_SSLVERSION => 6,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_HTTPHEADER => array(
"Content-Type: text/xml; charset=UTF-8",
Expand Down
Binary file added plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c357a26

Please sign in to comment.