Skip to content

Commit

Permalink
Merge pull request #471 from stripe/mickjermsurawong/doc-update-pytho…
Browse files Browse the repository at this point in the history
…n-retry

Update readme on retry config
  • Loading branch information
brandur-stripe authored Sep 10, 2018
2 parents fb8117d + 36db6a8 commit 566790e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,18 @@ A proxy can be configured with `stripe.proxy`:
stripe.proxy = "https://user:pass@example.com:1234"
```

### Configuring Automatic Retries

Number of automatic retries on requests that fail due to an intermittent
network problem can be configured:

``` python
stripe.max_network_retries = 2
```

[Idempotency keys][idempotency-keys] are automatically generated and added to
requests, when not given, to guarantee that retries are safe.

### Logging

The library can be configured to emit logging that will give you better insight
Expand Down Expand Up @@ -172,6 +184,7 @@ Run the linter with:
[connect]: https://stripe.com/connect
[pipenv]: https://github.com/pypa/pipenv
[stripe-mock]: https://github.com/stripe/stripe-mock
[idempotency-keys]: https://stripe.com/docs/api/ruby#idempotent_requests

<!--
# vim: set tw=79:
Expand Down

0 comments on commit 566790e

Please sign in to comment.