Milan Pavlik
fc1ca336f7
[stripe] Re-use constants for event types ( #17161 )
2023-04-12 09:20:52 +02:00
Milan Pavlik
c0cd571e78
[usage] Add OnChargeDispute rpc definition ( #17036 )
...
* [usage] Add OnChargeDispute rpc definition
* [public-api] Setup handler for charge.dispute.created (#17034 )
* [public-api] Setup handler for charge.dispute.created
* fix
* fix
* fix
2023-03-27 15:59:25 +02:00
Christian Weichel
478a75e744
Switch license to AGPL
2022-12-08 13:05:19 -03:00
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