Skip to content

Add retry logic for failed payments in Base Pay Amazon checkout#75

Open
dev3Nigerian wants to merge 1 commit intobase:masterfrom
dev3Nigerian:feature/payment-retry-logic
Open

Add retry logic for failed payments in Base Pay Amazon checkout#75
dev3Nigerian wants to merge 1 commit intobase:masterfrom
dev3Nigerian:feature/payment-retry-logic

Conversation

@dev3Nigerian
Copy link

  • Created retry utility function with exponential backoff
  • Added retry logic to handlePayment function (3 attempts, 2-8s delays)
  • Added retry logic to handleConfirmPurchase function (3 attempts, 1.5-6s delays)
  • Added retry message display in UI for user feedback
  • Improved error handling with retryable error detection
  • Fixed TypeScript type issues for better type safety

- Created retry utility function with exponential backoff
- Added retry logic to handlePayment function (3 attempts, 2-8s delays)
- Added retry logic to handleConfirmPurchase function (3 attempts, 1.5-6s delays)
- Added retry message display in UI for user feedback
- Improved error handling with retryable error detection
- Fixed TypeScript type issues for better type safety
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant