#nicus_refunds
1 messages ยท Page 1 of 1 (latest)
๐ 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.
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
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
This is a transaction that was fully refunded:
https://dashboard.stripe.com/events/evt_3PNhGHJ8ayGLy3oo11OELIdJ
And this is (in test env) a transaction that didn't refund Stripe's fee and our company fee:
https://dashboard.stripe.com/test/events/evt_3PO3ZWJ8ayGLy3oo0zzRDkXl
the code was the same for the refund, but the payments were created from different workflows.
๐ 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
nicus_refunds
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.
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?
as far as I can see on the payment refunded, 97% of the money was returned even after I passed 100% of the amount.
https://dashboard.stripe.com/test/payments/pi_3PO3ZWJ8ayGLy3oo0E5qcifp
This was the payment, so I assumed that neither Stripe's fee and our fee was refunded.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
It's my assumption wrong? maybe I am not seeing the same fields
Your fee was refunded, but if you're asking about the original Stripe fee from processing the original payment that wouldn't be refunded
ok, I see, can you detailed me more why it wasn't refunded here Stripe's fee and it was on the other example?
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
The payment that was refunded is the image that says: 1676.70, and the refund received on the destination is the image that says 1626,39.
First one: https://dashboard.stripe.com/test/payments/pi_3PO3ZWJ8ayGLy3oo0E5qcifp
Second one: https://dashboard.stripe.com/test/connect/accounts/acct_1FPDjbBD9A55uQT0/payments/py_1PO3afBD9A55uQT0IuEFXa7z
The difference here is around 3%, is that 3% only Stripe's fee?
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.
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?
The full amount was refunded back to the customer. You can see that via "amount_refunded": 167670, on the Refund object
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?
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.