#Anatole Callies

1 messages · Page 1 of 1 (latest)

raven nexusBOT
nova ridge
#

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?

winged lava
#

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

nova ridge
#

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?

winged lava
#

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 ?

nova ridge
#

Are you using PaymentIntents or Charges API?

winged lava
#

I believe PaymentIntents, even though I do receive charge events correctly

nova ridge
#

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

winged lava
#

Perfect ! Thanks @nova ridge