비회원 결제는 사용자가 Google 계정에 로그인했는지 여부와 관계없이 Google을 통해 파트너를 통해 주문할 수 있는 방법을 제공합니다.
사용자의 주문이 게스트로 제출되었는지 아니면 Google 계정으로 로그인했는지 확인하려면 SubmitOrderRequestMessage
의 finalOrder.cart.extension.contact
내 emailVerified
필드를 확인합니다.
Google 계정으로 로그인한 사용자의 주문은 emailVerified
이 true로 설정되는 반면, 게스트 사용자의 주문에는 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 } } } } }