BeforeOrderBill and repeated pre-check

Tags:

In API version V7Preview7, the notification for the order pre-check BeforeOrderBill will be generated even for repeated pre-checks.

If you need to retain the old behavior and ignore repeated pre-checks, then when upgrading the plugin to the specified or a newer version of the API, you will need to filter orders by status in the notification handler:

PluginContext.Notifications.BeforeOrderBill.Subscribe(x =>
{
    if (x.order.Status != OrderStatus.New)
        return;

    // Handling the original pre-check
});