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

Webhook Logic

Summary

  • discount: Always 0
  • itemAmount: Always equals totalAmount , since each transaction only has one order, in case of HH, we allow 1 order per transaction
  • totalAmount: totalItem * price
  • itemPrice: price
  • totalItem:
    • No promo & per pax → booking pax
    • No promo & per pack → booking packs
    • "Come 4 Pay 3" & per pax → booking pax − [(booking pax ÷ 4).floor * (4 - 3)]
Package TypePer PackPromobook paxPriceExpectation Webhook Sent (From HH)
discounttotalItemitemPriceitemAmount = `*
Per Pax-NO18000
Per Pax-NO28000
Per Pax-Come 4 More Pay 3 less28000
Per Pax-Come 4 More Pay 3 less38000
Per Pax-Come 4 More Pay 3 less48000
Per Pax-Come 4 More Pay 3 less58000
Per Pax-Come 4 More Pay 3 less78000
Per Pax-Come 4 More Pay 3 less88000
Per Pax-Come 4 More Pay 3 less98000
Per Pax-Come 4 More Pay 3 less128000
Per Pax-Come 4 More Pay 3 less168000
deposit 10%-NO18000
deposit 10%-NO38000
deposit 50%-NO28000
Per Pack1NO15000
Per Pack1NO25000
Per Pack3NO15000
Per Pack3NO25000
Per Pack3NO35000
Per Pack
Per Pack
Per Pack
Per Pack
Per Pack
Per Pack
Per Pack
Per Pack