@@ -268,7 +268,6 @@ |
||
| 268 | 268 | |
| 269 | 269 | /** |
| 270 | 270 | * Send the previously prepared request, log request and response into the database and return the response |
| 271 | - |
|
| 272 | 271 | * @param PayoneMethod $oPayment |
| 273 | 272 | * @return array |
| 274 | 273 | */ |
@@ -95,9 +95,9 @@ |
||
| 95 | 95 | $aInvoiceList = $oOrder->getInvoiceCollection()->getItems(); |
| 96 | 96 | if ($oInvoice = array_shift($aInvoiceList)) { // get first invoice |
| 97 | 97 | $oInvoice->pay(); // mark invoice as paid |
| 98 | - $oInvoice->save(); |
|
| 98 | + $oInvoice->save(); |
|
| 99 | 99 | |
| 100 | - $oOrder->save(); |
|
| 101 | - } |
|
| 100 | + $oOrder->save(); |
|
| 101 | + } |
|
| 102 | 102 | } |
| 103 | 103 | } |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | * |
| 62 | 62 | * @var \Payone\Core\Helper\Toolkit |
| 63 | 63 | */ |
| 64 | - protected $toolkitHelper; |
|
| 64 | + protected $toolkitHelper; |
|
| 65 | 65 | |
| 66 | 66 | /** |
| 67 | 67 | * Constructor |