#dbugger_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1255515167626891345
๐ Have more to share? Add details, code, screenshots, videos, etc. below.
Mmm... I set the title wrong :/
Hello
What webhook event are you listening to?
The code you've shared sets metadata on the PaymentLink object. If you're listening to checkout.sessions.* event then metadata won't show up there
Yeah that won't work. PaymentLink and PaymentIntents are separate objects. The metadata won't be copied over to the associated object.
You'd want to set the metadata under payment_intent_data.metadata instead
https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-metadata
That should add the metadata to the PaymentIntent
aaaahhh! I see
Thanks, I didnt realize that there was some other metadata parameter in the payload
Yeah, that worked. Awesome
Thanks a lot!
NP! ๐ Happy to help
๐ซ