It's difficult to find well documented files about how to implement the UPI integration on UPI's website, but below I am mentioning some of the links which you can refer to. Cross refer all documents, one document alone won't help:
https://digidhan.mygov.in/pages/pdf/sbi/NPCI%20Unified%20Payment%20Interface.pdf