#Giriraj

1 messages · Page 1 of 1 (latest)

golden fiberBOT
valid wyvern
lunar comet
#

Refund can only be used when the Payment Intent is captured. If Payment Intent isn't captured yet, you should cancel the Payment Intent instead.

valid wyvern
#

ok, correct. but if i have capture payment and if i need to partial refund then what to do?

lunar comet
#

The partial amount can be set in the refund request, so that only the amount in the request will be refunded

valid wyvern
#

suppose i have capture amont 800$ then i need to do below
await stripe.refunds.create({
payment_intent: paymentIntent,
amount: 400$,
})
this is correct? @lunar comet

#

i know amount is cent i just provide you example.

lunar comet
#

Yup correct, but without $ in the amount (just number alone)

valid wyvern
#

yes, thank you. let me try