original_string: public function getStoredCardDetails($token = false)
      {
          if (empty($token) || !is_string($token)) {
              Error::throwError('ip', Error::$errors['orderInput']['token']);
          }
  
          $response = TokenService::getStoredCardDetails($token);
  
          if (!isset($response['paymentMethod'])) {
              Error::throwError("apierror");
          }
  
          return $response['paymentMethod'];
      }
code: public function getStoredCardDetails($token = false)
      {
          if (empty($token) || !is_string($token)) {
              Error::throwError('ip', Error::$errors['orderInput']['token']);
          }
  
          $response = TokenService::getStoredCardDetails($token);
  
          if (!isset($response['paymentMethod'])) {
              Error::throwError("apierror");
          }
  
          return $response['paymentMethod'];
      }
code_tokens: public function getStoredCardDetails ( $ token = false ) { if ( empty ( $ token ) || ! is_string ( $ token ) ) { Error :: throwError ( 'ip' , Error :: $ errors [ 'orderInput' ] [ 'token' ] ) ; } $ response = TokenService :: getStoredCardDetails ( $ token ) ; if ( ! isset ( $ response [ 'paymentMethod' ] ) ) { Error :: throwError ( "apierror" ) ; } return $ response [ 'paymentMethod' ] ; }
docstring: Get card details from Worldpay token
  @param string $token
  @return array card details
docstring_tokens: Get card details from Worldpay token