#Pravin-ACH
1 messages · Page 1 of 1 (latest)
as per document , if user requests for refund for payment which happened through ACH i.e. using charge api. we will get some webhook event for refund status
charge.refund.update is the event will trigger
i want to see what is the payload of this eevent
and how will i trigger this event for test account
Have you tried refunding an ACH payment in test mode?
yes
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
@vague fiber there?
So if I understand correctly you would like this refund to change status so you can receive the charge.refund.updated event?
Sorry Discord is busy, give me a few more minutes.
sure
I think the refund should just update async from pending to succeeded after a few minutes, you shouldn’t need to force it. When using the current ACH integration, that’s what happens when I test it.
But here you used the old ACH integration, so I'm not sure how it works exactly.
the payload will be arefund object. you can find one in the documentation here: https://stripe.com/docs/api/refunds/object
let me check
i don’t this this will be payload of webhook event
we receives event something like below
Can you share that event ID please evt_xxx
evt_3KskS9PDxG8jcaDN0NGU1gyE
That's a charge.succeeded event, I thought you were working with charge.refund.updated?
yes yes i am working on charge.refund.updated only
Then how is that event payload relevant?
above is just example how event should be
the reference link you sent not seems relevant
As stated by @vague fiber , the charge.refund.updated event payload will include the Refund object itself
you mean in my example, everything under data.object is charge data?
if yes, it should be same case for refund as well
correct me if i am wrong
Yes, that is a Charge object
In the case of charge.refund.updated events, data.object would be a Refund object: https://stripe.com/docs/api/refunds/object
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Np!
is there any way to generate charge.refund.updated on stripe test account?
Yep, you can test using this card: https://stripe.com/docs/testing#refunds (https://stripe.com/docs/testing#refunds)
The charge succeeds. If you initiate a refund, its status begins as succeeded. Some time later, its status transitions to failed and sends a charge.refund.updated webhook event.
So you'd create a payment with that card, then refund it
Not sure it's possible to simulate specifically for ACH unfortunately
ok np