original_string: public function getCardProvider($param)
      {
          $this->flushState();
          $isValidProvider = CheckoutApi_Client_Validation_GW3::isProvider($param);
          $uri = $this->getUriProvider().'/cards';
          $hasError = false;
          if(!$isValidProvider)
          {
              $hasError = true;
              $this->throwException('Please provide a valid provider id',array('param'=>$param));
          }
  
          if(!$hasError){
              $uri = "{$uri}/{$param['providerId']}";
          }
  
          return $this->request( $uri ,$param,!$hasError);
      }
code: public function getCardProvider($param)
      {
          $this->flushState();
          $isValidProvider = CheckoutApi_Client_Validation_GW3::isProvider($param);
          $uri = $this->getUriProvider().'/cards';
          $hasError = false;
          if(!$isValidProvider)
          {
              $hasError = true;
              $this->throwException('Please provide a valid provider id',array('param'=>$param));
          }
  
          if(!$hasError){
              $uri = "{$uri}/{$param['providerId']}";
          }
  
          return $this->request( $uri ,$param,!$hasError);
      }
code_tokens: public function getCardProvider ( $ param ) { $ this -> flushState ( ) ; $ isValidProvider = CheckoutApi_Client_Validation_GW3 :: isProvider ( $ param ) ; $ uri = $ this -> getUriProvider ( ) . '/cards' ; $ hasError = false ; if ( ! $ isValidProvider ) { $ hasError = true ; $ this -> throwException ( 'Please provide a valid provider id' , array ( 'param' => $ param ) ) ; } if ( ! $ hasError ) { $ uri = "{$uri}/{$param['providerId']}" ; } return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
docstring: Get a list of card provider
  @param array $param payload param for retriving a list of card by providers
  @return CheckoutApi_Lib_RespondObj
  Simple usage:
  $param['providerId'] = $providerId ;
  $cardProvidersObj = $Api->getCardProvider($param);
docstring_tokens: Get a list of card provider