Bit stumped on getting metadata from Stripe. When I create the product in make i assign metadata to it. When I run it its successful and shows the metadata array. However when I have a trigger to watch for successful transactions the meta is not in that output in fact I cant get a checkout session ID, product name or anything useful. I have since included metadata when assigning the price and generating the payment link.
When you watch for successful transactions, I think you would always have the product ID. Do an extra call to get the product info from that productID.
Stripe, and many other platforms, handle events that way. They just give the entity’s ID and not immediately showing info from related entities in that same payload.
The only thing I get is Payment Intent ID which is not generated when creating the payment link so couldnt link it that way however no info about the product what so ever comes through