#rubens-nobre_code
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/1215110767763005561
📝 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.
- rubens-nobre_code, 1 hour ago, 33 messages
- rubens-nobre_code, 2 days ago, 22 messages
- rubens_card-3ds, 5 days ago, 110 messages
Hi Orakaro.
Hi, yes the resend webook feature only resend the “snapshot” of the event at the previous time. We don’t rebuild it with latest data. It’s to avoid discrepancies when merchant need to deal with their server downtime and backfill
ok. great..
But just let me know.
To fix a wrong behaviour, I add some metadata to the price. ok?
Now every customer.subscription... event
will bring the price.metadata?
It should. You can test in Test mode
can you confirm the path on object for price.metadata?
is it:
data.object.items.data[0].price.metadata
???
looks ok but you can look at API References or just inspect the returning object
do you have a link for api reference for customer.subscription events?
I can't find any reference to the price object construction.
the only thing I have is the current event I have, but the metadata is missing. cus it's a old failed event.
can you check, If the path I show you:
data.object.items.data[0].price.metadata
is the correct path were I'll find the price.metadata?
we_1OMc7iChHlHBFg3wb1fjkfjD
evt_1OrStEChHlHBFg3w2ZGkMm1r
It's the Subscription object
Yes
I'm on a rush here...
Just need to know If I can reach the recent metadata created on Price, using this object path
This way next events wont fail.
Alright, have you looked at the object inside the event? It's a Subscription which you can see the items.data as an array
inside there you have each Subscription Item which has the price object
It doesn't have metadata, but I guess you set metadata after that event?
Exactly...
Just need to know it 'That's the place'
where metadata will retunr
Yep you set it on Mar 7. The event was on Mar 6
I trigger it mannualy... just trying to fix.
All the events generated after Mar 7 should have it
but I only set a Retry... for a failed event. is not a new event
All I need to know is if the price metadatas, will return into this path:
data.object.items.data[0].price.metadata
Can you confirm this? or am I wrong?
No it won't, because you are just receiving the snapshot of it generated on Mar 6, which is before you set the metada
I Wanna know if in the future events.
the price metadata will live at this path...
only in future events
data.object.items.data[0].price.metadata
Should be yes
You can test it in Test mode
using Test clock
you can simulate time flies to future and look at the generated event
mmmm can I ?
there documentation about that?
simulate an event? How to do that?
from dashboard?
or using code?
You can just search on docs.stripe.com, but here you are: https://docs.stripe.com/billing/testing/test-clocks
ok. man...
If you can help me to confirm a simple object path... then I'll read everything and lost a few conversions until there's tested and implemented.
Thanks anyway
@warm jetty looks like you're in the wrong place, this thread is for someone else's question.
- If you have your own thread please chat there.
- If you have a question or a followup to a closed thread use one of the buttons in https://discord.com/channels/841573134531821608/842637025524842496 to get help (we don't reopen closed threads).
Note that posting inappropriate messages in other people's threads is against the rules. No worries if this was just an honest mistake, but anyone who violates the rules multiple times will be removed from this server.
data.object.items.data[0].price.metadata looks ok @uneven loom
But you should rely on yourself inspecting the object and testing, not just confirmation from someone else
I know. just need to give a fast shot.
Thank you.
In this meatime, I'll do all homework and test...
Thank you @river matrix
np and good luck!