PayU-EMEA / openpayu_php

OpenPayu SDK
http://developers.payu.com
Apache License 2.0
187 stars 86 forks source link

Fix error when request don't have signature header #87

Closed aso824 closed 5 years ago

aso824 commented 6 years ago

This commit fixes error Trying to get property of non-object when incoming HTTP request doesn't have signature header - which results in null return from parseSignature code and PHP error. Correct behavior for this situation is exception.

regdos commented 5 years ago

https://github.com/PayU/openpayu_php/commit/2b7c89e216457b8a07d4c835ba288cfe33a73c2e

Check keys exists and add tests.