thephpleague / omnipay-buckaroo

Buckaroo driver for the Omnipay PHP payment processing library
MIT License
13 stars 30 forks source link

Invalid signature #3

Closed rjkip closed 10 years ago

rjkip commented 10 years ago

I'm running into arbitrary key case in return data. This causes the unset($data['Brq_signature']); in generateSignature() to fail, which in turn includes the signature in the hash. The key case can be set in Buckaroo's "Plaza" (see image), but never matches Brq_signature. The default seems to be uppercase (BRQ_SIGNATURE).

If you agree, I can fix this in the string foreach using strcasecmp to filter out the signature, regardless of case.

image

rjkip commented 10 years ago

I'll do this anyway, since I need this asap.