original_string: public function  updateCustomerPaymentPlan($param)
      {
          $hasError = false;
  
          $param['method'] = CheckoutApi_Client_Adapter_Constant::API_PUT;
          $this->flushState();
  
          $uri = $this->getUriRecurringPayments().'/customers';;
          $isCustomerPlanIdValid = CheckoutApi_Client_Validation_GW3::isCustomerPlanIdValid($param);
  
          if(!$isCustomerPlanIdValid) {
              $hasError = true;
              $this->throwException('Please provide a valid customer plan id',array('param'=>$param));
  
          } else {
  
              $uri = "$uri/{$param['customerPlanId']}";
          }
  
          return $this->request( $uri ,$param,!$hasError);
      }
code: public function  updateCustomerPaymentPlan($param)
      {
          $hasError = false;
  
          $param['method'] = CheckoutApi_Client_Adapter_Constant::API_PUT;
          $this->flushState();
  
          $uri = $this->getUriRecurringPayments().'/customers';;
          $isCustomerPlanIdValid = CheckoutApi_Client_Validation_GW3::isCustomerPlanIdValid($param);
  
          if(!$isCustomerPlanIdValid) {
              $hasError = true;
              $this->throwException('Please provide a valid customer plan id',array('param'=>$param));
  
          } else {
  
              $uri = "$uri/{$param['customerPlanId']}";
          }
  
          return $this->request( $uri ,$param,!$hasError);
      }
code_tokens: public function updateCustomerPaymentPlan ( $ param ) { $ hasError = false ; $ param [ 'method' ] = CheckoutApi_Client_Adapter_Constant :: API_PUT ; $ this -> flushState ( ) ; $ uri = $ this -> getUriRecurringPayments ( ) . '/customers' ; ; $ isCustomerPlanIdValid = CheckoutApi_Client_Validation_GW3 :: isCustomerPlanIdValid ( $ param ) ; if ( ! $ isCustomerPlanIdValid ) { $ hasError = true ; $ this -> throwException ( 'Please provide a valid customer plan id' , array ( 'param' => $ param ) ) ; } else { $ uri = "$uri/{$param['customerPlanId']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
docstring: Update   Recurring Customer Payment Plan.
  Updates the specified Recurring Customer Payment Plan by setting the values of the parameters passed.
  @param array $param payload param
  @return CheckoutApi_Lib_RespondObj
  @throws Exception
  Simple usage:
  $param['customerPlanId'] = {$customerPlanId} ;
  $param['postedParam'] = array (
  'cardId'   =>  'card_XXXXXXXX',
  'status'   =>  1
  );
  $updateCharge = $Api->updateCharge($param);
docstring_tokens: Update Recurring Customer Payment Plan . Updates the specified Recurring Customer Payment Plan by setting the values of the parameters passed .