Updates a checkout.
The updateCheckout()
function returns a Promise that resolves to the updated checkout when the specified properties are updated.
Notes:
checkout.buyerInfo.email
may not be removed once it is set.function updateCheckout(
_id: string,
checkout: UpdateCheckout,
options: UpdateCheckoutOptions,
): Promise<Checkout>;
Checkout ID.
Checkout update options.
import { checkout } from "@wix/ecom";
async function updateCheckout(id, checkout, options) {
const response = await checkout.updateCheckout(id, checkout, options);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.