Pass a custom header to override the default one, e.g. client-request-id:
Payment.create(
new Amount("123", "EUR"),
new Pointer("IBAN", "mockiban"),
"description",
123,
null,
null,
false,
Map(
BunqHeader.CLIENT_REQUEST_ID.toString -> "123"
).toJava)
What should happen:
The specified request header gets passed to the server, and the server recognises the Client Request ID.
What happens:
The server doesnt recognise the passed client request ID, and doesnt deduplicate the requests. Upon further investigation, I found out that the new header value gets appended to the header key, instead of replacing it.
Steps to reproduce:
What should happen:
What happens:
Traceback
SDK version and environment
Response id
Extra info: