public function payments()
    {
        if(! isset($this->_embedded, $this->_embedded->payments) ) {
            return null;
        }

        return ResourceFactory::createCursorResourceCollection(
            $this->client,
            $this->_embedded->payments,
            Payment::class
        );
    }
public function payments()
    {
        if(! isset($this->_embedded, $this->_embedded->payments) ) {
            return null;
        }

        return ResourceFactory::createCursorResourceCollection(
            $this->client,
            $this->_embedded->payments,
            Payment::class
        );
    }
public function payments ( ) { if ( ! isset ( $ this -> _embedded , $ this -> _embedded -> payments ) ) { return null ; } return ResourceFactory :: createCursorResourceCollection ( $ this -> client , $ this -> _embedded -> payments , Payment :: class ) ; }
Retrieve the payments for this order.
Requires the order to be retrieved using the embed payments parameter.

@return null|\Mollie\Api\Resources\PaymentCollection
Retrieve the payments for this order . Requires the order to be retrieved using the embed payments parameter .