Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 10 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
18 | 1 | public function execute($request) |
|
19 | { |
||
20 | 1 | RequestNotSupportedException::assertSupports($this, $request); |
|
21 | |||
22 | /** @var PaymentInterface $payment */ |
||
23 | 1 | $payment = $request->getSource(); |
|
24 | |||
25 | 1 | $details = ArrayObject::ensureArrayObject($payment->getDetails()); |
|
26 | |||
27 | 1 | $details['order_id'] = $payment->getNumber(); |
|
28 | 1 | $details['order_amount'] = $payment->getTotalAmount(); |
|
29 | 1 | $details['rv_email'] = $payment->getClientEmail(); |
|
30 | |||
31 | // CVS |
||
32 | 1 | $details['process_id'] = $details['order_id']; |
|
33 | |||
34 | 1 | $request->setResult((array) $details); |
|
35 | 1 | } |
|
36 | |||
48 |