Skip to content

Support Auto-Failing of orders #613

@taurgis

Description

@taurgis

Most projects have "auto-failing" enabled of orders to free up inventory for people not finishing their order within a certain timeframe.

In one of our projects we hade the following scenario with this setting:

  • Auto fail: 1 hour

Scenario

  1. Consumer clicks pay on the website
  2. Consumer is redirected for 3DS
  3. Consumer paid for the order, but does not return to the website (for whatever reason - closing the browser, ...)
  4. Auto fail triggers after 1 hour
  5. Notification was received 12 hours - 24 hours after the order
  6. Order remains on failed because only created orders are placed (in our version of the cartridge we had an exception- not the latest release)

Solution

Also check for the "failed" status and automatically attempt to do an "undo" (https://documentation.b2c.commercecloud.salesforce.com/DOC1/topic/com.demandware.dochelp/DWAPI/scriptapi/html/api/class_dw_order_OrderMgr.html?resultof=%22%6f%72%64%65%72%6d%67%72%22%20#dw_order_OrderMgr_undoFailOrder_Order_DetailAnchor) and attempt to place it after the undo.

There are scenario's where the product might have already been sold out, so error handling during placing the order still needs to be in place.

Likelihood of scenario

Quite small, we have not seen it happen often that a notification is sent to late.

Payment method: directEbanking

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhances an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions