#ikushch_best-practices

1 messages ¡ Page 1 of 1 (latest)

woven scaffoldBOT
#

👋 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/1224821894688276510

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

lime oakBOT
woven scaffoldBOT
dry zealot
#

Hi there!

main fulcrum
#

I saw how to make a refund for payment that is paid and has status 'Succeeded'

#

but I don't see how to do that for partialy paid paymnt

dry zealot
#

Invoices can't be partially funded so these invoices will remain open until the customer transfers enough funds to cover the full amount

#

So in the case above, Invoice # 2 will remain open

main fulcrum
#

does it means that in order to get $50 back uset needs to pay another $50 to cover full amount and only after that refund can be made?

dry zealot
main fulcrum
#

How long it will take until they will became customer's cash balance?

dry zealot
#

If you use manual, the funds they transfer will go to their cash balance first. You will then have to manually apply those funds to any outstanding payments

main fulcrum
#

yes, I got it

#

but in my case there are 2 invoices

#

if there would be 1 invoice and user paid $150 instead of $100 then $50 will go to overpay

#

and they will be sent back

#

but in my case I see a problem that those $50 are not counted as cash balance but as partialy paid for invoice#2

#

sorry for the confussion

#

just trying to understand how to handle that

dry zealot
#

I'm still not really following. If this is something you see in your account, do you have an ID for invoice # 2?

main fulcrum
#

here is the example

#

cash balance is $0

#

and I need to refund $100 with status partialy paid

dry zealot
#

Can you copy/paste that PaymentIntent ID?

main fulcrum
#

pi_3P1BuVFsEyguhAmS0FuLAj7M

#

thank you so much for your help!

dry zealot
#

Okay, so this is PaymentIntent is not tied to an invoice. It was created using some Node code and it was manually funded via the Dashboard

#

Looking into your options to refund this $50

main fulcrum
#

yes, my dev team was investigating bank transfers

#

and this is how we got this question

#

so what do you think?

dry zealot
#

If you want to "unapply" the $50 and return this amount to the cash balance, you can cancel the PaymentIntent or update and confirm the PaymentIntent (with the same $100) amount. Either of these actions should release those funds back to their cash balance

main fulcrum
#

that's interesting

#

how to unapply?

dry zealot
#

I don't quite follow. If you cancel PaymentIntent pi_3P1BuVFsEyguhAmS0FuLAj7M, the $50 that was used to partially fund this PaymentIntent will be returned to the customer's cash balance.

main fulcrum
#

yes but I dont see how to cancel paymentintent

dry zealot
main fulcrum
#

okay I'll check it now

#

but is it possible to do that from stripe's page?

dry zealot
#

No, it's not possible to cancel a PaymentIntent from the Dashboard

main fulcrum
#

I see

#

and once paymentintent is canceled funds will go to customer's cash balance and it will go according to the flow of returning cash balance right?

dry zealot
#

Not sure what you mean by "according to the flow of returning cash balance" but yes, once canceled, those $50 will be returned to the customer's cash balance

main fulcrum
#

that's what I meant

#

accrding to the flow that is described in the docs

#

thank you for your help!