#nicus_refunds

1 messages ยท Page 1 of 1 (latest)

spiral islandBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1247937201128472630

๐Ÿ“ Have more to share? Add details, code, screenshots, videos, etc. below.

dense hill
#

If you don't specify the amount, we will refund the full amount of the charge

#

Or you can specify the full amount of the chare in your code as you are doing. If we refunded less than that, that should be because your code passed that amount to us. But I can check a specific refund if you believe that that is not the case

spiral islandBOT
empty hedge
#

hey Pompey, thanks for answering.
I don't think this is the situation, since I checked that the amount I am sending on the request is the total amount of the payment (I need to send the amount, 'cause in some cases we allow clients to refund less money).

#

Let me share some logs to show the difference

#

the code was the same for the refund, but the payments were created from different workflows.

onyx trench
#

๐Ÿ‘‹ Pompey has to head out soon so I'm hopping in to take a look - give me a minute to catch up

#

For evt_3PO3ZWJ8ayGLy3oo0zzRDkXl (the transaction that didn't refund your company fee) can you clarify what company fee you're referring to? As far as I can tell you're using transfer_data on the original payment to send a portion to your connected account, and your refund is reversing that transfer as expected

spiral islandBOT
#

nicus_refunds

empty hedge
#

hi karbi, yes. Let's create an example to talk from there.

Our customer are restaurants, they charge their customer for meals.

Assuming that they pay $100 for meal, when they pay is done, we extract from the amount charged a fee for our company for our work. Let's say 2%.

So we create a Payment intente like this one:
self.stripe.PaymentIntent.create(
dict(
dict(
automatic_payment_methods=dict(
enabled=True,
),
capture_method="automatic",
),
amount=100,
currency=USD,
statement_descriptor="XXXXXX",
transfer_data=dict(
amount=98,
destination="acct_xXXXX",
),
metadata={
},
)
)

#

This is an example of the worfklow in which the refund doens't refund 100%

#

Then we send the paymentintent id to a frontend in vue.js where a component of Stripe performs the payment.

onyx trench
#

Can you clarify why you believe the company fee isn't being refunded? Are you looking at specific balance transaction that isn't lining up as you expect?

empty hedge
#

It's my assumption wrong? maybe I am not seeing the same fields

onyx trench
#

Your fee was refunded, but if you're asking about the original Stripe fee from processing the original payment that wouldn't be refunded

empty hedge
#

ok, I see, can you detailed me more why it wasn't refunded here Stripe's fee and it was on the other example?

onyx trench
#

Both of them wouldn't refund the Stripe fee - but let's back for a bit because I think we're talking past each other. What is the exact thing you're looking at (a screenshot would help) that's showing you that only 97% of the money was returned? As far as I can tell for both payments, they both had no Stripe processing fee and the transfer was full reversed

empty hedge
#

give me some minutes I

#

and I share some captures

spiral islandBOT
empty hedge
onyx trench
#

Your destination account is only being refunded 1626.39 because that's the full amount that you transferred to that account - the 1626.39 is coming from the transfer_data.amount that you specified on the Payment Intent.

To put it another way, when Payment Intent pi_3PO3ZWJ8ayGLy3oo0E5qcifp was confirmed you charged the customer 1676.70, those funds were put into your platform balance, and then 1626.39 was transferred to the connected account. When the payment was refunded we reversed the 1626.39 transfer.

empty hedge
#

so, if I want to also return 50,31 difference how should I do? Do I have to create an extra refund or do I have to add an extra param?

sharp ruin
#

The full amount was refunded back to the customer. You can see that via "amount_refunded": 167670, on the Refund object

empty hedge
#

ok, I just cheked and the amount that figures on the refund response is the 100% of the payment

#

now, I am bit confused, no Stripe's fee was payed?

sharp ruin
#

We don't have a lot of context on fees, but I know that often times platforms pay fees on a monthly cadence that's taken out of the account balance, as opposed to directly on the charge. We can't really troubleshoot that side of things though, so you can reach out to support if you want to follow up with fee questions; https://support.stripe.com/contact