#harishkumarshopism_webhooks
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.
- harishkumarshopism_webhooks, 22 hours ago, 12 messages
- harishkumarshopism_api, 4 days ago, 5 messages
- harishkumarshopism_api, 5 days ago, 4 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/1245233461615394827
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there, did you set the metadata on the invoice? what's the invoice ID?
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
Hmm, I don't quite understand your question, what do you want to clarify?
i create one checkout session. after checkout session i get invoice id. if i update invoice metadata. this metadata reflect on next invoices create
Is this what you want to achieve? i.e., attach a metadata on invoices generated by a subscription?
yes
next subscription due invoice create webhook. i need previous invoice metadata on new invoice metadata.
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.