Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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:

DescriptionExampleIs Required
Restaurant slugpizza-den-137required
Token query paramstoken=123required
Layout query paramslayout=plainrequired
Locale query params (en/th)locale=enoptional

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

  1. Go to insomnia
  2. Select Authentication
  3. 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"
}
  1. And Click Send
  2. You will get the token in the response to make AOA Booking e.g.
{
	"data": {
		"token": "MzE4NGI4YjgtYzZlNi0xMWVkLWFmYTEtMDI0MmFjMTIwMDAy"
	},
	"success": true
}
  1. 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