This code simply requests the recipt of transaction by GET method and download PDF file. Then it uses command line tool to extract contents of the PDF using known patterns.
Dependencies:
=> CURL
=> pdftotext cli toolhttps://www.xpdfreader.com/download.html
You can run the compiled file, set the transaction type(either 'c' or 'd') and set the reference n.o to test.