public function  updatePaymentPlan($param)
    {
        $hasError = false;

        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_PUT;
        $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['planId']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
public function  updatePaymentPlan($param)
    {
        $hasError = false;

        $param['method'] = CheckoutApi_Client_Adapter_Constant::API_PUT;
        $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['planId']}";
        }

        return $this->request( $uri ,$param,!$hasError);
    }
public function updatePaymentPlan ( $ param ) { $ hasError = false ; $ param [ 'method' ] = CheckoutApi_Client_Adapter_Constant :: API_PUT ; $ 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['planId']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
Update   Recurring Payment Plan.
Updates the specified Recurring Payment Plan by setting the values of the parameters passed.
@param array $param payload param
@return CheckoutApi_Lib_RespondObj
@throws Exception
Simple usage:
$param['planId'] = {$planId} ;
$param['postedParam'] = array (
'name'          =>  'New subscription name',
'planTrackId'   =>  'newPlanTrackId',
'autoCapTime'   =>  24,
'value'   =>  200,
'status'   =>  4
);
$updateCharge = $Api->updateCharge($param);
Update Recurring Payment Plan . Updates the specified Recurring Payment Plan by setting the values of the parameters passed .