#alex_
1 messages · Page 1 of 1 (latest)
Well, I'd like all the recurring payments to have the same metadata, but I'm not sure it's doable
Unfortunately there isn't really a way to set that metadata on the payment intent directly. One thing that you can do is listen for invoice.paid events, the Invoice will have a line item related to the subscription, and that line item will have the subscription's metadata. So you can check that line item's metadata and set it on the Invoice's PaymentIntent
Unfortunately there is not a setting for that
Quick question, does this exported report have an invoice column?
An easier way to check if the payment was from a subscription or not may just be to check if that column is populated if it exists
Yes, that's currently the way we're doing it, but it's a bit too implicit for the people that will process it
Thanks for your quick response!
Of course, always happy to help. Yeah, in that case I think listening for a webhook event and setting the metadata from there would be the best way to have it show up on the report
Alright, thanks !