| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function serialize() |
||
| 33 | { |
||
| 34 | $response = [ |
||
| 35 | 'identificacao' => urlencode((string) $this->transaction->getIpag()->getAuthentication()->getIdentification()), |
||
| 36 | 'transId' => urlencode((string) $this->transaction->getTid()), |
||
| 37 | 'retorno_tipo' => urlencode('xml'), |
||
| 38 | ]; |
||
| 39 | |||
| 40 | $amount = $this->transaction->getOrder()->getAmount(); |
||
| 41 | if (!empty($amount)) { |
||
| 42 | $response['valor'] = $amount; |
||
| 43 | } |
||
| 44 | |||
| 45 | return $response; |
||
| 46 | } |
||
| 72 |