From c357a26a738b7ab94c435e099987c7fe4059ad07 Mon Sep 17 00:00:00 2001 From: caramba1337 Date: Tue, 11 Aug 2015 11:06:47 +0200 Subject: [PATCH] SHPWR-22 Device Ident implementieren --- Bootstrap.php | 12 +++++++++++- Component/Service/RequestService.php | 2 +- plugin.png | Bin 0 -> 1566 bytes 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 plugin.png diff --git a/Bootstrap.php b/Bootstrap.php index 37464555..78dec067 100755 --- a/Bootstrap.php +++ b/Bootstrap.php @@ -83,7 +83,7 @@ public function getLabel() */ public function getVersion() { - return "4.0.3"; + return "4.0.4"; } /** @@ -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( @@ -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"; @@ -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 ); diff --git a/Component/Service/RequestService.php b/Component/Service/RequestService.php index 5d928997..1295a371 100755 --- a/Component/Service/RequestService.php +++ b/Component/Service/RequestService.php @@ -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", diff --git a/plugin.png b/plugin.png new file mode 100644 index 0000000000000000000000000000000000000000..042c25bcbb7d464d7fcafb0576226f11d352263c GIT binary patch literal 1566 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+m^Cs(B1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!uxR5#hc$WX!DQqR!T z)ZE-iN5ROz&_v(BP~Xs4*U-|+#Kg+LKmiJrfVLH-q*(>IxIyg#@@$ndN=gc>^!3Zj z%k|2Q_413-^$jg8E%gnI^o@*kfhu&1EAvVcD|GXUm0>2hq!uR^WfqiV=I1GZOiWD5 zFD$Tv3bSNU;+l1ennz|zM-B0$V)JVzP|XC=H|jx7ncO3BHWAB;NpiyW)Z+ZoqGVvir744~DzI`cN=+=uFAB-e&w+(vKt_H^esM;Afr7I$IMft0d=ry1 z^FV@{U|qhxR-SpqC5d^-sh%#jN= zAx`t4dQ)(_#R#WfeV}9XLD7p8-7q0w8Uiuli5JL$C;!wuV45!iCho)jzbqISn0h>2 z978H@nN0Ha2niH9e*SOO`?JQf$0gYpxjI_5C2U#UDzb%}X{GOirLHckS8Py{VG7^c zX^@45f~-v75r>-l(U z=bLLzTPG#=Fefwc%t*1y4ozdpV_v|xOzM{N+2cE|9yxW?-uv_77u7w*$7V3*9T57r zD_Tm-iud3&V}~!rt2QcMs`Fo`=f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