Skip to content

Commit

Permalink
Merge pull request #658 from stripe/brandur-two-retries
Browse files Browse the repository at this point in the history
Update README retry code sample to use two retries
  • Loading branch information
brandur-stripe authored Jul 12, 2019
2 parents 35d88d6 + 68b7cb0 commit 3c818df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ This will retry requests `n` times with exponential backoff if they fail due to
[Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication.

```js
// Retry a request once before giving up
stripe.setMaxNetworkRetries(1);
// Retry a request twice before giving up
stripe.setMaxNetworkRetries(2);
```

### Examining Responses
Expand Down

0 comments on commit 3c818df

Please sign in to comment.