This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates the tip choice that's currently selected by the customer for a specific eCommerce checkout.
function setTipOnOrder(
options: SetTipOnOrderOptions,
): Promise<SetTipOnOrderResponse>;
Options to use when setting a tip on an order.
import { tips } from "@wix/ecom";
async function setTipOnOrder(options) {
const response = await tips.setTipOnOrder(options);
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.