#CheckMate

1 messages · Page 1 of 1 (latest)

flat hillBOT
karmic thistle
#

Hi! Let me help you with this.

tardy horizon
#

Thanks. Why is there no refund.suceeded webhook

karmic thistle
#

Because there's no reliable way to track when the refund reaches the customers account.

#

You usually see "Your refund will return to your bank account within X business days" when you shop online.

tardy horizon
#

But then why is there suceeded status for refund

desert night
#

Hi! I'm taking over this thread.

tardy horizon
#

Async I see , nice

desert night
#

To keep track of refund status, this is what we recommend:

  • Listen to charge.refunded and mark the refund as successful
  • Also listen to charge.refund.updated and update the refund status accordingly if it changes
tardy horizon
#

But charges is old api right ? also in charge webhook I should parse a charge endpoint.

desert night
#

We don't recommend directly creating Charges, because indeed this is an old API. But when you use PaymentIntent, there is a Charge object involved.
And a refund is associated to a Charge, that's how it works.

#

charge.refunded and charge.refund.updated will contain a Charge object, yes.

tardy horizon
#

How do I get payment id from charge id

desert night
tardy horizon
#

😢

desert night
#

What's the issue?

tardy horizon
#

Why can't it be just sent as refund.updated ?

desert night
#

Both the Charge object and the Refund object have a payment_intent property.

tardy horizon
#

what is the difference between refund.updated and charge.refund.updated ?

desert night