#cbayford_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/1227013380670361601
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Taking a look!
I see this webhook endpoint is configured to receive charge.succeeded events only. The payload for these events includes a Charge object: https://docs.stripe.com/api/charges/object
This means Everflow should be able to determine the amount
SaleAmount is not a property I'm familiar with so I'm not sure what Everflow could be referring to
correct, they are getting the "amount" value, but that is the value that includes all fees and taxes.... there is apparently another value called saleAmount that should be the price without any other fees or taxes included
is there any other value in the webhook that passes the base amount without fees or taxes?
looked over doc, dont see anything there...not sure what Everflow is referring to
I'm not sure if this is what they're referring to but, if you use Checkout, you can look at amount.subtotal: https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-amount_subtotal
I see your team does use Checkout Sessions
we use hosted checkout
Right, but, then Everflow would need to listen for Checkout Session-related events
In this case, they would need to listen for checkout.session.completed events, which contain a Session object in the payload
I recommend confirming with them if they are in fact looking to receive checkout.session.completed events, and if the property they're looking for is a Checkout Session's amount.subtotal . If this is what they need, you can update your enpoint in the Dashboard to also listen for checkout.session.completed events
ok, I will relay this to the team, thank you for your help
Sure thing!