#cbayford_webhooks

1 messages ¡ Page 1 of 1 (latest)

whole spadeBOT
#

👋 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.

foggy kilnBOT
pine granite
#

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

broken tapir
#

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

pine granite
broken tapir
#

looking

#

looks like an api call though, not webhook

pine granite
#

I see your team does use Checkout Sessions

broken tapir
#

we use hosted checkout

pine granite
#

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

broken tapir
#

ok, I will relay this to the team, thank you for your help

pine granite
#

Sure thing!