#Anatole Callies
1 messages · Page 1 of 1 (latest)
Hi there
So when you say "used by a customer" what does that mean exactly? Every time a card is used for a payment attempt?
Are you attaching cards to Customer objects?
yes every time a card is used for a payment attempt. the customer ID to which I must link it to is contained in the metadata I inject into stripe
we don't use the customer object I believe
Ah okay
Then mostly you just want to listen for charge.succeeded and charge.failed. You only need charge.pending if you are using async payment methods.
Are you using manual capture?
Yes. And sometimes we don't capture, we cancel the pre-authorization
Then will we get an event with charge.succeeded and charge.failed in those cases ?
Are you using PaymentIntents or Charges API?
I believe PaymentIntents, even though I do receive charge events correctly
Yep okay then with PaymentIntents you will still receive a charge.succeeded event when the authorization is successful.
So you don't need to worry about the other events and can just rely on that
Perfect ! Thanks @nova ridge