#Min.K

1 messages · Page 1 of 1 (latest)

lean gateBOT
worldly holly
#

Hello,

Question 1. Are the webhook events related to Stripe Charge is legacy?

No, you can continue to use them even if you're using PaymentIntents to create payments. Charge objects are still generated as a result of a successful PaymentIntent

To clarify, using the /v1/charges API to create a payment is not recommended

#

Question 2. If the alternative to the charge.succeeded webhook event is invoice.paid, what is the alternative to the charge.refunded webhook event? I don't see any webhook events like invoice.refunded.

there isn't any alternative to the charge.refunded event

tardy rapids
#

Thank you and i have more questions.

Question 3. Can I use the charge.succeed webhook event instead of invoice.paid when delivering an item to a customer with a successful payment?

Question 4. Can I use the charge.refunded webhook event when reclaiming a product due to a payment refund?

worldly holly
#

Question 3. Can I use the charge.succeed webhook event instead of invoice.paid when delivering an item to a customer with a successful payment?

It depends - the reason why we recommend using invoice.paid is because if you have a $0 invoice or mark the invoice as paid out of band, there won't be a charge.succeeded webhook event

#

Question 4. Can I use the charge.refunded webhook event when reclaiming a product due to a payment refund?

What happens when you reclaim a product?

tardy rapids
#

The idea is that if you buy a game item and then refund it, you should get the item back.

worldly holly
#

i think that makes sense

tardy rapids
#

So, is this the direction the Stripe development team recommends?

  1. when a payment is made, the webhook event should use invoice.paid.
  2. if the payment is refunded, the webhook event should use charge.refunded.
worldly holly
#

i mean, it sounds correct to me, but as always, you should test out all your use cases throughly