| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| 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['MerBillNo'] = $payment->getNumber(); |
|
| 28 | 1 | $details['Amount'] = $payment->getTotalAmount(); |
|
| 29 | |||
| 30 | 1 | $request->setResult((array) $details); |
|
| 31 | 1 | } |
|
| 32 | |||
| 44 |