#merino-invoice-charge
1 messages · Page 1 of 1 (latest)
merino-invoice-charge
Hey koopajah how are you mate?
Hey @exotic widget ! I'm happy to help though flagging early that this server is focused on developers asking questions about their own code. Not for account support or pricing discussion!
Oh I see, I'm actually a developer
The help I need is with webhooks again lol
Last time we talked you helped to understand that I was correct to listen to both events, Payment Intent and Charges
yep!
Now I have kind of the same doubt, but regarding Invoices and Charges, I noticed some times both of them are emitted by stripe, and also they have each others id's
I mean it's really a personal choice and depends a lot on what you are trying to do
I'd personally listen mostly to Invoice Events. But you're already listen to Charge and PaymentIntent Events anyways :p
Yeah that's because I'm trying to set up everything I possibly need to listen, store and work on
yeah but that's my point, it's fine to listen to all those and iterate as you go
I see
Is there a place where I can read which events are going to happen for each action a customer does?
'Cuz sometimes I get both a charge and invoice succeeded
And some other times only invoices
Like when a customer activates a subscription for the first time
No we don't have docs like this. It really depends as to whether the Invoice has a Charge or not. Like if the Invoice is for $0 after a 100% off coupon or a trial then there's no Charge so no charge.* Events
There's a charge every time there is an amount_due > 0 then?
If this is true I have a starting point to work on alredy hehe
I mean no, because if amount due is $0.20 there's also no payment because it's below the minimum https://stripe.com/docs/currencies#minimum-and-maximum-charge-amounts
Nice, thanks
Ok, I'll read this doc you sent me, if I have any doubts I'll come aroung
awesome!