intercept

open override fun intercept(chain: ERROR CLASS: Symbol not found for Interceptor.Chain): ERROR CLASS: Symbol not found for Response

Adds the X-Callback-Url header when a callback URL is configured and the request targets a transaction-initiation endpoint; otherwise forwards the request unchanged.

Return

The response after conditionally adding the callback header.

Parameters

chain

The interceptor chain.

Throws

If an I/O error occurs.