Ingenico-ePayments / connect-sdk-php

Ingenico Connect PHP Server SDK
https://docs.connect.worldline-solutions.com/documentation/sdk/server/php/
MIT License
39 stars 16 forks source link

InMemorySecretKeyStore::storeSecretKey() will throw UnexpectedValueException - not found class #8

Closed bubnov-mikhail closed 6 years ago

bubnov-mikhail commented 6 years ago

Hello!

In the method you are throwing this exception, but you don't prefix the class with '\' and you are not 'use UnexpectedValueException'.

This results in a php error in case if I provide a wrong $key or $secret

rob-spoor commented 6 years ago

Thanks for informing us, we will provide a fix at some later time. In the mean time you can prevent this error by not providing an empty key or secret.

rob-spoor commented 6 years ago

This has been fixed in version 5.19.0.