Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function build(Request $request) |
||
13 | { |
||
14 | $data = array_merge( |
||
15 | $this->buildBaseRequest($request), |
||
16 | [ |
||
17 | self::TRANSACTION_TYPE => [ |
||
18 | 'amount' => $this->amountFormatter->format($request->getAmount()), |
||
19 | 'currencyCode' => $this->currencyCodeFormatter->format($request->getCurrency()), |
||
20 | 'hostLogKey' => $request->getTransactionId() |
||
21 | ] |
||
22 | ] |
||
23 | ); |
||
24 | |||
25 | $serializer = new Serializer(Serializer::XML); |
||
26 | return $serializer->serialize($data, ['root_name' => self::ENVELOPE_NAME]); |
||
27 | } |
||
29 |