Task #828
openEpic #786: Square Payment Gateway Integration
Feature #826: Multi-item / Product Purchase
Payment Mapping
0%
Description
Map product purchase data into Square payment request. Ensure correct total amount and metadata mapping.
Updated by Deeksha Singh about 1 month ago
TC_ID_PAYMENT_MAP_01
Title: Verify total amount is correctly mapped in payment request
Preconditions: Product purchase data available
Steps:
Trigger payment request
Inspect request payload
Test Data: quantity = 3, unit_price = 100
Expected Result: Total amount (300) is correctly mapped
TC_ID_PAYMENT_MAP_02
Title: Verify product metadata is correctly included in payment request
Preconditions: Metadata mapping implemented
Steps:
Trigger payment request
Check metadata section
Test Data: product_id = P123, user_id = U456
Expected Result: Correct metadata passed in request
TC_ID_PAYMENT_MAP_03
Title: Verify mapping uses correct updated product price
Preconditions: Product price updated
Steps:
Trigger payment request
Test Data: unit_price updated from 100 → 120, quantity = 2
Expected Result: Total amount (240) mapped correctly
TC_ID_PAYMENT_MAP_04
Title: Verify handling of invalid product data
Preconditions: Validation implemented
Steps:
Trigger payment request with invalid data
Test Data: quantity = -1 or unit_price = null
Expected Result: Error returned, request not processed
TC_ID_PAYMENT_MAP_05
Title: Verify consistency of amount between system calculation and mapped request
Preconditions: Calculation logic implemented
Steps:
Trigger payment request
Compare internal calculation with request
Test Data: quantity = 5, unit_price = 50
Expected Result: Amount (250) matches in system and request
Updated by Deeksha Singh about 1 month ago
- Status changed from New to Ready for Client