useCartBuyerIdentityUpdateCallback

The useCartBuyerIdentityUpdateCallback hook returns a callback that can be used to update the cart's buyer identity. It must be a descendent of a CartProvider component.

Example code

Return value

A callback to update the cart's buyer identity. The callback expects one argument corresponding to an object containing the customer identity information you want to update.