original_string: public  function getPaymentPlan($param)
      {
          $hasError = false;
  
          $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
          $this->flushState();
          $uri = $this->getUriRecurringPayments().'/plans';;
          $isPlanIdValid = CheckoutApi_Client_Validation_GW3::isPlanIdValid($param);
  
          if(!$isPlanIdValid) {
              $hasError = true;
              $this->throwException('Please provide a valid plan id',array('param'=>$param));
          }else {
  
              $uri = "$uri/{$param['customerId']}";
          }
  
          return $this->request( $uri ,$param,!$hasError);
      }
code: public  function getPaymentPlan($param)
      {
          $hasError = false;
  
          $param['method'] = CheckoutApi_Client_Adapter_Constant::API_GET;
          $this->flushState();
          $uri = $this->getUriRecurringPayments().'/plans';;
          $isPlanIdValid = CheckoutApi_Client_Validation_GW3::isPlanIdValid($param);
  
          if(!$isPlanIdValid) {
              $hasError = true;
              $this->throwException('Please provide a valid plan id',array('param'=>$param));
          }else {
  
              $uri = "$uri/{$param['customerId']}";
          }
  
          return $this->request( $uri ,$param,!$hasError);
      }
code_tokens: public function getPaymentPlan ( $ param ) { $ hasError = false ; $ param [ 'method' ] = CheckoutApi_Client_Adapter_Constant :: API_GET ; $ this -> flushState ( ) ; $ uri = $ this -> getUriRecurringPayments ( ) . '/plans' ; ; $ isPlanIdValid = CheckoutApi_Client_Validation_GW3 :: isPlanIdValid ( $ param ) ; if ( ! $ isPlanIdValid ) { $ hasError = true ; $ this -> throwException ( 'Please provide a valid plan id' , array ( 'param' => $ param ) ) ; } else { $ uri = "$uri/{$param['customerId']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
docstring: Get payment plan
  @param array $param payload param for returning a payment plan
  @return CheckoutApi_Lib_RespondObj
  @throws Exception
  Simple usage :
  $param['planId'] = {planId} ;
  $getPaymentPlan = $Api->getPaymentPlan($param);
docstring_tokens: Get payment plan