#freshcart_webhooks

1 messages ¡ Page 1 of 1 (latest)

heady citrusBOT
#

👋 Welcome to your new thread!

⏱️ We automatically close idle threads, which makes them read-only. Make sure you stick around to chat in realtime!

🔗 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/1211907505467301929

📝 Have more to share? You can add more detail below, including code, screenshots, videos, etc.

⏲️ 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. Thank you for your patience!

foggy streamBOT
#

Hello! We'll be with you shortly. 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.

forest dawn
#

Hi there, you can get the "customer" from "payment_method.detached" event's previous_attributes hash.

muted tide
#

Gotcha. Now when a default payment_method is detached, does it fire a customer.updated event?

forest dawn
#

Yes

#

You can try it out youself to make sure

muted tide
#

Yes, I have noticed. So, I have been playing around with detaching default payment_methods and on my backend, it is resulting in redundant processing.

#

As it is firing two events

#

Any thoughts on avoiding that?

forest dawn
#

No, you can't avoid events.

muted tide
#

Okay. Thanks.