Skip to content

Pain001ClientOptions

Namespace Pain001.Sdk.

Where the pain001 server is and how to reach it.

Properties

ApiKey

The API key, sent as Authorization: Bearer <key>. Leave it null when the server has no key set.

BaseAddress

The server's absolute base address, for example http://127.0.0.1:8000. A path prefix is kept, so a server mounted under /payments works too.

Retry

The retry policy for GET requests, or null (the default) to send every request once. A POST is never retried. See RetryPolicy.

TimeProvider

The clock the retry waits and Retry-After dates are measured with. Defaults to System; a test can pass a fake one.

Exception When
ArgumentNullException The value is null.

Timeout

How long one request may take, from sending to the last byte of the response. Defaults to 30 seconds; InfiniteTimeSpan disables it.

All types