#dbugger_code

1 messages ยท Page 1 of 1 (latest)

lavish crescentBOT
#

๐Ÿ‘‹ 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.

junior mango
#

Mmm... I set the title wrong :/

sharp pine
#

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

junior mango
#

1 moment, checking it out

#

payment_intent.succeeded

sharp pine
#

Yeah that won't work. PaymentLink and PaymentIntents are separate objects. The metadata won't be copied over to the associated object.

junior mango
#

What event should I use?

#

("invoice" is a model of my platform)

sharp pine
junior mango
#

aaaahhh! I see

#

Thanks, I didnt realize that there was some other metadata parameter in the payload

#

Yeah, that worked. Awesome

#

Thanks a lot!

sharp pine
#

NP! ๐Ÿ™‚ Happy to help

junior mango
#

๐Ÿซ‚