#jasonkuhrt_api
1 messages ยท Page 1 of 1 (latest)
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.
- jasonkuhrt_api, 5 days ago, 6 messages
- jasonkuhrt_api, 6 days ago, 21 messages
๐ 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/1220068452111356044
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, where do you want to see the metadata? If you want to see the metadata on the Payment intent, you would need to pass it here: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-payment_intent_data-metadata.
Hey, I want the subscription line items to have metadata
How is the line item created? If you're creating the Line Item, https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-line_items-price_data-product_data-metadata when you create the Checkout Session you can use the above. If you're creating the Product first, https://docs.stripe.com/api/products/create#create_product-metadata you can set this when you create the Product.
@latent anchor line items are being created with references to existing product IDs
๐ stepping in here
@latent anchor What you linked to is not metadata on the line item, it is metadata on the price.
Hey @pastel knoll
If you want the Subscription line items to have metadata you would have to update the Subscription after the Checkout Session is completed and the Subscription is created
What are you using this metadata for exactly?
The metadata is used on the success_url side of things, to complete fulfillment (I am away of the pitfalls of redirect and better architecture with web hook but its a lot simpler with redirect for us right now).
I am reviewing our code and I think we can work with the metadata of products, ignoring metadata aspect on line items.