ismailasci / omnipay-sofort

SOFORT Überweisung gateway for omnipay
MIT License
20 stars 17 forks source link

Client error response [status code] 401 [reason phrase] Unauthorized #10

Open svagers opened 9 years ago

svagers commented 9 years ago

Hi guys! I'm trying to add Sofort to my shop, but I get an Exception that tells that there's a Unauthorized request to Sofort. I made sure that I'm using a correct credentials. But then I found this: http://payment-processing-software.com/kb/article.php?id=075 Is there any other settings I must set before I can make any requests?

svagers commented 9 years ago

Ok, I added api key to the password field. Now it doesn't throw any exception. Except there is a response code 8001: Unknown project. But I'm sure the projectID is correct

franciscocorrales commented 9 years ago

how did you add it ? with headers ?

lucidlemon commented 8 years ago

I would love to hear something as well, have the same problem at the moment.

xserio commented 8 years ago

Same Problem here. Any solutions?

lucidlemon commented 8 years ago

I think what solved it for me was that I generated a wrong project in the sofort backend, they have 2 types of projects, one is for own implementation and the other one is for other services that allow your plugin to have contact with sofort. What you basically want is the last one, as it will give you other credentials to log in. So go to the sofort backend and create a new project, there you're going to select the other service and you are good to go.

PYovchevski commented 6 years ago

You must have SSL cert for using Sofort. Check your url for https ;)