| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function getData() |
||
| 25 | { |
||
| 26 | $this->validate('merchantId', 'amount', 'currency', 'paymentId'); |
||
| 27 | |||
| 28 | $data = [ |
||
| 29 | 'amountOfMoney' => [ |
||
| 30 | 'amount' => $this->getAmountInteger(), |
||
| 31 | 'currencyCode' => $this->getCurrency(), |
||
| 32 | ], |
||
| 33 | 'operationReferences' => [ |
||
| 34 | 'merchantReference' => $this->getTransactionId(), |
||
| 35 | ], |
||
| 36 | ]; |
||
| 37 | |||
| 38 | return $data; |
||
| 39 | } |
||
| 51 |