thephpleague / omnipay-common

Core components for the Omnipay PHP payment processing library
MIT License
329 stars 242 forks source link

Adyen Api error #229

Open pradeep-sawant2501 opened 3 years ago

pradeep-sawant2501 commented 3 years ago

Install Adyen using https://github.com/academe/omnipay-adyen#omnipay-adyen. But after passing the username and password getting error as : Array ( [status] => 401 [errorCode] => 000 [message] => HTTP Status Response - Unauthorized [errorType] => security )

Adyen Api initialised are as follows:

$gateway = Omnipay::create('Adyen\Api')->initialize([ //'merchantAccount' => 'Developer914', //'merchantAccount' => 'Developer914ECOM', 'testMode' => true, //'username' => 'ws@Company.Developer914', 'username' => 'AQEnhmfuXNWTK0Qc+iSUl3I9q+uLTZkUXMeLmYXwlzSQpKtfUBWB1sf9EMFdWw2+5HzctViMSCJMYAc=-puSlr8NH7Poj34KSoQ3cvo4gHUXGBRs6qFBX46sApIA=-6{36)Hy^~B&X', 'password' => '5G$4$fI>wh2zrV{vm:<NT<.k>', //'password' => 'V]e+4)M6a%22', // POS password ]);

Please tell me where to get a username, password and merchant account for Adyen. Please share the step. Thanks in advanced.

DemigodCode commented 3 years ago

You are using the apikey as username... the commented out username should work, if it's the correct user.

Account->Configure->API Credentials->Choose user Here you will find the username top left and you can set a new password with "Generate Password". You have to copy the new generated password and than you have to save it!

Next time please use the Issue collector of the specific repo.