#KarlS-webhook-events-charges
1 messages ยท Page 1 of 1 (latest)
yes
here is a sample charge
ch_3KgFDzG30Vl6ne6N0ixUvctI
I have another question too...
There are charge related events that you can listen for
For example,
https://stripe.com/docs/api/events/types#event_types-charge.captured
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok, so charge.succeded is equivalent to PAID
yup
my other question: In the list of payment on my dashboard, my invoice payment Description is: Payment for Invoice.
I missed where to change that in the API apparently..
Apologies for the delay here
Server is a little busy today
Can you send me a screenshot of the description field here?
yep
you see the lines below are the legacy Charges we are receiving with a "nice" description.
interesting... check this screenshot out
hmm interesting. can you share the invoice ID for that specific invoice?
see the hightlights in yellow, those are all Charge(s) Paid, Failed, etc..
notice the Description for the first one is still Payment for Invoice...
yep, 1 sec on that invoice id
pi_3KgFWmG30Vl6ne6N0eAkxN79
Hello! I don't believe it's possible for you to change that description at creation time, but you can update it after the fact: https://stripe.com/docs/api/payment_intents/update#update_payment_intent-description
oh, ok. I'll have a look at that. I have a webhook question if you don't mind.
Yep, what's up?
Yes, I see that if I listen for both charge.succedded and invoice.paid I am getting double logs on my side. So I guess I just need to listen to one of them.
So, in order to track succesful payment and failures I'm listening now only for charge.succeeded and charge.failed. Is that adequate?
That depends on what your business requirements are. Stripe generates a charge.succeeded event every time a Charge succeeds. Stripe also generates an invoice.paid event every time an Invoice is paid. Invoices generate Payment Intents, and Payment Intents generate Charges to facilitate payment, so every time an Invoice is paid both of those events will be generated. Which you listen to is entirely up to you.
OK, well given that I have legacy Charges coming in I'm stuck listening for charges... thanks for the detailed answer!