#nazar_unexpected

1 messages ยท Page 1 of 1 (latest)

median sparrowBOT
#

๐Ÿ‘‹ 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.

primal palmBOT
errant plover
#

Hello

#

To clarify -- you want to issue a partial refund if the Charge was using a Klarna PaymentMethod?

minor forum
#

yes

errant plover
#

That will indicate which type of payment method, then you create your refund accordingly

minor forum
#

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?

errant plover
#

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?

minor forum
#

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

errant plover
#

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

minor forum
#

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

errant plover
#

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?

minor forum
#

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?

errant plover
#

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.

minor forum
#

one sec looking for the log of order that can't be processed by partial refunds

#

req_CjDtnVwq5c5cMU

errant plover
#

That is a successful refund request ๐Ÿ™‚

minor forum
#

one sec

#

it's not that

#

pi_3Orh35F71JvGfDnd2gytjvH6

#

can you please have a look at this one

#

but i see it's processed

errant plover
minor forum
#

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.

errant plover
#

Gotcha, the Klarna refund is async

minor forum
#

Sorry again!

errant plover
#

No worries

minor forum
#

YES

#

I mean we get used to dirrect sync

errant plover
#

Yeah so you need wait for charge.refund.updated for Klarna refunds

#

Then you update your internal data

minor forum
#

yes

#

THank you for insane support. You are top notch. We are still noobs with Klarna. Last time Ideal was totally different.