#nazar_unexpected
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/1215299135138304042
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
To clarify -- you want to issue a partial refund if the Charge was using a Klarna PaymentMethod?
yes
Okay so you want to look at the payment_method_details for the Charge: https://docs.stripe.com/api/charges/object#charge_object-payment_method_details
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
That will indicate which type of payment method, then you create your refund accordingly
It's a bit different Klarna is payment method.
BNPL is an payment option that lives in this payment option
this doc doesn't answer my question at all
are you human or bot?
I'm human. How does it not answer your question at all. Have you retrieved a test mode Klarna Charge and see what you get back in the API response?
How can we check what buyer has paid to Klarna using payment_method_details
Basically, to proceed with partial refunds we need to request info from Klarna API what has been paid by buyer and then we can understand what amount for partial refund can be refunded.
Maybe it's a bit obvious but for us. It doesn't make sense
Looking up response one sec
When Klarna is used as the PaymentMethod then the payment_method_details.klarna hash will be populated: https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-klarna
So that indicates that Klarna was indeed used for payment
And you can then proceed with whatever you want to do on your end
Generally you don't work directly with Klarna's API at all as we take care of that for you.
But perhaps you want to do something outside of Stripe in that sense
Imagine you have a payment for 1000
Payer has paid only 250 USD
But seller wants to refund 500 - since for seller everything is paid. In your doc you mention logic about partial refunds that everything is based on whatever buyer has paid.
If the partial refund is greater than the remaining balance of the order, Klarna deducts the refund amount from the outstanding balance and returns the difference.
If the partial refund is less than the remaining balance of the order, Klarna deducts the amount from the outstanding balance and spreads refunds evenly across the remaining payments
Still don't really know what you mean by that... we discuss how Klarna Refunds work here: https://docs.stripe.com/payments/klarna#refunds which I'm guessing is what you are referring to?
When you say:
But seller wants to refund 500 - since for seller everything is paid.
Do you mean you are already transferring a full amount to your Connected Account?
we are sting everything in playground
testing*
we tried to do partial refunds for klarna different options and it doesn't work
in other words how can we do partial refunds for different payment options within Klarna suite?
What does "doesn't work" mean?
Like you can see above that it is pay_in_installments... so you can use that to set the amount of the refund if you want to do a partial refund.
one sec looking for the log of order that can't be processed by partial refunds
req_CjDtnVwq5c5cMU
That is a successful refund request ๐
one sec
it's not that
pi_3Orh35F71JvGfDnd2gytjvH6
can you please have a look at this one
but i see it's processed
That had a successful refund as well: https://dashboard.stripe.com/test/logs/req_yDTg5YjfLAgUpo
Yes, it was time. Then, I beg your pardon for wasting your time. You build super fast refund API for the rest of cases.
On your side it's working.
I see issue on our side. It doesn't update on our side.
We don't issue new order rate and don't create new transfer with new invoice.
Gotcha, the Klarna refund is async
Sorry again!
No worries