| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 46 | protected function updatePayment() |
||
| 47 | { |
||
| 48 | if (!$this->apiResponse->getResponseHeader()->getIsSuccess()) { |
||
| 49 | return; |
||
| 50 | } |
||
| 51 | |||
| 52 | $newStatus = $this->apiResponse->getCaptureDetails()->getCaptureStatus()->getState(); |
||
| 53 | $this->paymentEntity->setStatus($newStatus); |
||
| 54 | $this->paymentEntity->save(); |
||
| 55 | } |
||
| 57 |