#akashpatil7596_webhooks

1 messages ¡ Page 1 of 1 (latest)

bleak shardBOT
#

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

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

sharp vortexBOT
#

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.

valid salmon
#

No assign me someone

sharp vortexBOT
misty cape
#

Hi there, can you share with me the event ID?

valid salmon
#

evt_1P3WMhIoZDVxPDhefQMD7WUT

#

I just want something that shows the difference that this time webhook called for update payment method and this time it's called for upgrade/downgrade subscription plan

misty cape
#

Sure, if you take a look at the event object, you'll find a hash called previous_attributes, which contains the attributes that are changed.

#

If it's a event triggered by payment method change, you'll find default_payment_method in the previous_attributes hash.

valid salmon
#

Okay So If payment method changes there is only default_payment_method in previous attributes, right?

#

I can make a diff based on this? for sure?

misty cape
#

Yes you are right

valid salmon
#

And when subscription upgrades or downgrades there will be no default_payment_method in previous attributes, for sure?

misty cape
#

Yes you are right

valid salmon
#

Hm let me check

valid salmon
#

Thank you

sharp vortexBOT
valid salmon
#

Ok Thank you

#

You can close the thread now