TC: Pay at Table
TC: Pay at Table
OrderType 3: PosTransaction - Test Suite
Test Case PSPT_TC01: Standard Payment
Objective: Verify standard payment can be processed successfully
Prerequisites:
Valid authentication token
POS terminal connected
Valid company code and location
Open order on Table 1
Steps:
Call GetTransactionList for Table 1 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order is open and has items
Call UpdateOrder to calculate final totals:
Verify response contains calculated totals
Note the
amountduevalue from responseTake payment via payment provider
Call UpdateOrder with payment to close order:
Verify response has
error: falseVerify
amountpaid=amountdueVerify
isOpen: falseVerify order cannot be modified after closure
Expected Result:
Payment processed successfully
Order closed successfully
amountpaidmatchesamountdueOrder state is immutable after closure
Pass/Fail Criteria: Order closed with balanced payment, no errors returned
Test Case PSPT_TC02: Standard Payment with Discount
Objective: Verify payment processes correctly with POS-initiated discount
Prerequisites:
Valid authentication token
Open order on Table 2
Discount configured in POS
Steps:
Call GetTransactionList for Table 2 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has items
Call UpdateOrder to calculate POS discounts and final totals:
Verify
adjustmentitemsarray contains POS-calculated discountVerify
saletotalreflects discounted amountNote the
amountduevalue from responseTake payment via payment provider
Process payment for discounted total:
Verify
amountpaid=amountdue
Expected Result:
POS discount applied correctly
Sale total recalculated
Payment processed for correct amount
Pass/Fail Criteria: POS discount appears in order, payment matches discounted total
Test Case PSPT_TC03: Standard Payment with Discount and Service Charge
Objective: Verify payment processes correctly with both POS discount and service charge
Prerequisites:
Valid authentication token
Open order on Table 3
Discount and service charge configured in POS
Steps:
Call GetTransactionList for Table 3 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has items
Call UpdateOrder to calculate POS discount, service charge and final totals:
Verify
adjustmentitemsarray contains both POS-calculated discount and service chargeVerify
saletotalincludes both adjustmentsNote the
amountduevalue from responseTake payment via payment provider
Process payment for final total:
Verify all business rules triggered
Expected Result:
POS discount applied correctly
Service charge applied correctly
All adjustments visible in response
Correct final total calculation
Pass/Fail Criteria: Both POS adjustments applied, payment matches final calculated total
Test Case PSPT_TC04: Partial Payment - Transaction Remains Open
Objective: Verify partial payment leaves order in open state
Prerequisites:
Valid authentication token
Open order on Table 4 with
amountdue= 50.00
Steps:
Call GetTransactionList for Table 4 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has
amountdue= 50.00Call UpdateOrder to calculate final totals:
Verify calculated
amountduein responseTake partial payment via payment provider (30.00)
Call UpdateOrder with partial payment:
Verify response has
error: falseVerify
amountpaid= 30.00Verify
amountdue= 20.00 (remaining balance)Verify
isOpen: trueVerify order can still be modified
Expected Result:
Partial payment processed successfully
Outstanding balance calculated correctly
Order remains open
Order can accept additional payments
Pass/Fail Criteria: Partial payment accepted, correct balance remaining, order stays open
Test Case PSPT_TC05: Multiple Payments - App Split Bill
Objective: Verify multiple guests can pay their portions via app
Prerequisites:
Valid authentication token
Open order on Table 5 with
amountdue= 100.00
Steps:
Call GetTransactionList for Table 5 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has
amountdue= 100.00Call UpdateOrder to calculate final totals:
Note the calculated
amountduevalueGuest 1 takes payment via payment provider (40.00)
Guest 1 pays their portion:
Verify
amountpaid= 40.00,amountdue= 60.00Guest 2 takes payment via payment provider (35.00)
Guest 2 pays their portion:
Verify
amountpaid= 75.00,amountdue= 25.00Guest 3 takes final payment via payment provider (25.00)
Guest 3 pays final portion:
Verify
amountpaid=amountdue= 100.00Verify
isOpen: falseVerify all payment items recorded in
paymentitemsarray
Expected Result:
All partial payments processed
Running balance calculated correctly
Final payment closes order
All payments tracked individually
Pass/Fail Criteria: Multiple guests can pay separately, order closes when fully paid
Test Case PSPT_TC06: Standard Payment - PoS Split Bill
Objective: Verify payment works with POS-initiated split bills
Prerequisites:
Valid authentication token
Order on Table 6 split into 3 bills via POS
Steps:
Call GetTransactionList for Table 6 to retrieve available bills
Verify response contains 3 split bills with their amounts
Select split bill 1 to process
Call GetTransaction to retrieve full details for split bill 1
For split bill 1 (position 0), call UpdateOrder to calculate totals:
Note the
amountduefor split bill 1Take payment via payment provider
Process payment for split bill 1:
Repeat steps 3-6 for remaining split bills (transactionpos: 1 for bill 2, transactionpos: 2 for bill 3)
Verify each split bill can be paid independently
Verify original order closes when all splits are paid
Verify payment totals sum to original order total
Expected Result:
Each split bill paid successfully
Original order marked as complete
Total payments match original order value
Pass/Fail Criteria: All split bills process correctly, order completes when all paid
Test Case PSPT_TC07: Payment using Gift Card (Optional)
Objective: Verify gift card payment method is processed correctly
Prerequisites:
Valid authentication token
Open order on Table 7
Gift card payment type configured in POS
Valid gift card number
Steps:
Call GetTransactionList for Table 7 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has items and total
Call UpdateOrder to calculate final totals:
Note the calculated
amountduevalueTake payment via gift card payment provider
Process payment with gift card:
Verify response has
error: falseVerify gift card balance deducted
Verify order closed successfully
Expected Result:
Gift card payment processed
Order closed successfully
Gift card balance updated
Pass/Fail Criteria: Gift card accepted as payment method, order closes successfully
Test Case PSPT_TC08: Deposit Payment (Optional)
Objective: Verify deposit payment followed by balance payment
Prerequisites:
Valid authentication token
Open order on Table 8 with
amountdue= 100.00
Steps:
Call GetTransactionList for Table 8 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has
amountdue= 100.00Call UpdateOrder to calculate final totals:
Note the calculated
amountduevalueTake deposit payment via payment provider (20.00)
Process deposit payment:
Verify
amountpaid= 20.00,amountdue= 80.00Verify order remains open
Take final payment via different payment provider (80.00)
Process final payment with different method:
Verify both payment types recorded
Verify order closed successfully
Expected Result:
Deposit payment processed
Multiple payment methods supported
Final payment closes order
Pass/Fail Criteria: Deposit recorded, final payment completes transaction with multiple payment types
Test Case PSPT_TC09: App Triggered Discount and Payment (Optional)
Objective: Verify app can apply discount then process payment
Prerequisites:
Valid authentication token
Open order on Table 9
App has permission to apply discounts
Steps:
Call GetTransactionList for Table 9 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has items
App applies discount via UpdateOrder:
Verify discount applied
Call UpdateOrder to calculate final totals:
Verify
saletotalrecalculated with discountNote the calculated
amountduevalueTake payment via payment provider
Process payment:
Verify payment matches discounted total
Verify order closed successfully
Expected Result:
App-initiated discount applies correctly
Payment processes for discounted amount
Discount tracked as app-initiated
Pass/Fail Criteria: App can apply discount, payment processes for correct amount
Test Case PSPT_TC10: App Calculated Discount and Payment (Optional)
Objective: Verify app can calculate and apply percentage-based discount
Prerequisites:
Valid authentication token
Open order on Table 10 with
saletotal= 50.00App has discount calculation capability
Steps:
Call GetTransactionList for Table 10 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has
saletotal= 50.00App calculates 15% discount (7.50)
App applies discount:
Call UpdateOrder to calculate final totals:
Verify
saletotal= 42.50Note the calculated
amountduevalueTake payment via payment provider
Process payment for discounted amount:
Verify order closes successfully
Expected Result:
Calculated discount applies correctly
Payment matches calculated total
Order completes successfully
Pass/Fail Criteria: Percentage discount calculated and applied correctly
Test Case PSPT_TC11: Standard Payment with Donation (Optional)
Objective: Verify optional donation can be added to payment
Prerequisites:
Valid authentication token
Open order on Table 11
Donation functionality enabled
Steps:
Call GetTransactionList for Table 11 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has items
Add donation to order:
Call UpdateOrder to calculate final totals:
Verify
saletotalincreased by donation amountNote the calculated
amountduevalueTake payment via payment provider
Process payment including donation:
Verify donation tracked separately in reporting
Expected Result:
Donation added to total
Payment includes donation
Donation identifiable in order data
Pass/Fail Criteria: Donation added correctly, payment includes full amount
Test Case PSPT_TC12: Standard Payment with Tips (Optional)
Objective: Verify gratuity can be added via app
Prerequisites:
Valid authentication token
Open order on Table 12 with
amountdue= 50.00
Steps:
Call GetTransactionList for Table 12 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has
amountdue= 50.00Add tip via app:
Call UpdateOrder to calculate final totals:
Verify
saletotal= 60.00Note the calculated
amountduevalueTake payment via payment provider
Process payment including tip:
Verify tip tracked for staff allocation
Expected Result:
Tip added to total
Payment includes tip amount
Tip identifiable for distribution
Pass/Fail Criteria: Tip added correctly, payment processes full amount including gratuity
Test Case PSPT_TC13: Invalid Payment Method
Objective: Verify system rejects invalid payment method
Prerequisites:
Valid authentication token
Open order on Table 13 with
amountdue= 25.50
Steps:
Call GetTransactionList for Table 13 to retrieve available bills
Verify response contains bill(s) with amounts
Select the bill to process
Call GetTransaction to retrieve full order details
Verify order has
amountdue= 25.50Call UpdateOrder to calculate final totals:
Note the calculated
amountduevalueAttempt payment with invalid payment type:
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"Order still open
No payment applied
Pass/Fail Criteria: System rejects invalid payment method, order remains unchanged
Last updated
Was this helpful?
