@@ -77,8 +77,8 @@ |
||
| 77 | 77 | $oCustomer = $oQuote->getCustomer(); |
| 78 | 78 | |
| 79 | 79 | $this->addParameter('request', 'managemandate'); // Request method |
| 80 | - $this->addParameter('mode', $oPayment->getOperationMode());// PayOne Portal Operation Mode (live or test) |
|
| 81 | - $this->addParameter('aid', $this->shopHelper->getConfigParam('aid'));// ID of PayOne Sub-Account |
|
| 80 | + $this->addParameter('mode', $oPayment->getOperationMode()); // PayOne Portal Operation Mode (live or test) |
|
| 81 | + $this->addParameter('aid', $this->shopHelper->getConfigParam('aid')); // ID of PayOne Sub-Account |
|
| 82 | 82 | $this->addParameter('clearingtype', 'elv'); |
| 83 | 83 | |
| 84 | 84 | $this->addParameter('customerid', $oCustomer->getId()); |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | 'content' => http_build_query($this->aParameters), |
| 66 | 66 | ], |
| 67 | 67 | ]; |
| 68 | - $oContext = stream_context_create($aOptions); |
|
| 68 | + $oContext = stream_context_create($aOptions); |
|
| 69 | 69 | $sMandate = file_get_contents($this->sApiUrl, false, $oContext); |
| 70 | 70 | if ($sMandate !== false) { |
| 71 | 71 | $sReturn = $sMandate; |
@@ -120,14 +120,14 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | protected function initRequest() |
| 122 | 122 | { |
| 123 | - $this->addParameter('mid', $this->shopHelper->getConfigParam('mid'));// PayOne Merchant ID |
|
| 124 | - $this->addParameter('portalid', $this->shopHelper->getConfigParam('portalid'));// PayOne Portal ID |
|
| 125 | - $this->addParameter('key', md5($this->shopHelper->getConfigParam('key')));// PayOne Portal Key |
|
| 126 | - $this->addParameter('encoding', $this->environmentHelper->getEncoding());// Encoding |
|
| 127 | - $this->addParameter('integrator_name', 'Magento2');// Shop-system |
|
| 128 | - $this->addParameter('integrator_version', $this->shopHelper->getMagentoVersion());// Shop version |
|
| 129 | - $this->addParameter('solution_name', 'fatchip');// Company developing the module |
|
| 130 | - $this->addParameter('solution_version', PayoneConfig::MODULE_VERSION);// Module version |
|
| 123 | + $this->addParameter('mid', $this->shopHelper->getConfigParam('mid')); // PayOne Merchant ID |
|
| 124 | + $this->addParameter('portalid', $this->shopHelper->getConfigParam('portalid')); // PayOne Portal ID |
|
| 125 | + $this->addParameter('key', md5($this->shopHelper->getConfigParam('key'))); // PayOne Portal Key |
|
| 126 | + $this->addParameter('encoding', $this->environmentHelper->getEncoding()); // Encoding |
|
| 127 | + $this->addParameter('integrator_name', 'Magento2'); // Shop-system |
|
| 128 | + $this->addParameter('integrator_version', $this->shopHelper->getMagentoVersion()); // Shop version |
|
| 129 | + $this->addParameter('solution_name', 'fatchip'); // Company developing the module |
|
| 130 | + $this->addParameter('solution_version', PayoneConfig::MODULE_VERSION); // Module version |
|
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | /** |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | public function addParameter($sKey, $sValue, $blAddAsNullIfEmpty = false) |
| 142 | 142 | { |
| 143 | 143 | if ($blAddAsNullIfEmpty === true && empty($sValue)) { |
| 144 | - $sValue = 'NULL';// add value as string NULL - needed in certain situations |
|
| 144 | + $sValue = 'NULL'; // add value as string NULL - needed in certain situations |
|
| 145 | 145 | } |
| 146 | 146 | $this->aParameters[$sKey] = $sValue; |
| 147 | 147 | } |
@@ -251,8 +251,8 @@ discard block |
||
| 251 | 251 | return $sRequestUrl; |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | - $aResponse = $this->apiHelper->sendApiRequest($sRequestUrl);// send request to PAYONE |
|
| 255 | - $this->apiLog->addApiLogEntry($this, $aResponse, $aResponse['status']);// log request to db |
|
| 254 | + $aResponse = $this->apiHelper->sendApiRequest($sRequestUrl); // send request to PAYONE |
|
| 255 | + $this->apiLog->addApiLogEntry($this, $aResponse, $aResponse['status']); // log request to db |
|
| 256 | 256 | return $aResponse; |
| 257 | 257 | } |
| 258 | 258 | } |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | $sRequest = $this->getData($sKey); |
| 76 | 76 | if ($sRequest) { |
| 77 | 77 | if (Toolkit::isUTF8($sRequest)) { |
| 78 | - $sRequest = utf8_decode($sRequest);// needed for unserializing the array |
|
| 78 | + $sRequest = utf8_decode($sRequest); // needed for unserializing the array |
|
| 79 | 79 | } |
| 80 | 80 | $aRequest = unserialize($sRequest); |
| 81 | 81 | if (is_array($aRequest)) { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | array $meta = [], |
| 71 | 71 | array $data = [] |
| 72 | 72 | ) { |
| 73 | - $this->databaseHelper = $databaseHelper;// needs to be in front of constructor, doesnt work otherwise for no apparent reason |
|
| 73 | + $this->databaseHelper = $databaseHelper; // needs to be in front of constructor, doesnt work otherwise for no apparent reason |
|
| 74 | 74 | parent::__construct($name, $primaryFieldName, $requestFieldName, $reporting, $searchCritBuilder, $request, $filterBuilder, $meta, $data); |
| 75 | 75 | } |
| 76 | 76 | |
@@ -58,8 +58,8 @@ |
||
| 58 | 58 | const TRANSACTIONSTATUS_REMINDER = 'reminder'; |
| 59 | 59 | const TRANSACTIONSTATUS_VAUTHORIZATION = 'vauthorization'; |
| 60 | 60 | const TRANSACTIONSTATUS_VSETTLEMENT = 'vsettlement'; |
| 61 | - const TRANSACTIONSTATUS_TRANSFER= 'transfer'; |
|
| 62 | - const TRANSACTIONSTATUS_INVOICE= 'invoice'; |
|
| 61 | + const TRANSACTIONSTATUS_TRANSFER = 'transfer'; |
|
| 62 | + const TRANSACTIONSTATUS_INVOICE = 'invoice'; |
|
| 63 | 63 | |
| 64 | 64 | /* Payment method codes */ |
| 65 | 65 | const METHOD_CREDITCARD = 'payone_creditcard'; |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | $aRequest = $oContext->getRequest()->getPostValue(); |
| 109 | 109 | $sRawStatus = serialize($aRequest); |
| 110 | 110 | if (!Toolkit::isUTF8($sRawStatus)) { |
| 111 | - $sRawStatus = utf8_encode($sRawStatus);// needed for serializing the array |
|
| 111 | + $sRawStatus = utf8_encode($sRawStatus); // needed for serializing the array |
|
| 112 | 112 | } |
| 113 | 113 | $sOrderId = $oOrder !== null ? $oOrder->getIncrementId() : ''; |
| 114 | 114 | $this->getConnection()->insert( |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | 'cardpan' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []], |
| 135 | 135 | 'clearing_bankaccountholder' => ['type' => Table::TYPE_TEXT, 'length' => 255, 'option' => []], |
| 136 | 136 | 'clearing_bankaccount' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []], |
| 137 | - 'clearing_bankcode' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => [],], |
|
| 137 | + 'clearing_bankcode' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => [], ], |
|
| 138 | 138 | 'clearing_bankname' => ['type' => Table::TYPE_TEXT, 'length' => 255, 'option' => []], |
| 139 | 139 | 'clearing_bankbic' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []], |
| 140 | 140 | 'clearing_bankiban' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => []], |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | * Returns formatted birthday if possible |
| 117 | 117 | * |
| 118 | 118 | * @param DataObject $data |
| 119 | - * @return string|bool |
|
| 119 | + * @return string|false |
|
| 120 | 120 | */ |
| 121 | 121 | protected function getFormattedBirthday(DataObject $data) |
| 122 | 122 | { |