# 使用 Homebrew, zypper 安装 stripe-mock

查看 stripe-mock 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:stripe-mock
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install stripe-mock
```

  证据: local Homebrew formula metadata

### Linux

- zypper (92%):

```sh
sudo zypper install stripe-mock
```

  证据: openSUSE Tumbleweed package metadata: stripe-mock from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:stripe-mock
- **软件包管理器:** Homebrew
- **版本:** 0.202.0
- **来源摘要:** Mock HTTP server that responds like the real Stripe API
- **主页:** <https://github.com/stripe/stripe-mock>
- **仓库:** <https://github.com/stripe/stripe-mock>
- **最后更新:** 2026-07-26T04:03:47+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- stripe-mock (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.202.0
## 项目历史与用法

stripe-mock is Stripe's official mock HTTP server for basic sanity checks against the Stripe API shape. It is used in CLI and package-manager contexts as a local binary or service that lets SDKs and integration tests validate request paths and parameters without calling the live Stripe API.

### 项目历史

Stripe's README says the project was first released in 2017 and that its original ambition was broader: returning responses that were realistic as well as type-correct. The same source explains that the scope has since narrowed; stripe-mock is deliberately stateless, hardcoded, and aimed at basic validation rather than full API behavior simulation.

The project is generated from Stripe's OpenAPI specification, which keeps the mock aligned with the latest methods, resources, and fields. That makes it part of Stripe's broader API tooling pipeline rather than a hand-maintained fake service.

### 采用历史

Stripe documents use of stripe-mock inside server-side SDK test suites such as stripe-ruby and stripe-go. Package availability in the input shows distribution through Homebrew and zypper, while the official README also documents release downloads, Docker usage, and a Homebrew service.

### 使用方式

Common usage is to start the `stripe-mock` server locally, then run tests or sample requests against its HTTP and HTTPS ports. The README also documents automatic port selection, Unix socket mode, Docker execution, and Homebrew service management.

### 为什么软件包爱好者会关心

Package maintainers care about stripe-mock because it turns a remote payments API into a reproducible local fixture for SDK testing. It is intentionally not a full emulator, but its OpenAPI-driven route and schema validation make it useful for packaging, CI, and client-library smoke tests.

### 时间线

- 2017: Stripe first released stripe-mock.
- Current: Stripe documents a narrowed scope focused on stateless basic sanity checks backed by the Stripe OpenAPI specification.

### Related projects

- Stripe OpenAPI specification, Stripe server-side SDKs such as stripe-ruby and stripe-go, Docker images, Homebrew services, and playback-testing tools such as VCR are documented adjacent points in the official README.

### 来源

- <https://github.com/stripe/stripe-mock#readme>
- source_facts.description
- source_facts.package-manager


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service

## 其他软件包管理器记录

- zypper - stripe-mock - 0.201.0-1.3: normalized package name match | openSUSE Tumbleweed package metadata: stripe-mock from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Mock HTTP server based on the real Stripe API | https://github.com/stripe/stripe-mock


## Combined YAML source

View the package source record on GitHub. [combined/stripe-mock.yml](https://github.com/mxcl/pkgdb/blob/main/combined/stripe-mock.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
