From bac47a80c7d7a78fd8f602ff18ef3ce0d004b818 Mon Sep 17 00:00:00 2001 From: Robot Date: Mon, 25 Sep 2023 10:05:22 +0000 Subject: [PATCH] Changes from gocardless/gocardless-pro-ruby-template@8dbb6c77a2b109bb03a322d21b6ff1e41e72aae5 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 84edcbe5..cd3fbc05 100644 --- a/README.md +++ b/README.md @@ -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,