Skip to content

Commit

Permalink
Changes from gocardless/gocardless-pro-ruby-template@8dbb6c77a2b109bb…
Browse files Browse the repository at this point in the history
…03a322d21b6ff1e41e72aae5
  • Loading branch information
gocardless-robot committed Sep 25, 2023
1 parent e5987bb commit bac47a8
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 @@ -118,13 +118,13 @@ For POST and PUT requests you need to pass in the body in under the `params` key

When creating a resource, the library will automatically include a randomly-generated
[idempotency key](https://developer.gocardless.com/api-reference/#making-requests-idempotency-keys)
- this means that if a request appears to fail but is in fact successful (for example due
- This means that if a request appears to fail but is in fact successful (for example due
to a timeout), you will not end up creating multiple duplicates of the resource.
- By default if a request results in an Idempotency Key conflict
the library will make a second request and return the object that was
originally created with the Idempotency Key. If you wish, you can instead configure
the client to raise the conflict for you to handle. e.g
```
```rb
@client = GoCardlessPro::Client.new(
access_token: ENV["GOCARDLESS_TOKEN"],
on_idempotency_conflict: :raise,
Expand Down

0 comments on commit bac47a8

Please sign in to comment.