Guest Checkout

Stay organized with collections Save and categorize content based on your preferences.

Guest checkout provides a way for users to place orders with partners through Google, regardless if they are logged into a Google account.

To determine if the user's order is submitted as a guest or logged into their Google account, check the emailVerified field within the finalOrder.cart.extension.contact in the SubmitOrderRequestMessage. Orders by users logged into their Google account would have the emailVerified set to true while orders by guest users would not have emailVerified at all.

Guest Order

{
  "finalOrder": {
    ...
    "cart": {
      ...
      "extension": {
        "@type": "type.googleapis.com/google.actions.v2.orders.FoodItemExtension",
        "contact": {
          "displayName": "Lovefood Ordering",
          "email": "ilovefood@example.com",
          "phoneNumber": "+16501234567",
          "firstName": "Lovefood",
          "lastName": "Ordering"
        }
      }
    }
  }
}

Logged-in Order

{
  "finalOrder": {
    ...
    "cart": {
      ...
      "extension": {
        "@type": "type.googleapis.com/google.actions.v2.orders.FoodItemExtension",
        "contact": {
          "displayName": "Lovefood Ordering",
          "email": "ilovefood@example.com",
          "phoneNumber": "+16501234567",
          "firstName": "Lovefood",
          "lastName": "Ordering",
          "emailVerified": true
        }
      }
    }
  }
}