src/Payment/Request/Decorator/CaptureDecorator.php 1 location
|
@@ 17-30 (lines=14) @@
|
14 |
|
|
15 |
|
namespace Gpupo\AdyenSdk\Payment\Request\Decorator; |
16 |
|
|
17 |
|
class CaptureDecorator extends AbstractDecorator |
18 |
|
{ |
19 |
|
public function toArray() |
20 |
|
{ |
21 |
|
return [ |
22 |
|
'merchantAccount' => $this->getRequest()->getMerchantAccount(), |
23 |
|
'modificationAmount' => [ |
24 |
|
'value' => $this->getOrder()->getAmountInt(), |
25 |
|
'currency' => 'BRL', |
26 |
|
], |
27 |
|
'originalReference' => $this->getOrder()->get('pspReference'), |
28 |
|
]; |
29 |
|
} |
30 |
|
} |
31 |
|
|
src/Payment/Request/Decorator/RefundDecorator.php 1 location
|
@@ 17-30 (lines=14) @@
|
14 |
|
|
15 |
|
namespace Gpupo\AdyenSdk\Payment\Request\Decorator; |
16 |
|
|
17 |
|
class RefundDecorator extends AbstractDecorator |
18 |
|
{ |
19 |
|
public function toArray() |
20 |
|
{ |
21 |
|
return [ |
22 |
|
'merchantAccount' => $this->getRequest()->getMerchantAccount(), |
23 |
|
'modificationAmount' => [ |
24 |
|
'value' => $this->getOrder()->getModificationValueInt(), |
25 |
|
'currency' => 'BRL', |
26 |
|
], |
27 |
|
'originalReference' => $this->getOrder()->get('pspReference'), |
28 |
|
]; |
29 |
|
} |
30 |
|
} |
31 |
|
|