How To Test AOA Booking WebView
To test this booking flow you have to use mobile view on your desktop browser or use your android/IOS browser And then enter Base URL + Path in your Browser Address Bar
Base URL:
HHstaging.dev use https://hh-aoa.netlify.app HH-venus use https://hh-aoa-venus.netlify.app/
Testing Account
Private (https://app.clickup.com/9003122396/docs/8ca1fpw-27536/8ca1fpw-31036)
Path Structure:
| Description | Example | Is Required |
|---|---|---|
| Restaurant slug | pizza-den-137 | required |
| Token query params | token=123 | required |
| Layout query params | layout=plain | required |
| Locale query params (en/th) | locale=en | optional |
For example (Base URL + Path):
<https://hh-aoa.netlify.app/restaurants/cafe-claire-by-oriental-residence/mobile-book?token=MzE4NGI4YjgtYzZlNi0xMWVkLWFmYTEtMDI0MmFjMTIwMDAy&layout=plain&locale=en>
How To Generate Token
- Go to insomnia
- Select Authentication
- Fill in your payload data, e.g.
{
"contact_id": "3184b8b8-c6e6-11ed-afa1-0242ac120002",
"first_name": "Luthfi",
"last_name": "",
"phone": "08123456789",
"phone_code": "+66",
"phone_country_code": "th",
"email": "luthfi@hungryhub.com"
}
- And Click Send
- You will get the token in the response to make AOA Booking e.g.
{
"data": {
"token": "MzE4NGI4YjgtYzZlNi0xMWVkLWFmYTEtMDI0MmFjMTIwMDAy"
},
"success": true
}
- And then you can make a booking with the token
<https://hh-aoa.netlify.app/restaurants/cafe-claire-by-oriental-residence/mobile-book?token=MzE4NGI4YjgtYzZlNi0xMWVkLWFmYTEtMDI0MmFjMTIwMDAy&layout=plain&locale=en>
IMPORTANT: make sure the package id corresponds with the restaurant slug