Skip to content

Commit

Permalink
Merge pull request stripe#439 from stripe/ob-document-auto-retries
Browse files Browse the repository at this point in the history
Document automatic retries
  • Loading branch information
ob-stripe authored Feb 15, 2018
2 parents a03fc65 + e54abc9 commit 10f8693
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 @@ -149,6 +149,18 @@ certificates, but it's possible to configure your own:
\Stripe\Stripe::setCABundlePath("path/to/ca/bundle");
```

### Configuring Automatic Retries

The library can be configured to automatically retry requests that fail due to
an intermittent network problem:

```php
\Stripe\Stripe::setMaxNetworkRetries(2);
```

[Idempotency keys][idempotency-keys] are added to requests to guarantee that
retries are safe.

## Development

Install dependencies:
Expand Down Expand Up @@ -198,4 +210,5 @@ See the "SSL / TLS compatibility issues" paragraph above for full context. If yo

[curl]: http://curl.haxx.se/docs/caextract.html
[psr3]: http://www.php-fig.org/psr/psr-3/
[idempotency-keys]: https://stripe.com/docs/api/php#idempotent_requests
[stripe-mock]: https://github.com/stripe/stripe-mock

0 comments on commit 10f8693

Please sign in to comment.