#merino-invoice-charge

1 messages · Page 1 of 1 (latest)

forest coralBOT
dapper void
#

merino-invoice-charge

exotic widget
#

Hey koopajah how are you mate?

dapper void
#

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!

exotic widget
#

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

dapper void
#

yep!

exotic widget
#

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

dapper void
#

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

exotic widget
#

Yeah that's because I'm trying to set up everything I possibly need to listen, store and work on

dapper void
#

yeah but that's my point, it's fine to listen to all those and iterate as you go

exotic widget
#

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

dapper void
#

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

exotic widget
#

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

dapper void
exotic widget
#

Ok, I'll read this doc you sent me, if I have any doubts I'll come aroung

dapper void
#

awesome!

exotic widget
#

But I'm guessing you helped me a lot alredy

#

Thanks again dude! Have a good day