Sven Efftinge
1b76bca17d
[public-api] handle customer.subscription.deleted event
...
This event is fired by Stripe when a customer cancels their subscription
2022-09-16 16:24:17 +02:00
Milan Pavlik
40ab42e18a
[public-api] Validate incoming stripe webhooks
2022-08-29 13:58:14 +02:00
Andrew Farries
2d2f3e8b24
Make webhook use billingservice client
...
Construct and pass a billingservice client to the Stripe webhook so that
it can invoke the `FinalizeInvoice` RPC when the webhook is triggered.
2022-08-10 15:55:56 +02:00
Andrew Farries
5ae8777513
Extract and log invoiceId in webhook
2022-08-10 15:25:54 +02:00
Andrew Farries
c1a6f64e97
Add tests for the Stripe webhook
...
Test:
* The handler only accepts POST requests.
* The handler only responds to "invoice.finalized" events.
Add code to the handler to make those tests pass.
2022-08-05 10:12:49 -03:00
Andrew Farries
a9958a0ffa
Add Stripe webhook to public api server
2022-08-02 09:26:46 -03:00