Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
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(self::TRANSACTION_TYPE), |
||
16 | [ |
||
17 | 'OrderId' => $request->getOrderId(), |
||
18 | 'Total' => $this->amountFormatter->format($request->getAmount()), |
||
19 | 'Currency' => $this->currencyCodeFormatter->format($request->getCurrency()), |
||
20 | ], |
||
21 | $this->buildCard($request->getResource()) |
||
22 | ); |
||
23 | |||
24 | $serializer = new Serializer(Serializer::XML); |
||
25 | return $serializer->serialize($data, ['root_name' => self::ENVELOPE_NAME]); |
||
26 | } |
||
28 |