code-corps / code-corps/code-corps-api

Document setting up manual Stripe webbhook testing using Ultrahook

未关闭
#621 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
documentation needs clarification
主要语言
Elixir
星标
234
派生
82
PR 合并指标
30 天内没有已合并 PR

描述

# Problem

One of the features of our API is handling of stripe events via webhooks.

Basically, when one of many stripe events occurs, they hit one of our two endpoints depending on the event type:

```Elixir
scope "/", CodeCorps, host: "api." do
pipe_through [:logging, :stripe_webhooks]

post "/webhooks/stripe/connect", StripeConnectEventsController, :create
post "/webhooks/stripe/platform", StripePlatformEventsController, :create
end
```

The Stripe account dashboard allows sending test events, on test endpoints, but these can't be localhost, so in order to test them in development, we need something like ultrahook, which provides as a quick passthrough subdomain that hits our localhost http://www.ultrahook.com/

We need to write documentation on how to set this up so it hits our proper endpoint locally, if in need of manual testing.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。