public function createRefundPaymentRequest($orderUuid, $amount = null)
    {
        $amountData = is_null($amount) ? [] : [
            'amount' => $amount,
        ];

        return $this->createRequest('POST', '/payment/refund', [
                'order_uuid' => $orderUuid,
            ] + $amountData);
    }
public function createRefundPaymentRequest($orderUuid, $amount = null)
    {
        $amountData = is_null($amount) ? [] : [
            'amount' => $amount,
        ];

        return $this->createRequest('POST', '/payment/refund', [
                'order_uuid' => $orderUuid,
            ] + $amountData);
    }
public function createRefundPaymentRequest ( $ orderUuid , $ amount = null ) { $ amountData = is_null ( $ amount ) ? [ ] : [ 'amount' => $ amount , ] ; return $ this -> createRequest ( 'POST' , '/payment/refund' , [ 'order_uuid' => $ orderUuid , ] + $ amountData ) ; }
Returns a PSR-7 request to create a refund of a payment into Paylands.

@param $orderUuid
@param null $amount

@return RequestInterface
Returns a PSR - 7 request to create a refund of a payment into Paylands .