original_string: public function getCardToken(array $param)
      {
          $hasError = false;
          $param['postedParam']['type'] = CheckoutApi_Client_Constant::TOKEN_CARD_TYPE;
          $postedParam = $param['postedParam'];
          $this->flushState();
          $isEmailValid = CheckoutApi_Client_Validation_GW3::isEmailValid($postedParam);
          $isCardValid = CheckoutApi_Client_Validation_GW3::isCardValid($postedParam);
         
          $uri = $this->getUriToken().'/card';
  
          return $this->request( $uri ,$param,!$hasError);
      }
code: public function getCardToken(array $param)
      {
          $hasError = false;
          $param['postedParam']['type'] = CheckoutApi_Client_Constant::TOKEN_CARD_TYPE;
          $postedParam = $param['postedParam'];
          $this->flushState();
          $isEmailValid = CheckoutApi_Client_Validation_GW3::isEmailValid($postedParam);
          $isCardValid = CheckoutApi_Client_Validation_GW3::isCardValid($postedParam);
         
          $uri = $this->getUriToken().'/card';
  
          return $this->request( $uri ,$param,!$hasError);
      }
code_tokens: public function getCardToken ( array $ param ) { $ hasError = false ; $ param [ 'postedParam' ] [ 'type' ] = CheckoutApi_Client_Constant :: TOKEN_CARD_TYPE ; $ postedParam = $ param [ 'postedParam' ] ; $ this -> flushState ( ) ; $ isEmailValid = CheckoutApi_Client_Validation_GW3 :: isEmailValid ( $ postedParam ) ; $ isCardValid = CheckoutApi_Client_Validation_GW3 :: isCardValid ( $ postedParam ) ; $ uri = $ this -> getUriToken ( ) . '/card' ; return $ this -> request ( $ uri , $ param , ! $ hasError ) ; }
docstring: Create Card Token
  @param array $param payload for creating a card token parameter
  @return CheckoutApi_Lib_RespondObj
  @throws Exception
  Simple usage:
  $param['postedParam'] = array (
  'email'   =>    'dhiraj@checkout.com',
  'card'    =>    array(
  'phoneNumber'      => '0123465789',
  'name'             => 'test name',
  'number'           => 'XXXXXXXXX',
  'expiryYear'       => 2017,
  'cvv'              => 956
  )
  );
  $respondCardToken = $Api->getCardToken( $param );
  Use by having, first an instance of the gateway 3.0 and set of arguments as above
docstring_tokens: Create Card Token