diff --git a/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php b/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php deleted file mode 100755 index 2e1aff9a..00000000 --- a/Frontend/MoptPaymentPayone/Components/Payone/Settings/Configuration/Abstract.php +++ /dev/null @@ -1,53 +0,0 @@ - - www.noovias.com - * @author Matthias Walter - * @license GNU General Public License (GPL 3) - * @link http://www.noovias.com - */ - -/** - * - * @category Payone - * @package Payone_Settings - * @subpackage Configuration - * @copyright Copyright (c) 2012 - www.noovias.com - * @license GNU General Public License (GPL 3) - * @link http://www.noovias.com - */ -abstract class Payone_Settings_Configuration_Abstract -{ - /** - * @param string $class - * @return array - */ - protected function getClassConstants($class) - { - try { - $cardtype = new ReflectionClass($class); - if (is_object($cardtype)) { - // @codingStandardsIgnoreStart - $constants = $cardtype->getConstants(); - // @codingStandardsIgnoreEnd - } - } catch (ReflectionException $e) { - $constants = []; - } - return $constants; - } -} diff --git a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php index 2f8a94e8..a10aef0f 100755 --- a/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php +++ b/Frontend/MoptPaymentPayone/Controllers/Backend/FcPayone.php @@ -144,7 +144,7 @@ public function Plugin() public function connectiontestAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $this->mid = $_GET['mid']; $this->aid = $_GET['aid']; $this->pid = $_GET['pid']; @@ -456,7 +456,7 @@ public function ajaxgetTestResultsAction() $data = array(); sleep(2); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $filename = Shopware()->Container()->get('kernel')->getLogDir() . '/moptPayoneConnectionTest.log'; $resultfile = fopen($filename, "r"); $aLines = ''; @@ -518,7 +518,7 @@ public function apilogAction() public function ajaxapilogAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $offset = $this->Request()->get('offset'); $limit = $this->Request()->get('limit'); @@ -544,7 +544,7 @@ public function ajaxtransactionstatusAction() $breadcrump = array( "Konfiguration", "Features", "ajaxtransactionstatusconfig", "Statusweiterleitung" ); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $start = $this->Request()->get('start'); $limit = $this->Request()->get('limit'); @@ -610,7 +610,7 @@ public function ajaxpaymentstatusconfigAction() public function ajaxgetPaymentStatusConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $data['data'] = $this->get('MoptPayoneMain')->getPayoneConfig($paymentid, true); @@ -622,7 +622,7 @@ public function ajaxgetPaymentStatusConfigAction() public function ajaxgetRiskCheckConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $data['data'] = $this->get('MoptPayoneMain')->getPayoneConfig($paymentid, true); @@ -634,7 +634,7 @@ public function ajaxgetRiskCheckConfigAction() public function ajaxgetAddressCheckConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $data['data'] = $this->get('MoptPayoneMain')->getPayoneConfig($paymentid, true); @@ -681,7 +681,7 @@ public function ajaxcreditcardAction() public function ajaxgetCreditCardConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $repository = Shopware()->Models()->getRepository('Shopware\Models\Payment\Payment'); @@ -696,7 +696,7 @@ public function ajaxgetCreditCardConfigAction() public function ajaxgetIframeConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $repository = Shopware()->Models()->getRepository('Shopware\CustomModels\MoptPayoneCreditcardConfig\MoptPayoneCreditcardConfig'); @@ -711,7 +711,7 @@ public function ajaxgetIframeConfigAction() public function ajaxgetPaypalConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $repository = Shopware()->Models()->getRepository('Shopware\CustomModels\MoptPayonePaypal\MoptPayonePaypal'); $query = $this->getAllPaymentsQuery(null, null, $repository); @@ -725,7 +725,7 @@ public function ajaxgetPaypalConfigAction() public function ajaxgetRatepayConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $repository = Shopware()->Models()->getRepository('Shopware\CustomModels\MoptPayoneRatepay\MoptPayoneRatepay'); $query = $this->getAllPaymentsQuery(null,null,$repository); @@ -746,7 +746,7 @@ public function ajaxgetRatepayConfigAction() public function ajaxgetAmazonConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $repository = Shopware()->Models()->getRepository('Shopware\CustomModels\MoptPayoneAmazonPay\MoptPayoneAmazonPay'); $query = $this->getAllPaymentsQuery(null,null,$repository); @@ -779,7 +779,7 @@ public function ajaxdebitAction() public function ajaxgetDebitConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $repository = Shopware()->Models()->getRepository('Shopware\Models\Payment\Payment'); @@ -820,7 +820,7 @@ public function ajaxfinanceAction() public function ajaxgetFinanceConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $repository = Shopware()->Models()->getRepository('Shopware\Models\Payment\Payment'); @@ -854,7 +854,7 @@ public function ajaxonlinetransferAction() public function ajaxgetOnlineTransferConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $repository = Shopware()->Models()->getRepository('Shopware\Models\Payment\Payment'); @@ -897,7 +897,7 @@ public function ajaxwalletAction() public function ajaxgetWalletConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $repository = Shopware()->Models()->getRepository('Shopware\Models\Payment\Payment'); @@ -931,7 +931,7 @@ public function ajaxtransactionstatusconfigAction() public function ajaxgetTransactionStatusConfigAction() { $data = array(); - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $data['data'] = $this->get('MoptPayoneMain')->getPayoneConfig($paymentid, true); @@ -961,16 +961,13 @@ public function ajaxgeneralconfigAction() public function ajaxgetGeneralConfigAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentid = $this->Request()->getParam('paymentid'); $data['data'] = $this->get('MoptPayoneMain')->getPayoneConfig($paymentid, true); $data['status'] = 'success'; $encoded = json_encode($data); echo $encoded; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxriskcheckAction() @@ -1034,7 +1031,7 @@ public function ajaxtextblocksAction() public function ajaxgettextblocksAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $offset = $this->Request()->get('offset'); $limit = $this->Request()->get('limit'); @@ -1063,7 +1060,7 @@ public function ajaxgettextblocksAction() public function ajaxsavetextblocksAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $localeId = $this->Request()->get('localeId'); $snippetId = $this->Request()->get('snippetId'); @@ -1077,28 +1074,22 @@ public function ajaxsavetextblocksAction() $encoded = json_encode($data); echo $encoded; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxSavePaymentConfigAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentData = $this->Request()->getPost(); $this->createPayment($paymentData); $data['status'] = 'success'; $data['message'] = 'Zahlungsart erfolgreich gespeichert!'; $encoded = json_encode($data); echo $encoded; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxSavePayoneConfigAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentData = $this->Request()->getPost(); $data['status'] = 'success'; $data['message'] = 'Zahlungsart erfolgreich gespeichert!'; @@ -1106,28 +1097,22 @@ public function ajaxSavePayoneConfigAction() $this->createPayoneCreditcardConfig($paymentData); $encoded = json_encode($data); echo $encoded; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxSaveIframeConfigAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentData = $this->Request()->getPost(); $data['status'] = 'success'; $data['message'] = 'Konfiguration erfolgreich gespeichert!'; $this->createIframeConfig($paymentData); $encoded = json_encode($data); echo $encoded; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxSavePaypalConfigAction() { - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); $paymentData = $this->Request()->getPost(); $data['status'] = 'success'; $data['message'] = 'Konfiguration erfolgreich gespeichert!'; @@ -1154,9 +1139,6 @@ public function ajaxSavePaypalConfigAction() } $encoded = json_encode($data); echo $encoded; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxSaveApplepayCertAction() @@ -1167,7 +1149,7 @@ public function ajaxSaveApplepayCertAction() mkdir($shoproot.$folder, 0700); } $response = 0; - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); if (isset($_FILES['file']) && !empty($_FILES['file']['name'] && $_FILES['file']['size'] > 0)) { $fileData = $_FILES['file']; @@ -1192,9 +1174,6 @@ public function ajaxSaveApplepayCertAction() } echo $response; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function ajaxSaveApplepayKeyAction() @@ -1206,7 +1185,7 @@ public function ajaxSaveApplepayKeyAction() } $response = 0; - $this->Front()->Plugins()->Json()->setRenderer(true); + $this->Front()->Plugins()->ViewRenderer()->setNoRender(); if (isset($_FILES['file']) && !empty($_FILES['file']['name'] && $_FILES['file']['size'] > 0)) { $fileData = $_FILES['file']; @@ -1231,9 +1210,6 @@ public function ajaxSaveApplepayKeyAction() } echo $response; - // @codingStandardsIgnoreStart - exit(0); - // @codingStandardsIgnoreEnd } public function updateSnippet($options)