public function get($paymentId, array $parameters = [])
    {
        if (empty($paymentId) || strpos($paymentId, self::RESOURCE_ID_PREFIX) !== 0) {
            throw new ApiException("Invalid payment ID: '{$paymentId}'. A payment ID should start with '".self::RESOURCE_ID_PREFIX."'.");
        }

        return parent::rest_read($paymentId, $parameters);
    }
public function get($paymentId, array $parameters = [])
    {
        if (empty($paymentId) || strpos($paymentId, self::RESOURCE_ID_PREFIX) !== 0) {
            throw new ApiException("Invalid payment ID: '{$paymentId}'. A payment ID should start with '".self::RESOURCE_ID_PREFIX."'.");
        }

        return parent::rest_read($paymentId, $parameters);
    }
public function get ( $ paymentId , array $ parameters = [ ] ) { if ( empty ( $ paymentId ) || strpos ( $ paymentId , self :: RESOURCE_ID_PREFIX ) !== 0 ) { throw new ApiException ( "Invalid payment ID: '{$paymentId}'. A payment ID should start with '" . self :: RESOURCE_ID_PREFIX . "'." ) ; } return parent :: rest_read ( $ paymentId , $ parameters ) ; }
Retrieve a single payment from Mollie.

Will throw a ApiException if the payment id is invalid or the resource cannot be found.

@param string $paymentId
@param array $parameters
@return Payment
@throws ApiException
Retrieve a single payment from Mollie .