Partial payment credit

Is it possible to do partial credit of payment with litiumpaymentprovider-addons for Klarna V3 and adyen in litium and if so how do one do that?

Litium version: 5.6.9

Is it to capture the money for a partial shipment of a given order?

We have already delivered goods and debited the customer but now they want to returns goods for some reason and we want to credit part of their payment with returned goods cost.

This is implemented in Litium 7 return management. Since you are using Litium 5, you would need to implement your own solution, and we cannot guarantee whether it would work smoothly or not.
The way to do is, to create a new order with amounts that you want to refund, and create a payment info, and copy the payment references from the original order into it. Also, the payment state should be in “paid” state. Then if you send in this order to a refund, it will work like a partial refund.

There are UI requirements and as well as return management requirements around this, which are too detailed, and also complex to implement. So, above is just kind of a hack!

You can also create a payment to the existing order, and try to refund it. However, I am not sure whether it will be as clean as creating a separate order. Creating a separate order to refund, is much cleaner, and less complex. You can use additionalOrderInfo to cross reference between them.

Sounds fairly simple :slight_smile: so essentially you create new payment with amount to credit and then credit that payment.

Yes, but best is to create a order for it, and have the payment inside that order. Use a different external order id, like Ret01_LS10007 to identify them easily. You can bypass the order total calculations, and mark the orders total as negative (so that the order total reports will be correct), but the payment totals in positive, so the refund succeeds.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.