ชำระเงินโดยไม่ลงชื่อเข้าใช้

การชําระเงินโดยไม่ลงชื่อเข้าใช้ ทําให้ผู้ใช้สามารถสั่งซื้อกับพาร์ทเนอร์ผ่าน Google ได้ ไม่ว่าพวกเขาจะลงชื่อเข้าใช้บัญชี Google อยู่ก็ตาม

หากต้องการดูว่าระบบส่งคําสั่งซื้อของผู้ใช้เป็นผู้มาเยือนหรือเข้าสู่ระบบบัญชี Google แล้ว ให้ตรวจสอบช่อง emailVerified ภายใน finalOrder.cart.extension.contact ใน SubmitOrderRequestMessage คําสั่งซื้อของผู้ใช้ที่ลงชื่อเข้าใช้บัญชี Google จะมีการตั้งค่า emailVerified เป็น "จริง" แต่คําสั่งซื้อจากผู้ใช้ชั่วคราวจะไม่มี emailVerified เลย

คําสั่งซื้อของผู้เยี่ยมชม

{
  "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"
        }
      }
    }
  }
}

คําสั่งซื้อที่ลงชื่อเข้าใช้

{
  "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
        }
      }
    }
  }
}