Skip to content
PayPal sandbox only. No real money moves anywhere on this site.

When a grocery item is out of stock, the swap should be safe to eat and fair to pay for.

SwapSafe is for small grocers who pack online orders by hand. The shopper's basket is held with a PayPal authorization. A vision model reads the label of each proposed substitute, code applies the shopper's allergy and diet rules, the shopper answers line by line, and PayPal captures only the final amount.

How one order moves

  1. Step 1

    The basket is held, not charged

    The shopper approves once in PayPal. An Orders v2 order with intent AUTHORIZE holds the estimate.

  2. Step 2

    An item is out of stock

    The picker chooses a substitute and photographs its label. A vision model reads the label and quotes what it says.

  3. Step 3

    Code checks the shopper's rules

    Allergens from the label are added to the shop's own data. A conflict blocks the swap. The price is never above the item that was ordered.

  4. Step 4

    The shopper answers each swap

    Accept or decline per line, with the photo and the reasons in front of them.

  5. Step 5

    PayPal captures only what was agreed

    After the shop approves, the server re-checks the approval record and sends one final capture. PayPal releases the rest of the hold.

What the model cannot do

  • It never sets or changes an amount. Its output has no amount field.
  • It can add an allergen warning to the shop's data. It cannot remove one.
  • It cannot capture, void or refund. Those run only after a person approves and the server re-checks the approval.
  • Text printed inside a photo is treated as data.