GEWIS / sudosos-backend

SudoSOS is a Node.js-based Bar and POS system made for study association GEWIS.
https://sudosos.gewis.nl
GNU Affero General Public License v3.0
6 stars 3 forks source link

[Feature] Use Stripe metadata to filter incoming events on SudoSOS-only events #288

Closed Yoronex closed 2 months ago

Yoronex commented 2 months ago

What would you like?

When creating a PaymentIntent, we should add some identifyer to filter all incoming Stripe webhook events. GEWIS uses the same Stripe organization for multiple applications (SudoSOS, GEWISDB), so we also receive all events.

Why is this needed?

Right now, we throw a 404 if we do not know the PaymentIntent. One could argue this is a valid response, as SudoSOS does not know how to handle the PaymentIntent. However, Stripe does not like receiving 404's and wants to block us.

How could it be implemented?

No response

Other information

No response