#saad_api
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/1298275478523744318
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
When you set metadata on a Payment Link, that is propagated to the Checkout Session when created by that Payment Link, not the payment intent
https://docs.stripe.com/api/payment-link/create#create_payment_link-metadata
If you want the metadata you be applied to the payment intents created, you need to set payment_intent_data[metadata] on the Payment Link: https://docs.stripe.com/api/payment-link/create#create_payment_link-payment_intent_data-metadata
Please review here: https://docs.stripe.com/metadata#set-indirectly
Ok, one question if I am using several payment links how can we identify from the response for payments from coresponding payment links
1/ List the Checkout Sessions for that payment_intent as a filter: https://docs.stripe.com/api/checkout/sessions/list#list_checkout_sessions-payment_intent
2/ Refer to the payment_link ID on the Checkout Session: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-payment_link
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Overall, you need to consider the CHeckout Session as the primary object created by the payment link