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);
    }
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);
    }
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 ) ; }
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);
Get payment plan