Jean Pierre
d0b5b873ec
Add invalid billing address notification ( #19349 )
...
* Add webhook events
* Properly set AutomaticTax
* Use address element
* 💄
* Update susbcription on address update
* Try scroll modal
* Fix
* try fix modal scroll
* Add toast notification
* Add invalidBillingAddress column to d_b_stripe_customer
* 💄
* 💄
* Fix
* Try fix update
* Address feedback
2024-01-29 11:12:05 +02:00
Sven Efftinge
c6e90d48cc
[stripe] reconcile missing invoices ( #18810 )
2023-09-26 18:39:05 +03:00
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
aba684fda1
Test webhook invokes FinalizeInvoice
...
TestWebhookInvokesFinalizeInvoiceRPC ensures that when the webhook is
hit with a `invoice.finalized` event, the `FinalizeInvoice` method on
the billing service is invoked with the invoice id from the event
payload.
2022-08-10 15:55:56 +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
03d6f19013
Send valid payloads for stripe events
...
Add a minimal Stripe event payload for an `invoice.finalized` event.
Ensure all tests send event payloads. The only event type of interest
for the webhook is `invoice.finalized` so other event types can have
empty payloads.
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