How to handle debit for payments on order with multiple deliveries

Hi, we have a projekt that are going to use Klarna checkout V3 where we want to be able to have multiple deliveries om an order and that the customer is debited for the items as soon as they are in a delivety but not before. How can one or should one manage this in litium?

Create multiple payment into multiple payment each corresponding to a delivery on the order?

  • Same payment reference but different amounts

Any suggestion on how to handle fees for example shipping in this scenario?

Litium version: 7.6.1

It sounds like partial delivery, right? if that is the case then you can easily create partials (split the order into several deliveries) using erp connect and perform a capture for each delivery when they are delivered (e.g. when the erp updates the order)

yes we want part deliveries :slight_smile: are you saying i don’t even need to create separate payments just set the deliveries as delivered to trigger capture of only the delivered goods?

When we split the deliveries using erp connect it creates ofcourse separate payments for each partial as well so when you push the delivery to Delivered the state maching will automatically trigger a capture for the related payment to that delivery.

I managed to get the API working and it looks like it works mostly like you say but capture on payment is actually triggered when shipment created and is not waiting for delivery status delivered on delivery.

A note for any one having problem testning the shipping API. Make sure that you make order exported request before creating new shipment on a order because otherwise API just triggers capture on the payment and returns 200 OK.

Also Tracking url is not available in the API and additionalInfo in the request is just ignored.

And everything needed in body of create order request is shippingmethod and row and rows only need articlenumber and quantity.
{
“shippingMethod”: “KSS”,
“rows”: [
{
“articleNumber”: “45312”,
“quantity”: “2.0”
}
]
}

yeah, thats true, seems like create-shippment does both in one step, I thought NotifyOrderDelivered triggered the capture. In this case the erp just need to call Litium once for this action (could be both good and bad)

The API is very sensitive. If you don’t do something in a specific order it doesnt just ignored your request it do something stupid. As for capture of part payment they are not just captured directly it looks like if default delivery isn’t delivered before part payment the part payment will be captured twice and “stealing” money from default delivery causing that capture to fail. not sure if this is also a you should do it in an other order issue.

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