src/Message/Response.php
public function getPlan()
    {
        if (isset($this->data['plan'])) {
            return $this->data['plan'];
        } elseif (array_key_exists('object', $this->data) && $this->data['object'] == 'plan') {
            return $this->data;
        }

        return null;
    }
public function getPlan()
    {
        if (isset($this->data['plan'])) {
            return $this->data['plan'];
        } elseif (array_key_exists('object', $this->data) && $this->data['object'] == 'plan') {
            return $this->data;
        }

        return null;
    }
public function getPlan ( ) { if ( isset ( $ this -> data [ 'plan' ] ) ) { return $ this -> data [ 'plan' ] ; } elseif ( array_key_exists ( 'object' , $ this -> data ) && $ this -> data [ 'object' ] == 'plan' ) { return $ this -> data ; } return null ; }
Get the subscription plan from the response of CreateSubscriptionRequest.

@return array|null
Get the subscription plan from the response of CreateSubscriptionRequest .