A page showing in-stock while the feed says out-of-stock, or continued add-to-cart after sell-out, makes agents drop the whole product and users fail at checkout. Consistent availability write-back and preorder / stockout states are a data-layer issue that directly affects sales.
Define one source and write-back timing for stock state: write order status through webhook events validated with test keys for signature and replay, recording status only, no real transactions. Keep availability, preorder and stockout fields in product and merchant-listing markup on one version with visible page content, and disable add-to-cart on sell-out.
Payment-related write-back is sandbox-only — no real payments, no real orders. This article endorses no provider and issues no verdict on any single write-back.