जब कोई ग्राहक चेक आउट करता है, तो सीधे खाना ऑर्डर करने की सुविधा, टिप चुनने वाला विकल्प दिखाती है. इससे खरीदार को अपने ऑर्डर के साथ टिप की रकम चुनने की सुविधा मिलती है.
अपने इन्वेंट्री डेटा फ़ीड में ServingConfig.disableTipWidget का इस्तेमाल करके, रेस्टोरेंट की सेवा के लिए टिप सिलेक्टर को छिपाया जा सकता है.
ग्रेच्युटी की डिफ़ॉल्ट रकम सेट करने का तरीका
चेकआउट के दौरान, किसी रेस्टोरेंट के लिए डिफ़ॉल्ट रूप से बतौर टिप देने के लिए रकम सेट की जा सकती है या टिप स्वीकार करने से मना किया जा सकता है. CheckoutResponseMessage में, इस्तेमाल के इन उदाहरणों का इस्तेमाल किया जा सकता है:
किसी रेस्टोरेंट में, सेवा शुल्क के तौर पर तय रकम देना ज़रूरी है
CheckoutResponseMessage में मौजूद ProposedOrder.otherItems में, तय रकम वाला GRATUITY टाइप का लाइन आइटम जोड़ें.
कोई रेस्टोरेंट, ग्राहक को टिप के लिए सुझाव देता है और उसे रकम में बदलाव करने का विकल्प देता है
CheckoutResponseMessage में मौजूद ProposedOrder.otherItems में, तय रकम वाला GRATUITY टाइप का लाइन आइटम जोड़ें. USER_MODIFIABLE की gratuityType वैल्यू के साथ, gratuityExtension को भी जोड़ना न भूलें.
[null,null,["आखिरी बार 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"]]