Project

General

Profile

Actions

Task #812

open

Epic #786: Square Payment Gateway Integration

Feature #811: Customer Management

Create Customer in Square

Added by Redmine Admin about 2 months ago. Updated about 1 month ago.

Status:
Ready for Client
Priority:
Normal
Assignee:
Start date:
04/22/2026
Due date:
% Done:

0%

Estimated time:

Description

When a new user performs a payment, create a corresponding customer record in Square using Customer API. Include user details like name, email.

Actions #1

Updated by Deeksha Singh about 2 months ago

Module: Square Customer Creation (New User)

TC_ID: CUST_CREATE_01
Title: Verify customer is created in Square for new user on payment
Preconditions: New user (no existing Square customer ID)
Steps:

Register/login as new user
Perform payment
Check Square dashboard / API
Test Data: Name, Email
Expected Result: New customer record created in Square

TC_ID: CUST_CREATE_02
Title: Verify correct user details passed to Square
Preconditions: New user
Steps:

Perform payment
Inspect customer creation request
Test Data: Name, Email
Expected Result: Correct name and email sent in API request

TC_ID: CUST_CREATE_03
Title: Verify customer ID is stored in application database
Preconditions: Customer created in Square
Steps:

Complete payment
Check DB
Test Data: User record
Expected Result: Square customer ID stored and mapped to user

TC_ID: CUST_CREATE_04
Title: Verify no duplicate customer created for same user
Preconditions: Existing user with Square customer ID
Steps:

Perform another payment
Test Data: Same user
Expected Result: Existing customer reused, no new record created

TC_ID: CUST_CREATE_05
Title: Verify handling of missing user details
Preconditions: User with incomplete profile
Steps:

Attempt payment
Test Data: Missing email/name
Expected Result: Validation error or fallback handling as per requirement

TC_ID: CUST_CREATE_06
Title: Verify customer creation failure handling
Preconditions: Simulate API failure
Steps:

Attempt payment
Test Data: API failure scenario
Expected Result: Error handled, payment not processed or retried safely

TC_ID: CUST_CREATE_07
Title: Verify customer creation before payment processing
Preconditions: New user
Steps:

Initiate payment
Track flow
Test Data: User details
Expected Result: Customer created before payment request is sent

TC_ID: CUST_CREATE_08
Title: Verify email uniqueness handling in Square
Preconditions: Same email used multiple times
Steps:

Perform payments with same email
Test Data: Duplicate email
Expected Result: System handles duplicates without creating multiple unnecessary records

TC_ID: CUST_CREATE_09
Title: Verify mapping consistency between user and Square customer
Preconditions: Customer created
Steps:

Fetch user record
Fetch Square customer
Test Data: Customer ID
Expected Result: Correct mapping maintained

TC_ID: CUST_CREATE_10
Title: Verify logging of customer creation request and response
Preconditions: Logging enabled
Steps:

Perform payment
Check logs
Test Data: Customer API call
Expected Result: Request/response logged without exposing sensitive data

Actions #2

Updated by Deeksha Singh about 1 month ago

  • Status changed from New to Ready for Client
Actions

Also available in: Atom PDF