#akashpatil7596_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/1227112244475727882
đ 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.
- akashpatil7596_webhooks, 14 hours ago, 54 messages
- akashpatil7596_api, 3 days ago, 23 messages
- akash_subscription-cancellation, 3 days ago, 24 messages
- akash_invoice-upcoming, 3 days ago, 11 messages
- akashpatil7596_api, 4 days ago, 35 messages
- akashpatil7596_api, 4 days ago, 37 messages
and 9 more
No assign me someone
Hi there, can you share with me the event ID?
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
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.
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?
Yes you are right
And when subscription upgrades or downgrades there will be no default_payment_method in previous attributes, for sure?
Yes you are right
Hm let me check
Thank you