#linqisnice_best-practices
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1222670931730628763
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- linqisnice_docs, 2 hours ago, 32 messages
- linqisnice_best-practices, 5 hours ago, 24 messages
- linqisnice_best-practices, 7 hours ago, 13 messages
- linqisnice_docs, 12 hours ago, 21 messages
- linqisnice_docs, 1 day ago, 64 messages
- linqisnice_best-practices, 1 day ago, 9 messages
and 6 more
Basically, I need a way to relate a session to an order in my system, so metadata seems appropriate. But I have both checkout session (embedded) and payment link, and it doesnt seem like the session is yet created when you create the payment link and thus you cant attach the session metadata to it
or is there some other way to do this?
Hi, you would need to set the metadata on both of the of the objects separately. However, depending on what your're trying to do, you can set the metadat on the Payment Intent, https://docs.stripe.com/api/payment_links/payment_links/create#create_payment_link-payment_intent_data-metadata when you create the Payment Link.
So then Id only need to check paymentintent? As there will always be a paymentintent present?
Yes, you can check the metadata on the PaymentIntent.
alright great to know, thanks!