You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
I use v2 of this repo and for some reason all API requests to live klarna are returning a 401 unauthorised response.
I have checked the API keys being used and verified that they are valid via curl and I can see that the auth headers being set on the sendRequest() call are also correct.
Is v2 still supported? Any ideas what's going on?
The text was updated successfully, but these errors were encountered:
I have checked the API keys being used and verified that they are valid via curl and I can see that the auth headers being set on the sendRequest() call are also correct.
Just to check the obvious:
Are you setting testMode to false?
Is the correct API version being used (EU vs. NA)
Is the auth header you see being set on sendRequest of the form Authorization => Basic base-64-encoded-username-and-secret ?
testMode is definitely false, 401 logs are appearing in the live klarna site.
Yes the EU version is being used for all requests: api.klarna.com.
This last one may be the cause of the issue, the guzzle auth value is being used but that looks like it's using basic auth and may not be encoding the values? I will try manually setting the auth header with encoding to see if that makes any difference.
I use v2 of this repo and for some reason all API requests to live klarna are returning a
401 unauthorised
response.I have checked the API keys being used and verified that they are valid via curl and I can see that the
auth
headers being set on thesendRequest()
call are also correct.Is v2 still supported? Any ideas what's going on?
The text was updated successfully, but these errors were encountered: