The pdf documents are stale. The status request url in the pdf is
demo.pesapal.com/api/querypaymentstatus instead of
demo.pesapal.com/api/querypaymentstatus. So the results after splitting the response query was not the one expected. It kept on directing me to the https link. I guess you can update the information on the pdf files too.
Just to add on that, that last bit querypaymentstatus is it CASE SENSITIVE? Some part of your documents use the format QueryPaymentStatus . Its good to maintain one consistent format since we don't know how the routing happens on your side.