Skip to main content

Note

The API for interacting with the note applied to checkout.

The base API object provided to purchase extension targets.

<string | undefined>
required

A note left by the customer to the merchant, either in their cart or during checkout.

Returns the proposed note applied to the checkout.

string | undefined

The API object provided to purchase.checkout extension targets.

(change: ) => Promise<>
required

Performs an update on the note attached to the cart and checkout. If successful, this mutation results in an update to the value retrieved through the note property.

Note

This method will return an error if the cart instruction notes.canUpdateNote is false, or the buyer is using an accelerated checkout method, such as Apple Pay or Google Pay.

Anchor to useApplyNoteChange
useApplyNoteChange()

Returns a function to mutate the note property of the checkout.

(change: ) => Promise<>
Was this page helpful?