stripity-stripe
1,080
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Elixir
语言
—
创建时间
最近更新
项目能做什么
为 Elixir 语言打造的 Stripe API 客户端库。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Stripe for Elixir
An Elixir library for working with [Stripe](https://stripe.com/).
[](https://hex.pm/packages/stripity_stripe) [](https://hex.pm/packages/stripity_stripe)
## 2.x.x status
[](https://hexdocs.pm/stripity_stripe) [](https://inch-ci.org/github/beam-community/stripity_stripe?branch=main) [](https://coveralls.io/github/beam-community/stripity_stripe?branch=main)
# Which version should I use?
Below is a list of which Stripe API version recent releases of Stripe Elixir. It only indicates the API version being called, not necessarily its compatibility. See the [Stripe API Upgrades page](https://stripe.com/docs/upgrades) for more details.
Starting with stripity_stripe version 2.5.0, you can specify the Stripe API Version to use for a specific request by including the `:api_version` option. Note that while this will use a specific Stripe API Version to make the request, the library will still expect a response matching its corresponding default Stripe API Version. See the [Shared Options documentation](https://hexdocs.pm/stripity_stripe/2.17.2/Stripe.html#module-shared-options) for more details.
| `:stripity_stripe` | Stripe API Version |
| ------------------ | ------------------ |
| `2.0.x` | `2018-02-28` |
| `2.1.0 - 2.2.0` | `2018-05-21` |
| `2.2.2` | `2018-08-23` |
| `2.2.3 - 2.3.0` | `2018-11-08` |
| `2.4.0 - 2.7.0` | `2019-05-16` |
| `master` | `2019-10-17` |
# Documentation
- [Latest HexDocs](https://hexdocs.pm/stripity_stripe/)
## Installation
Install the dependency by version:
```elixir
{:stripity_stripe, "~> 3.3"}
```
Or by commit reference:
```elixir
{:stripity_stripe, git: "https://github.com/beam-community/stripity_stripe", ref: "017d7ecdb5aeadccc03986c02396791079178ba2"}
```
Next, add to your applications:
_Not necessary if using elixir >= 1.4_
```elixir
defp application do
[applications: [:stripity_stripe]]
end
```
## Configuration
To make API calls, it is necessary to configure your Stripe secret key.
```elixir
import Config
config :stripity_stripe, api_key: System.get_env("STRIPE_SECRET")
# OR
config :stripity_stripe, api_key: "YOUR SECRET KEY"
```
It's possible to use a function or a tuple to resolve the secret:
```elixir
config :stripity_stripe, api_key: {MyApp.Secrets, :stripe_secret, []}
# OR
config :stripity_stripe, api_key: fn -> System.get_env("STRIPE_SECRET") end
```
Moreover, if you are using Poison instead of Jason, you can configure the library to use Poison like so:
```elixir
config :stripity_stripe, json_
阅读完整原文
项目深度分析 AI 生成
Phoenix SaaS 商业化启动套件 (Boilerplate)
| 产品构想 | 基于Phoenix LiveView与stripity-stripe构建开箱即用的SaaS起步模板,内置用户认证、Stripe订阅计划管理、Customer Portal和Webhook处理机制。 |
| 核心功能 | Stripe Checkout集成、多阶梯订阅管理、开箱即用的LiveView界面、Webhook自动落库与幂等处理、用户权限控制。 |
| 目标用户 | 准备开发新SaaS产品的Elixir/Phoenix独立开发者和小型团队。 |
| 难度/周期 | 中等 · 1 - 2 个月 · 成本:低(主要为开发时间成本,需自备Stripe测试账号与文档站点托管) |
| 收费模式 | 一次性买断授权销售源码(仿照ShipFast模式),提供终身更新或付费工单支持。 |
| 竞争风险 | Elixir开发者群体相对较小,市场总体容量有限;需持续维护依赖版本更新。 |
| 依据 | 数据支持的判断 |
Stripe Webhook 可靠投递与死信重试中间件 (Hex包/组件)
| 产品构想 | 针对使用stripity-stripe的系统,提供处理Webhook事件的生产级开箱即用插件,内置Oban后台任务支持、事件幂等性校验、防重放攻击与失败重试告警。 |
| 核心功能 | 基于Oban的分布式Webhook分发、签名自动校验、重复事件自动去重、失败事件死信队列与Slack告警集成。 |
| 目标用户 | 处理高频交易、对支付数据一致性要求极高的Elixir应用维护团队。 |
| 难度/周期 | 中等 · 2 - 4 周 · 成本:极低(纯代码逻辑与测试套件开发) |
| 收费模式 | 核心开源,高级功能(企业级告警、复杂重试策略、多租户多Stripe账号路由)采用商业许可证(双许可模式)。 |
| 竞争风险 | 资深Elixir团队通常倾向于自行基于Oban实现,付费意愿存在不确定性。 |
| 依据 | AI推测 |
Stripe 与 Elixir 生态计费系统定制咨询与架构审计服务
| 产品构想 | 为采用Elixir并正在迁移或接入Stripe的企业提供合规性审查、API升级兼容性迁移、支付并发优化及故障排查服务。 |
| 核心功能 | API升级迁移方案设计、计费状态与本地DB一致性审计、高并发支付通道限流与降级策略支持。 |
| 目标用户 | 业务增长迅速、正面临Stripe API版本升级或出现掉单/对账问题的中型Elixir技术团队。 |
| 难度/周期 | 低至中等(依赖深厚的技术经验) · 即时开展(按项目或按天计费) · 成本:极低(纯专家工时) |
| 收费模式 | 按人天或按迁移项目收取技术咨询费。 |
| 竞争风险 | 客源寻找周期长,依赖个人在Elixir社区内的影响力与技术声誉。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| nicrioux/stripity-connect-phoenix | 中文介绍暂未生成 Bare minimum oauth demo of Stripe Connect feature in stripit |
8 | Elixir |
| danielberkompas/stripity_stripe | 中文介绍暂未生成 | 2 | Elixir |
| TasfiqulGhani/AndroidStripeDemo | 中文介绍暂未生成 Strip card integration example.Its completely ready app you |
2 | Java |
| awkward/stripity_stripe | 中文介绍暂未生成 | 1 | Elixir |
| joinpapa/stripity_stripe | 中文介绍暂未生成 | 1 | Elixir |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 37 个 Release |
| 社区活跃 | Star 1,080 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。