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

Document setting up manual Stripe webbhook testing using Ultrahook

Ouverte
#621 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
documentation needs clarification
Langage dominant
Elixir
Étoiles
234
Forks
82
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

# 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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.