#151_webhooks
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/1372119110774820915
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- 151_webhooks, 18 minutes ago, 18 messages
- 151_webhooks, 2 hours ago, 4 messages
- 151_webhooks, 22 hours ago, 29 messages
It can be understood as: passing data to the receiving end through webhooks
What are 'custom parameters'?
Which properties are missing from the Price object and what is the 'receiving end'?
Event receiving end: For example: {"request":{"id":"req_l1jkRyzYbEohW1","idempotency_key":"546535b7-263a-40e3-b743-1dd0862f62e3"},"data":{"object":{"id":"price_1QphH0Ag2QOnAGt7PMT5NQby","object":"price","active":true,"billing_scheme":"per_unit","created":1738895190,"currency":"hkd","livemode":false,"metadata":{},"nickname":"CMP1710141042517","product":"prod_Rj9aCpGqg7KwFH","recu rring":{"interval":"month","interval_count":3,"usage_type":"licensed"},"tax_behavior":"inclusive","type":"recurring","unit_amount":12604,"unit_amount_decimal":"12604"},"previous_ attributes":{}},"livemode":false,"created":1747209798,"id":"evt_1ROaHaAg2QOnAGt7ijyiIaua","api_version":"2023-10-16","type":"price.updated","pending_webhooks":3,"object":"event"}
OK, so which properties are missing/wrong in that payload?
Transparent transmission refers to: when modifying the price on the management platform, which parameters can be filled in, so that the event receiver can also receive it. For example: when I fill in the price, fill in any value in "nickname", and it can be received at the event receiver. Is there a better way?
I want to fill in my own product id when editing the price in the management platform (any method is fine), and then on the event receiving end, I can get price_id and my own product id.
Sorry, I'm struggling to understand what the problem is
Sounds like you maybe need to use metdata parameter?
You can attach custom key/values to the Price object there: https://docs.stripe.com/metadata
How do I add metadata in the management platform?
That's not supported, you'd need to use the API
Currently we are operating prices on the management platform because it is convenient and clear. Is there any alternative to metadata?
To attach arbitrary data to an object? Not really, no
I have tried filling in my own product ID in "Price Description" and passing the value to the event receiver (similar to Metadata), but it is not very standardized. I am looking for a better solution.
Not sure what else to say beyond what I've already explained
The scenario is: we want to associate our own product id with price_id so that we can correctly enter price_id when placing an order
This is exactly what metadata is for, but unfortunately you can set it via the Dashboard (which is surprising, tbh)