Task #815
openEpic #786: Square Payment Gateway Integration
Feature #811: Customer Management
Update Customer Data
0%
Description
Sync updates (email, name changes) from application to Square customer profile when required.
Updated by Deeksha Singh about 1 month ago
Module: Update Customer Data (Square)
TC_ID_UPDATE_01
Title: Verify customer email is updated in Square
Preconditions: Customer exists in Square
Steps:
Update email in application
Trigger sync/update API
Test Data: New email
Expected Result: Email is updated in Square customer profile
TC_ID_UPDATE_02
Title: Verify customer name is updated in Square
Preconditions: Customer exists
Steps:
Update name in application
Trigger update
Test Data: New name
Expected Result: Name is updated correctly in Square
TC_ID_UPDATE_03
Title: Verify no update is triggered when no data is changed
Preconditions: Customer data unchanged
Steps:
Save profile without changes
Test Data: Same data
Expected Result: No API call made to Square
TC_ID_UPDATE_04
Title: Verify update fails with invalid data
Preconditions: Customer exists
Steps:
Enter invalid email/name
Trigger update
Test Data: Invalid email format
Expected Result: Validation error shown, no update in Square
TC_ID_UPDATE_05
Title: Verify update works only for existing customer mapping
Preconditions: No customer_id in DB
Steps:
Try to update customer data
Test Data: User without mapping
Expected Result: Update not triggered or error handled
TC_ID_UPDATE_06
Title: Verify changes are reflected in both application and Square
Preconditions: Customer exists
Steps:
Update details
Check app DB and Square
Test Data: Updated name/email
Expected Result: Data consistent in both systems
TC_ID_UPDATE_07
Title: Verify error handling when Square API fails during update
Preconditions: Simulate API failure
Steps:
Trigger update
Test Data: API error
Expected Result: Error handled properly, no incorrect update
TC_ID_UPDATE_08
Title: Verify logging of customer update activity
Preconditions: Logging enabled
Steps:
Update customer details
Check logs
Test Data: Update request
Expected Result: Update activity logged without sensitive data