TC: Tables - Order and Pay
Test Cases for In Venue Order and Pay Table Integrations
TC: Order and Pay
OrderType 8: In Venue Order and Pay - Tables
Test Case TBL_OP_TC01: Place an Order to Table 201 (No discounts/service charge)
Objective: Verify order can be created and paid without any adjustments
Prerequisites:
Valid authentication token
POS terminal connected
Valid company code and location
Table 201 available
Valid PLU numbers configured
Steps:
Call AddOrder to create new order on Table 201:
{
"isOpen": true,
"ordertype": 8,
"tracktype": 2,
"trackoffset": 201
}Verify response has
error: falseVerify order object returned with assigned
idAdd transaction items using UpdateOrder:
Verify
transactionitemsarray contains itemsVerify each item has assigned
linekeyVerify
saletotal> 0Call UpdateOrder to calculate final totals:
Verify no adjustments applied
Note the
amountduevalue from responseTake payment via payment provider
Call UpdateOrder with payment to close order:
Verify
amountpaid=amountdueVerify
isOpen: false
Expected Result:
Order created successfully
Items added with correct prices
Payment processed successfully
Order closed successfully
Pass/Fail Criteria: Order created, items added, payment processed without errors
Test Case TBL_OP_TC02: Place an Order to Table 202 with Linked Condiments (Priced and Non-Priced)
Objective: Verify order can be created with linked condiments including both priced and non-priced options
Prerequisites:
Valid authentication token
Table 202 available
PLU configured with linked condiments
Priced and non-priced condiments configured
Steps:
Call AddOrder to create new order on Table 202:
Verify order created successfully
Add main item with linked condiments using UpdateOrder:
Verify main item added successfully
Verify condiments appear in transaction
Verify priced condiment adds to
saletotalVerify non-priced condiment has zero value
Call UpdateOrder to calculate final totals:
Note the
amountduevalueTake payment via payment provider
Process payment and close order:
Verify order closed successfully
Expected Result:
Main item with condiments added successfully
Priced condiments add to total
Non-priced condiments appear with zero value
Payment processed correctly
Pass/Fail Criteria: Condiments correctly linked and priced, order completes successfully
Test Case TBL_OP_TC03: Place an Order to Table 203 with Stock Modifiers (Item Sizes)
Objective: Verify order can be created with stock modifiers for item sizes
Prerequisites:
Valid authentication token
Table 203 available
PLU configured with size modifiers
Multiple size options available
Steps:
Call AddOrder to create new order on Table 203:
Verify order created successfully
Add items with different size modifiers using UpdateOrder:
Verify both items added with different modifiers
Verify each size has appropriate price
Verify
saletotalreflects different pricesCall UpdateOrder to calculate final totals:
Note the
amountduevalueTake payment via payment provider
Process payment and close order:
Verify order closed successfully
Expected Result:
Items added with correct size modifiers
Different prices applied based on size
Payment processed successfully
Pass/Fail Criteria: Size modifiers correctly applied with appropriate pricing
Test Case TBL_OP_TC04: Place an Order to Table 204 with Gratuity (Tips) (Optional)
Objective: Verify order can be created and gratuity added before payment
Prerequisites:
Valid authentication token
Table 204 available
Gratuity functionality enabled
Steps:
Call AddOrder to create new order on Table 204:
Add transaction items using UpdateOrder:
Verify items added successfully
Call UpdateOrder to calculate final totals:
Note the
amountduevalueTake payment via payment provider
Process payment including gratuity:
Verify gratuity tracked for staff allocation
Expected Result:
Gratuity added to order total
Payment includes gratuity amount
Gratuity identifiable for distribution
Pass/Fail Criteria: Gratuity added correctly, payment processes full amount including tip
Test Case TBL_OP_TC05: Place an Order to Table 205 with App Calculated Discount (Optional)
Objective: Verify order can be created with app-calculated discount applied
Prerequisites:
Valid authentication token
Table 205 available
App has permission to apply discounts
Steps:
Call AddOrder to create new order on Table 205:
Add transaction items using UpdateOrder:
Verify items added successfully
Calculate discount (e.g., 20% of subtotal)
Apply app-calculated discount using UpdateOrder:
Call UpdateOrder to calculate final totals:
Verify discount applied correctly
Verify
saletotalreflects discounted amountNote the
amountduevalueTake payment via payment provider
Process payment for discounted total:
Verify order closed successfully
Expected Result:
App-calculated discount applies correctly
Payment processes for discounted amount
Discount tracked as app-initiated
Pass/Fail Criteria: Discount calculated and applied correctly by app
Test Case TBL_OP_TC06: Place an Order to Table 206 with 50% PoS Calculated Discount (Optional)
Objective: Verify order can be created and POS applies configured discount
Prerequisites:
Valid authentication token
Table 206 available
50% discount configured in POS
Steps:
Call AddOrder to create new order on Table 206:
Add transaction items using UpdateOrder:
Verify items added successfully
Call UpdateOrder to trigger POS discount calculation:
Verify
adjustmentitemscontains POS-calculated 50% discountVerify
saletotalreflects 50% reductionNote the
amountduevalueTake payment via payment provider
Process payment for discounted total:
Verify order closed successfully
Expected Result:
POS automatically applies 50% discount
Payment processes for discounted amount
Discount visible in order details
Pass/Fail Criteria: POS discount applies automatically when calculations triggered
Test Case TBL_OP_TC07: Place an Order to Table 207 with Additional Kitchen Instructions (Optional)
Objective: Verify order can be created with additional kitchen instructions
Prerequisites:
Valid authentication token
Table 207 available
Kitchen instruction functionality enabled
Steps:
Call AddOrder to create new order on Table 207:
Add transaction items with kitchen instructions using UpdateOrder:
Verify items added with kitchen instructions
Verify kitchen instructions appear in transaction
Call UpdateOrder to calculate final totals:
Note the
amountduevalueTake payment via payment provider
Process payment and close order:
Verify kitchen instructions sent to kitchen display/printer
Verify order closed successfully
Expected Result:
Kitchen instructions added to item
Instructions visible on kitchen output
Payment processed successfully
Pass/Fail Criteria: Kitchen instructions correctly stored and transmitted
Test Case TBL_OP_TC08: Place an Order to Table 208 with Additional Receipt Text (Optional)
Objective: Verify order can be created with custom receipt text
Prerequisites:
Valid authentication token
Table 208 available
Receipt text functionality enabled
Steps:
Call AddOrder to create new order on Table 208:
Add transaction items using UpdateOrder:
Add receipt text using UpdateOrder:
Call UpdateOrder to calculate final totals:
Note the
amountduevalueTake payment via payment provider
Process payment and close order:
Verify custom text appears on receipt
Verify order closed successfully
Expected Result:
Custom receipt text stored with order
Text appears on printed/digital receipt
Payment processed successfully
Pass/Fail Criteria: Receipt text correctly stored and appears on receipt
Test Case TBL_OP_TC09: Place an Order to Table 209 with Line Item Notes (Optional)
Objective: Verify order can be created with notes on specific line items
Prerequisites:
Valid authentication token
Table 209 available
Line item notes functionality enabled
Steps:
Call AddOrder to create new order on Table 209:
Add transaction items with line item notes using UpdateOrder:
Verify items added with line item notes
Verify notes appear with respective items
Call UpdateOrder to calculate final totals:
Note the
amountduevalueTake payment via payment provider
Process payment and close order:
Verify notes visible on kitchen output
Verify order closed successfully
Expected Result:
Line item notes stored with specific items
Notes visible on kitchen display/printer
Payment processed successfully
Pass/Fail Criteria: Line item notes correctly associated with items and transmitted
Test Case TBL_OP_TC10: Place an Order with 100% Discount (Balance £0) (Optional)
Objective: Verify order can be created with 100% discount resulting in zero balance
Prerequisites:
Valid authentication token
Table 210 available
Ability to apply 100% discount
Steps:
Call AddOrder to create new order on Table 210:
Add transaction items using UpdateOrder:
Apply 100% discount using UpdateOrder:
Call UpdateOrder to calculate final totals:
Verify
amountdue= 0.00Close order without payment (as balance is zero):
Verify order closes successfully with zero balance
Verify no payment required
Expected Result:
100% discount applied correctly
Balance is £0.00
Order closes without payment
Order recorded in system
Pass/Fail Criteria: Zero balance order completes successfully without payment
Test Case TBL_OP_TC11: Place an Order Part Paid with Card and 3rd Party Gift Card (Optional)
Objective: Verify order can be paid using multiple payment methods
Prerequisites:
Valid authentication token
Table 211 available
Card payment configured
Gift card payment configured
Valid gift card available
Steps:
Call AddOrder to create new order on Table 211:
Add transaction items using UpdateOrder:
Call UpdateOrder to calculate final totals:
Note
amountduevalue (e.g., 50.00)Take partial payment via gift card (20.00) - call ValidateGiftCard to ensure card validity and amount
Process first payment using UpdateOrder:
Verify
amountpaid= 20.00,amountdue= 30.00Take remaining payment via card (30.00)
Process second payment and close order:
Verify both payment types recorded
Verify
amountpaid=amountdueVerify order closed successfully
Expected Result:
Multiple payment methods supported
Partial payments tracked correctly
Order closes when fully paid
All payment methods recorded
Pass/Fail Criteria: Multiple payment methods work together to complete transaction
Test Case TBL_OP_TC12: Place an Order to a Site That is Offline (Optional)
Objective: Verify system handles offline site gracefully
Prerequisites:
Valid authentication token
Site configured but currently offline
Error handling implemented
Steps:
Attempt to call AddOrder for offline site:
Verify response has
error: trueVerify error message indicates site is offline
Verify no order created
Verify appropriate user notification
Expected Result:
error: trueerrorMessage: "Site is currently offline" or similarNo partial order created
Clear error message to user
Pass/Fail Criteria: System detects offline site and returns appropriate error
Test Case TBL_OP_TC13: Availability of Items Auto Updated When PoS User Enables/Disables Items
Objective: Verify app reflects real-time item availability from POS
Prerequisites:
Valid authentication token
Access to POS to enable/disable items via notification webhook
App monitors item availability
Steps:
Query available items via API
Verify initial item availability list
Disable item on POS (e.g., PLU 50001)
Wait for availability webhook notification
Verify disabled item no longer appears as available
Re-enable item on POS
Wait for availability webhook notification
Verify item now appears as available
Expected Result:
Item availability updates reflect POS changes
Disabled items cannot be ordered
Re-enabled items become orderable again
Appropriate error messages returned
Pass/Fail Criteria: App item availability synchronized with POS in real-time
Test Case TBL_OP_TC14: Ability for App User to Amend/Remove Items Prior to Payment
Objective: Verify user can modify order before payment is taken
Prerequisites:
Valid authentication token
Table 214 available
Order created but not yet paid
Steps:
Call AddOrder to create new order on Table 214:
Add initial transaction items:
Verify items added successfully
Note initial
saletotalRemove one item using UpdateOrder:
Verify item removed from order
Verify
saletotaladjustedModify quantity of remaining item:
Verify quantity updated
Verify
saletotalreflects new quantityProceed with payment and close order
Expected Result:
Items can be removed before payment
Quantities can be modified before payment
Totals recalculate correctly
Modified order completes successfully
Pass/Fail Criteria: Order modifications work correctly before payment taken
Test Case TBL_OP_TC15: Invalid Item Handling - Sell an Invalid PLU Number
Objective: Verify system rejects invalid PLU numbers
Prerequisites:
Valid authentication token
Table 215 available
Knowledge of invalid PLU number
Steps:
Call AddOrder to create new order on Table 215:
Attempt to add invalid PLU using UpdateOrder:
Verify response has
error: trueVerify error message indicates invalid PLU
Verify no item added to order
Verify order remains in valid state
Expected Result:
error: trueerrorMessage: "Invalid PLU number" or similarNo invalid item added
Order remains valid and modifiable
Pass/Fail Criteria: System rejects invalid PLU and provides clear error message
Test Case TBL_OP_TC16: Invalid Payment Type - Complete a Transaction with Invalid Media Number
Objective: Verify system rejects invalid payment method
Prerequisites:
Valid authentication token
Order created with items
Knowledge of invalid payment offset
Steps:
Create order with items on Table 216
Add transaction items successfully
Call UpdateOrder to calculate final totals:
Note the
amountduevalueAttempt payment with invalid offset:
Verify response has
error: trueVerify error message indicates invalid payment method
Verify order remains open
Verify no payment recorded
Expected Result:
error: trueerrorMessage: "Invalid payment method" or similarOrder still open
No payment applied
Order remains payable with valid method
Pass/Fail Criteria: System rejects invalid payment method and order remains in valid state
Last updated
Was this helpful?
