Project

General

Profile

Actions

Task #805

open

Epic #786: Square Payment Gateway Integration

Feature #802: Purchase Stack (Cart System)

Payment Integration with Cart

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

Integrate cart checkout with Square payment API. Convert cart total into a single payment request. Attach metadata to track individual items within the transaction.

Actions #1

Updated by Deeksha Singh about 2 months ago

Module: Cart Checkout with Square Integration

TC_ID: CART_PAY_01
Title: Verify successful checkout for cart items
Preconditions: Cart contains valid items
Steps:

Add items to cart
Proceed to checkout
Complete payment
Test Data: Valid cart items + valid card
Expected Result: Payment successful and order created

TC_ID: CART_PAY_02
Title: Verify single payment request for entire cart
Preconditions: Multiple items in cart
Steps:

Add multiple items
Initiate checkout
Capture payment request
Test Data: Multiple items
Expected Result: Only one payment request sent with aggregated total

TC_ID: CART_PAY_03
Title: Verify correct total amount passed to Square
Preconditions: Cart total calculated
Steps:

Add items
Proceed to payment
Inspect API request
Test Data: Cart total = sum of items
Expected Result: Amount in request matches backend calculated total

TC_ID: CART_PAY_04
Title: Verify metadata includes cart item details
Preconditions: Metadata implementation available
Steps:

Perform checkout
Inspect payment request
Test Data: Cart items (IDs, quantities)
Expected Result: Metadata contains item-level details (item IDs, quantities, user ID)

TC_ID: CART_PAY_05
Title: Verify mapping of payment to individual cart items
Preconditions: Payment successful
Steps:

Complete payment
Check database
Test Data: Cart items
Expected Result: Each item linked to transaction correctly

TC_ID: CART_PAY_06
Title: Verify payment failure handling for cart checkout
Preconditions: Cart items present
Steps:

Attempt payment with declined card
Test Data: Failed card
Expected Result: Payment fails and no items are marked as purchased

TC_ID: CART_PAY_07
Title: Verify no partial processing on payment failure
Preconditions: Multiple items in cart
Steps:

Trigger payment failure
Check DB
Test Data: Multiple items
Expected Result: No item is partially processed or marked paid

TC_ID: CART_PAY_08
Title: Verify idempotency for duplicate checkout requests
Preconditions: Same cart
Steps:

Trigger checkout request multiple times
Test Data: Same payload
Expected Result: Only one transaction created

TC_ID: CART_PAY_09
Title: Verify cart is cleared after successful payment
Preconditions: Payment success
Steps:

Complete checkout
Fetch cart
Test Data: Paid cart
Expected Result: Cart is empty or marked as completed

TC_ID: CART_PAY_10
Title: Verify retry after failed payment
Preconditions: Failed transaction
Steps:

Retry checkout
Test Data: Same cart
Expected Result: Payment succeeds without duplication

TC_ID: CART_PAY_11
Title: Verify handling of empty cart during checkout
Preconditions: Empty cart
Steps:

Attempt checkout
Test Data: No items
Expected Result: Error returned, payment not initiated

TC_ID: CART_PAY_12
Title: Verify mismatch between cart total and payment request
Preconditions: Tampering attempt
Steps:

Modify total in request
Send payment
Test Data: Altered total
Expected Result: Backend recalculates and rejects mismatch

TC_ID: CART_PAY_13
Title: Verify transaction logging for cart payment
Preconditions: Logging enabled
Steps:

Complete payment
Check logs
Test Data: Cart transaction
Expected Result: Payment request and response logged properly

TC_ID: CART_PAY_14
Title: Verify large cart checkout performance
Preconditions: Large number of items
Steps:

Add many items
Checkout
Test Data: 50+ items
Expected Result: Payment processed successfully without delay

TC_ID: CART_PAY_15
Title: Verify metadata traceability post-payment
Preconditions: Payment completed
Steps:

Fetch transaction details
Verify metadata
Test Data: Transaction ID
Expected Result: Metadata allows tracing back to all cart items

Actions #2

Updated by Deeksha Singh about 1 month ago

  • Status changed from New to Ready for Client
Actions

Also available in: Atom PDF