Restaurant ordering
Menus, modifiers, pickup and delivery through Openfront Restaurant stores.
discoverRestaurantMenuslists menus. Cart buttons appear only if the store exposescreateActiveCartandaddActiveCartItem.addToCartacceptsmodifierIds,specialInstructionsandorderType(pickupordelivery, default pickup).setRestaurantFulfillmentsaves details. Pickup needs name, email and phone. Delivery also needs street, city, postal code and a two-letter country code.- Before payment the app checks for an empty cart, missing contact, missing delivery address and an unmet delivery minimum (
Restaurant cart is not ready for payment). - Pay with
initiatePaymentSessionandcompleteCart.
Restaurant requests send the cart proof in X-Restaurant-Cart-Proof and the _restaurant_cart_id cookie.