You are here:
Release Resources and Reverse Payments for Failed B2B Commerce Orders
You can specify that when an order fails in your B2B store, reserved resources, including inventory reservations and coupon redemptions, are automatically released. You can also configure your store to automatically reverse payments associated with the failed order.
-
To automatically release resources:
- In the navigation sidebar, click Settings and then select Checkout.
- Go to Post-Order.
-
Enable Release reserved resources on failed orders.
With this setting enabled, inventory reservations and coupon redemptions are automatically released when an order fails.
-
To automatically reverse payments, enable the CheckoutReverseAuthEnabled permission.Note If you're using Streamlined Place Order with the Release reserved resources on failed orders setting enabled, when a customer places an order and the payment isn't confirmed by the payment gateway in time, then the order is marked as having failed. The resources reserved for the order are released. If the payment gateway confirms the payment later, then the payment isn't automatically reversed, because the order's already failed, and you could end up with orphaned payments. To identify and reverse orphaned payments, enable the Orphaned Payments sweeper job. See https://help.salesforce.com/s/articleView?id=commerce.comm_orphanedpayments.htm&language=en_US.To enable this permission, contact your Account Executive. With this permission enabled, payments for failed orders are automatically reversed.
Alternatively, use the Capture and Refund Payments from the Payment Workspace and Payment Authorization Reversal Service APIs to implement a custom process to configure your store to reverse payments for failed orders.
