updateEmail

Updates the customer's email address.

Returns OperationResult.Failed if the Checkout Session has customer_email or a Customer with an email.

Parameters

email

The email address to set. Leading/trailing whitespace is trimmed. Pass null to clear the customer's email. Returns OperationResult.Failed if the email is not a valid email address.