#rikz_api
1 messages ¡ Page 1 of 1 (latest)
đ 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.
Hello
Can you share the failed request ID?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_HNroPjAlPn41Sf
Hmm I suspect since the PaymentIntent hasn't succeeded, there's no way to refund it.
I believe you can cancel the PaymentIntent instead
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 ?
Hi, stepping in and catching up.
The reason why you're seeing this error is beacuse the payment, https://dashboard.stripe.com/test/events/evt_3Q8067CwXI9yfnGa0pPJ7hTB never went through. It was asking for authentication which was not completed. Since there is not payment, why are you attempting to refund? There is nothing to refund.
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
That is beacuse you added funds on the customer balance: https://dashboard.stripe.com/test/logs/req_E2dObBy09orKr2 using our test helper tool. You can use those funds to apply to future payments: https://docs.stripe.com/payments/bank-transfers#customer-balance.
Alternative, if the amount has not been used within 75 days, it gets returned to the customer: https://docs.stripe.com/payments/bank-transfers#customer-balance
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
I'm still testing this on my end, hang tight
No worries take your time
Ok, I tested this end to end. You're right, with automatic reconciliation, that partial funding is applied and the customer cash balance decreases. You can issue a refund, https://docs.stripe.com/payments/customer-balance/refunding#create-return-dashboard--api. The customer will receive an email to provide the bank details. Once they respond, we issue the refund.
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
Ah, my tested worked because I have additional amount left in the Cash balance. Let me see if my refund works.
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
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
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 ?
I agree with you, this is not ideal. I will share your feedback with the owning team for future product iterations.