#Pravin-ACH

1 messages · Page 1 of 1 (latest)

vague fiber
#

Hi! What is the issue exactly?

gusty oar
#

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

vague fiber
#

Have you tried refunding an ACH payment in test mode?

gusty oar
#

yes

#

@vague fiber there?

vague fiber
#

So if I understand correctly you would like this refund to change status so you can receive the charge.refund.updated event?

gusty oar
#

correct

#

any luck?

#

@vague fiber

vague fiber
#

Sorry Discord is busy, give me a few more minutes.

gusty oar
#

sure

vague fiber
#

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.

gusty oar
#

i want to see payload for the event charge.refund.update

#

do you have that?

vague fiber
gusty oar
#

let me check

#

i don’t this this will be payload of webhook event

#

we receives event something like below

tall tundra
#

Can you share that event ID please evt_xxx

gusty oar
#

evt_3KskS9PDxG8jcaDN0NGU1gyE

tall tundra
#

That's a charge.succeeded event, I thought you were working with charge.refund.updated?

gusty oar
#

yes yes i am working on charge.refund.updated only

tall tundra
#

Then how is that event payload relevant?

gusty oar
#

above is just example how event should be

#

the reference link you sent not seems relevant

tall tundra
#

As stated by @vague fiber , the charge.refund.updated event payload will include the Refund object itself

gusty oar
#

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

tall tundra
gusty oar
#

Awesome , that’s what i want

#

thank you

tall tundra
#

Np!

gusty oar
#

is there any way to generate charge.refund.updated on stripe test account?

tall tundra
#

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.

Simulate payments to test your integration.

#

So you'd create a payment with that card, then refund it

gusty oar
#

if want it for ach payment

#

i think thats ok

#

ill generate for card atleast

tall tundra
#

Not sure it's possible to simulate specifically for ACH unfortunately

gusty oar
#

ok np