Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retry logic for 3DS2 challenge completion endpoint #3517

Merged
merged 5 commits into from
Mar 25, 2021

Conversation

mshafrir-stripe
Copy link
Collaborator

@mshafrir-stripe mshafrir-stripe commented Mar 24, 2021

Summary

Add retry logic to complete3ds2Auth so that request failures to
the 3DS2 challenge completion endpoint are handled more gracefully.

See StripePaymentController#complete3ds2Auth for details on the
retry logic.

Retry the request up to 3 times. Use the following backoff delay logic:

  • Delay 2 seconds before the first retry
  • Delay 4 seconds before the second retry
  • Delay 8 seconds before the third retry

Motivation

RUN_MOBILESDK-126

Testing

  • Added tests
  • Modified tests
  • Manually verified

Add retry logic to `complete3ds2Auth` so that request failures to
the 3DS2 challenge completion endpoint are handled more gracefully.

See `StripePaymentController#complete3ds2Auth` for details on the
retry logic.

Retry the request up to 3 times. Use the following backoff delay logic:
- Delay 1 second before the first retry
- Delay 2 seconds before the second retry
- Delay 3 seconds before the third retry

RUN_MOBILESDK-126
@mshafrir-stripe mshafrir-stripe merged commit b626db1 into master Mar 25, 2021
@mshafrir-stripe mshafrir-stripe deleted the add-retry-3ds2-challenge-complete branch March 25, 2021 21:21
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.

3 participants