@@ -156,15 +156,15 @@ |
||
156 | 156 | */ |
157 | 157 | public function getHostedFieldConfig() |
158 | 158 | { |
159 | - $aHostedParams = $this->getHostedParams();// get hosted params from config |
|
159 | + $aHostedParams = $this->getHostedParams(); // get hosted params from config |
|
160 | 160 | |
161 | 161 | $aFieldConfig = []; |
162 | 162 | if (!empty($aHostedParams)) { |
163 | - $aFieldConfig['fields'] = $this->getFieldConfig();// generate config for all field types |
|
163 | + $aFieldConfig['fields'] = $this->getFieldConfig(); // generate config for all field types |
|
164 | 164 | $aFieldConfig['defaultStyle'] = $this->getDefaultStyles($aHostedParams); |
165 | 165 | if ($aHostedParams['Errors_active'] == "true") { |
166 | - $aFieldConfig['error'] = 'errorOutput';// area to display error-messages (optional) |
|
167 | - $aFieldConfig['language'] = $aHostedParams['Errors_lang'];// has to be defined in javascript |
|
166 | + $aFieldConfig['error'] = 'errorOutput'; // area to display error-messages (optional) |
|
167 | + $aFieldConfig['language'] = $aHostedParams['Errors_lang']; // has to be defined in javascript |
|
168 | 168 | } |
169 | 169 | } |
170 | 170 | return $aFieldConfig; |
@@ -177,6 +177,6 @@ |
||
177 | 177 | if ($this->getPaymentConfig('allowspecific', $sPaymentCode, $sStoreCode, true) == '1') { |
178 | 178 | return $this->getPaymentConfig('specificcountry', $sPaymentCode, $sStoreCode, true); |
179 | 179 | } |
180 | - return '';// empty return value if all countries are available |
|
180 | + return ''; // empty return value if all countries are available |
|
181 | 181 | } |
182 | 182 | } |
@@ -188,6 +188,6 @@ |
||
188 | 188 | if ($iCount === null) { |
189 | 189 | return 0; |
190 | 190 | } |
191 | - return $iCount+1; |
|
191 | + return $iCount + 1; |
|
192 | 192 | } |
193 | 193 | } |
@@ -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' => []], |
@@ -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)) { |
@@ -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( |
@@ -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'; |
@@ -86,19 +86,19 @@ |
||
86 | 86 | $oOrder = $oPaymentInfo->getOrder(); |
87 | 87 | $iTxid = $oPaymentInfo->getParentTransactionId(); |
88 | 88 | if (strpos($iTxid, '-') !== false) { |
89 | - $iTxid = substr($iTxid, 0, strpos($iTxid, '-'));// clean the txid from the magento-suffixes |
|
89 | + $iTxid = substr($iTxid, 0, strpos($iTxid, '-')); // clean the txid from the magento-suffixes |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | $this->setOrderId($oOrder->getRealOrderId()); |
93 | 93 | |
94 | 94 | $this->addParameter('request', 'debit'); // Request method |
95 | - $this->addParameter('mode', $oPayment->getOperationMode());// PayOne Portal Operation Mode (live or test) |
|
95 | + $this->addParameter('mode', $oPayment->getOperationMode()); // PayOne Portal Operation Mode (live or test) |
|
96 | 96 | $this->addParameter('txid', $iTxid); // PayOne Transaction ID |
97 | 97 | $this->addParameter('sequencenumber', $this->databaseHelper->getSequenceNumber($iTxid)); |
98 | 98 | |
99 | 99 | // Total order sum in smallest currency unit |
100 | - $this->addParameter('amount', number_format((-1 * $dAmount), 2, '.', '')*100); |
|
101 | - $this->addParameter('currency', $oOrder->getOrderCurrencyCode());// Currency |
|
100 | + $this->addParameter('amount', number_format((-1 * $dAmount), 2, '.', '') * 100); |
|
101 | + $this->addParameter('currency', $oOrder->getOrderCurrencyCode()); // Currency |
|
102 | 102 | $this->addParameter('transactiontype', 'GT'); |
103 | 103 | |
104 | 104 | $sRefundAppendix = $this->getRefundAppendix($oOrder, $oPayment); |
@@ -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; |