Exporting completed order with a captured amount
We have a customer that has a webshop with integration to the DIBS payment service. DIBS payment is the only payment alternative.
We now have a case where an order is marked as completed (OrderComplete = True), but without a DIBS payment id (OrderTransactionNumber is null).
The capture state of the order is "Not supported". I suppose DIBS rejected the payment for a reason.
The orders are exported using the Order Provider with the following settings:
Export not yet exported Orders = True
Only export orders without externalId = True
Do not export carts = True
Order state after export: Leave unchanged
On the EcomOrders source table I have one conditional:
OrderComplete = 1
The export job exported the mentioned order and passed it to ERP for further processing, which is not what we expected.
What is the correct/preferred way of only exporting completed orders that have reserved the amount at DIBS?