#rikz_api

1 messages ¡ Page 1 of 1 (latest)

chrome harborBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1293575471581102133

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

still shell
vital estuary
#

req_HNroPjAlPn41Sf

still shell
#

Hmm I suspect since the PaymentIntent hasn't succeeded, there's no way to refund it.
I believe you can cancel the PaymentIntent instead

chrome harborBOT
vital estuary
#

Is that a workaround or is that how we suppose to do it ?

#

So how can we refund the money to customer after cancelling it ?

wicked saffron
#

Hi, stepping in and catching up.

vital estuary
#

Payment intent is partially funded.
evt_3Q8067CwXI9yfnGa0JJJpidZ

#

I wan to refund that partially funded amount

#

If you need the use case I can explain that also
Let me know

wicked saffron
vital estuary
#

Yes I used test helper to fund the customer balance.
But when I fund the customer balance if there is any open payment intent it will automatically reconciles (Because we have enabled automatic reconciles)

#

So here when I fund the cash balance there was the PI pi_3Q8067CwXI9yfnGa0E1dRLTb

#

and it has been partially funded

#

If I check my cahs balance now there is 0 balance

wicked saffron
#

I'm still testing this on my end, hang tight

vital estuary
#

No worries take your time

wicked saffron
vital estuary
#

Inorder to issue cash balance refund there should be avaialble amount

#

Now we dont have avaialble amount in cash balance instead amount has been allocated to payment intent

#

but payment intent has been partially fun ded

#

I am looking for a way that I can refund this partial fund

wicked saffron
#

Ah, my tested worked because I have additional amount left in the Cash balance. Let me see if my refund works.

vital estuary
#

If you have aditional amount in cash balance means your payment intent should have fully paid

#

In my case my payment intent partially paid and 0 balance in cash balance

wicked saffron
#

yeah, I think this is likely a bug. I can see the same issue when you attempt to refund it.

#

further looking

#

Ok, so it it looks to be expected and the way it works is that you cancel the Payment Intent, https://docs.stripe.com/api/payment_intents/cancel. At this stage, that partial balance will go back to the customer's Cash Balance, then you can issue the refund.

#

From my testing, that works

vital estuary
#

Yes
My concern is I feel like its kind of a workaround here

#

and in our case we have to specifically handle this scenario by checking the status of PI and again do execute another API to cash balance refund

#

If the payment intent has partially funded and then we should be able to refund it.

#

According to your suggestion
we have to do several steps to complete this.
What do you think ?

wicked saffron
#

I agree with you, this is not ideal. I will share your feedback with the owning team for future product iterations.