#rock_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/1400713155033825302
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello!
1- How to test them in test mode?
Answer: There is no way to test this now.
2- Will it also provide me info for all the stored cards of users and not just default, How to distinguish?
This would apply to all cards.
Ok Got it for the #1 here
For #2. How to ditinguish if the card is the primary defualt card or some secondary card added by the user?
There can be multiple cards added by the uses but stripe charges the default card, does it also share some info regarding this in the event?
are you asking on the two events mentioned, payment_method.automatically_updated and customer.source.updated whether you can tell from the event if its the default card being updated?
Yes, Also can you tell are these the only events shared by stripe when they automatically update the users card?
And yes, when they do how to locate if the event is coming for the default payment method (card) or some secondary additional card.
Yes, they are the only two events emitted when an automatic update happens to a customer's card
You wont be able to tell if its a default card or not from the events emitted. You will need to perform your own checks to see whether or not its the default payment method. I am assuming you used default_payment_method to set it?
Yes right.
So everytime I receive such event I check if this is the default card or not
and that should solve this I believe
Yep
Thanks Teddy