src/Resource/Payment.php
public function get($id_moip)
    {
        if ($this->isMultipayment($id_moip)) {
            return $this->getByPath(sprintf('/%s/%s/%s', MoipResource::VERSION, self::MULTI_PAYMENTS_PATH, $id_moip));
        }

        return $this->getByPath(sprintf('/%s/%s/%s', MoipResource::VERSION, self::PATH, $id_moip));
    }
public function get($id_moip)
    {
        if ($this->isMultipayment($id_moip)) {
            return $this->getByPath(sprintf('/%s/%s/%s', MoipResource::VERSION, self::MULTI_PAYMENTS_PATH, $id_moip));
        }

        return $this->getByPath(sprintf('/%s/%s/%s', MoipResource::VERSION, self::PATH, $id_moip));
    }
public function get ( $ id_moip ) { if ( $ this -> isMultipayment ( $ id_moip ) ) { return $ this -> getByPath ( sprintf ( '/%s/%s/%s' , MoipResource :: VERSION , self :: MULTI_PAYMENTS_PATH , $ id_moip ) ) ; } return $ this -> getByPath ( sprintf ( '/%s/%s/%s' , MoipResource :: VERSION , self :: PATH , $ id_moip ) ) ; }
Get an payment and multipayment in MoIP.

@param string $id_moip Id MoIP payment

@return stdClass
Get an payment and multipayment in MoIP .