Skip to content
  • Blog
  • About
  • Contact

Mrbarnk

  • Blog
  • About
  • Contact

AI Commerce

The customer paid, but the order still says unpaid

October 27, 2026July 22, 2026 by Bankole Emmanuel
Reconciliation checks the original payment reference and records a paid order with one fulfilment intent.

Use payment webhook reconciliation to recover paid orders after lost redirects or delayed events. Verify the original payment and make updates repeatable.

Categories AI Commerce

“Something like this, but cheaper”: build a useful product search

October 27, 2026May 20, 2026 by Bankole Emmanuel
Product search filters a reference product by style, budget and stock to return an available variant.

Build AI product search that respects budget, size and availability. Separate hard filters from ranking and test the decision flow with Node.js.

Categories AI Commerce

Your shopping assistant recommends stock you no longer have

October 27, 2026March 8, 2026 by Bankole Emmanuel
A live inventory check catches an out-of-stock search result and returns an available alternative.

Keep AI shopping assistant inventory accurate without making every lookup live. Build freshness checks and revalidate stock before committing an order.

Categories AI Commerce

Two customers buy the last item. Reserve stock without overselling.

October 27, 2026March 7, 2026 by Bankole Emmanuel
Two customer carts compete for one item, with one successful atomic reservation.

Build an inventory reservation Node.js example with conditional updates, unique request IDs and safe release. Test the last-item failure locally.

Categories AI Commerce

One seller rejects part of an order. What happens to the payment?

October 27, 2026March 22, 2025 by Bankole Emmanuel
Three seller order lines lead to accepted fulfilments and a partial refund for the rejected line.

Handle an order saga partial failure with item-level states and explicit compensation. Test partial fulfilment and one-time refund intent in Node.js.

Categories AI Commerce

The cart changed after you sent a payment link. Which price applies?

October 27, 2026February 11, 2025 by Bankole Emmanuel
A locked checkout quote remains tied to its payment link while a changed cart requires a new quote.

Use versioned checkout quotes to keep carts, discounts and payment amounts aligned. Test quote expiry and amount validation in a Node.js example.

Categories AI Commerce
© 2026 Mrbarnk • Built with GeneratePress