The get_hash() function is not proper. It is supposed to apply sha512 to the entire string, but instead it is now applying it to the 'PAYU_MERCHANT_KEY ' only. https://github.com/MicroPyramid/django-payu/blob/master/payu/gateway.py#L21