#jasonkuhrt_api

1 messages ยท Page 1 of 1 (latest)

lilac islandBOT
tropic gulchBOT
#

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.

lilac islandBOT
#

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

tropic gulchBOT
latent anchor
patent lantern
#

Hey, I want the subscription line items to have metadata

latent anchor
tropic gulchBOT
patent lantern
#

@latent anchor line items are being created with references to existing product IDs

pastel knoll
#

๐Ÿ‘‹ stepping in here

patent lantern
#

@latent anchor What you linked to is not metadata on the line item, it is metadata on the price.

#

Hey @pastel knoll

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?

patent lantern
#

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.

pastel knoll
#

Why not just attach that metadata to the Checkout Session directly in that case? Or, to the Subscription via subscription_data.metadata?

#

Okay yeah, or Products

#

That works too

patent lantern
#

It'll be a more normalized approach to get it from the products, though its more API queries, it is simpler probably for us than thinking about how that data is denormalized.

#

Thanks @pastel knoll