Gdy klient dokonuje płatności, kompleksowa pomoc w zamawianiu wyświetla selektor napiwków. Dzięki temu klient może wybrać kwotę napiwku, którą chce dodać do zamówienia.
Możesz ukryć selektor napiwków w przypadku usługi restauracji, korzystając z ServingConfig.disableTipWidgetw plikach danych o asortymencie.
Jak ustawić domyślną kwotę napiwku
Podczas płatności możesz ustawić domyślną kwotę napiwku lub odmówić przyjęcia napiwku za restaurację. W ramach CheckoutResponseMessage można obsługiwać te przypadki użycia:
Restauracja wymaga uiszczenia napiwku w konkretnej kwocie
W sekcji ProposedOrder.otherItems w grupie CheckoutResponseMessage dodaj element zamówienia typu GRATUITY z ustaloną kwotą.
Restauracja sugeruje napiwek i daje klientowi możliwość zmiany jego kwoty
W sekcji ProposedOrder.otherItems w ramach sekcji CheckoutResponseMessage dodaj element zamówienia typu GRATUITY o stałej kwocie. Pamiętaj też o dodaniu właściwości gratuityExtension z wartością gratuityTypeUSER_MODIFIABLE.
[null,null,["Ostatnia aktualizacja: 2024-11-26 UTC."],[[["Ordering End-to-End displays a tip selector during checkout, allowing customers to add gratuity to their order, which is sent within the `SubmitOrderRequestMessage`."],["Restaurants can hide the tip selector using the `ServingConfig.disableTipWidget` in their inventory data feeds."],["Restaurants can set a fixed gratuity amount or a suggested gratuity amount that users can modify through `CheckoutResponseMessage`."],["Restaurants can refuse gratuity altogether by including a `GRATUITY` line item with a blank amount in the `CheckoutResponseMessage`."]]],["During checkout, the Ordering End-to-End system displays a tip selector, allowing customers to choose a gratuity amount. This amount is sent as a `GRATUITY` `LineItem` in the `SubmitOrderRequestMessage`. The tip selector can be hidden using `ServingConfig.disableTipWidget`. Restaurants can set a fixed gratuity, suggest a modifiable gratuity using `USER_MODIFIABLE`, or disable gratuity by providing a blank amount in `ProposedOrder.otherItems` within `CheckoutResponseMessage`. These options are implemented with the type `GRATUITY` in the `LineItem`.\n"]]