Search.../

updateCheckout( )

Developer Preview

Updates order and tickets (supported only for unconfirmed orders). Guest details must be sent according to Registration Form input fields.

Note: This function is restricted and only runs if you elevate permissions using the wix-auth.elevate() function.

Syntax

function updateCheckout(identifiers: UpdateCheckoutIdentifiers, options: UpdateCheckoutOptions): Promise<UpdateCheckoutResponse>

updateCheckout Parameters

NAME
TYPE
DESCRIPTION
identifiers
UpdateCheckoutIdentifiers

An object containing identifiers for the order and tickets to be updated.

options
Optional
UpdateCheckoutOptions

An object representing the available options for updating an order and tickets.

Returns

Return Type:

Promise<
UpdateCheckoutResponse
>
NAME
TYPE
DESCRIPTION
order
Order

Updated order.

Was this helpful?

updateCheckout example

Copy Code
1import { checkout } from 'wix-events.v2';
2
3 async function updateCheckout(identifiers, options) {
4 try {
5 const result = await checkout.updateCheckout(identifiers, options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13