AP-1694 Fix calculation of payment request hash