juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.02k stars 1.19k forks source link

feat(events): add payment metadata to the payment intent events #5149

Open lsampras opened 5 days ago

lsampras commented 5 days ago

We generate payment intent events on db changes,

for this we rely on the database payment intent struct for generating a corresponding struct (KafkaPaymentIntent).

we need to add the metadata, hashed customer_email to the generated event as well.