#megabigtime
1 messages · Page 1 of 1 (latest)
amount_received will start as 0 before the intent has actually charged some funds. Also with flows like separate auth and capture you can choose to only capture partial amounts so they would differ then as well
Basically amount is how much you want to charge (or the amount you want to hold) and amount_received is the amount of funds you actually charged after you went through the full process of charging your customer
Ok, cool. I think that makes sense, thanks. I'm building a sale/revenue tracking app, ex: I want to know how much money the business made this month — sounds like I'd want to use amount_received within the payment_intent.succeeded event?
Yes, that would be a great way to track the actual amount that was captured through payment intents
Awesome, thanks! And I suppose if I wanted to break that amount into revenue vs taxes, I'd need to fetch the associated Invoice?
I believe so, I don't think the payment intent has tax info from the invoice but I will double check
Actually, maybe I should listen for the invoice.paid webhook instead.