وقتی مشتری چک میکند، Ordering End-to-End یک انتخابگر نوک را نمایش میدهد. این به مشتری این امکان را می دهد که مقدار انعام را برای سفارش خود انتخاب کند.
با استفاده از ServingConfig .disableTipWidget در فیدهای داده موجودی خود، می توانید انتخابگر انعام را برای یک سرویس رستوران پنهان کنید.
نحوه تعیین مبلغ انعام پیش فرض
میتوانید مبلغ انعام پیشفرض تعیین کنید یا از پذیرش انعام برای یک رستوران در حین پرداخت خودداری کنید. موارد استفاده زیر را می توان در CheckoutResponseMessage پشتیبانی کرد:
یک رستوران به مبلغ ثابتی انعام نیاز دارد
در ProposedOrder.otherItems در CheckoutResponseMessage ، یک مورد خطی از نوع GRATUITY با مقدار ثابتی در داخل اضافه کنید.
یک رستوران انعام پیشنهاد می کند و به مشتری این امکان را می دهد که مبلغ را تغییر دهد
در ProposedOrder.otherItems در CheckoutResponseMessage ، یک مورد خطی از نوع GRATUITY با مقدار ثابت اضافه کنید. حتماً gratuityExtension با مقدار gratuityTypeUSER_MODIFIABLE نیز اضافه کنید.
تاریخ آخرین بهروزرسانی 2025-01-11 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-11 بهوقت ساعت هماهنگ جهانی."],[[["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"]]