Payment status Set to completed

payment seems to be set to Slutförd when delivery is created and set to status Behandlas. what are the conditions for the payment status to be set to completed?

Litium version: 8.5

Delivery must be set to Delivered.

but as you can see in the image, delivery status is not delivered.

is there something we can check?

The Completed label for the payment is visible if the full authorization amount is the same as the capture + cancel amount.

In this case the payment is probably a sales payment, i.e., a payment that transfer the money directly like Swish or Trustly, that have the capture created together when the payment is confirmed.

we have used card payment here in svea.

Payment will be set to completed when the capture amount = the authorization amount.
When shipment created then we also perform an capture, here it has been successful so the payment changed to completed.

I have now written a few tests and tested this, and it’s not when the order is set to processing that the money is being captured but when a shipment is created using Litium Connect.

So our order flow is like this:

  1. User creates an order
  2. We have a microservice located on our customers own network that fetches the orders that is set to Confirmed (We set the order to confirmed from Init if a certain condition is met, or a manual step has to be performed by our customer)
  3. The microservice does it’s magic towards the customers ERP system
  4. The microservice sets the order to Processing, which prevents the order to be exported again (At this point, the money isn’t captured in Svea yet.)
  5. The microservice creates the delivery using Litium Connect. It’s at this point that the money is captured in Svea and the order is finished, even if the shipment isn’t delivered yet. (Still in processing…)

We expected the money in Svea to be captured first when we notify that a delivery is delivered using Litium Connect, but that does not seem to be the case.

Is this really expected behaviour ?

When you notify Litium that a shipment need to be created, it actually means the shipment is ready to be shipped, and Litium is supposed to capture the money. See the steps here:
https://docs.litium.com/documentation/litium-connect/domain-areas/erp-domain/business-processes/order-fulfilment-process-main-flow

Also note that, “Shipment” object in Litium is not the “shipment” in your ERP system. Litium “Shipment” is for the order fulfilment process inside Litium, its lifecycle is based on payment processing for the shipment in your ERP system. So, to the ERP system, shipment is the actual physical shipment. In Litium the corresponding “Shipment” is used for processing the payments and making sure that the payments are collected with correct amounts corresponding to the actual shipment in ERP system.

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