#harishkumarshopism_webhooks

1 messages ¡ Page 1 of 1 (latest)

gleaming snowBOT
delicate steepleBOT
#

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.

gleaming snowBOT
#

👋 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/1245233461615394827

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

mental pivot
#

Hi there, did you set the metadata on the invoice? what's the invoice ID?

haughty mesa
#

yes i set {cart_id:"XYZ"}. it will reflect

#

@mental pivot i didn't implement, i just clarify. if checkout session complete i update invoice.metadata. it will reflect next invoices. i create session with metadata it will not set in invoice, subscription and payment intent. so i get id's from checkout session hook. update manually

mental pivot
#

Hmm, I don't quite understand your question, what do you want to clarify?

haughty mesa
#

i create one checkout session. after checkout session i get invoice id. if i update invoice metadata. this metadata reflect on next invoices create

mental pivot
#

Is this what you want to achieve? i.e., attach a metadata on invoices generated by a subscription?

haughty mesa
#

yes

#

next subscription due invoice create webhook. i need previous invoice metadata on new invoice metadata.

mental pivot
#

Ok, I will suggest you set the metadata on the subscription instead. So that you can listen to invoice.created events, retrieve the metadatafrom the subscription, and set it on the invoice before finalizing it.