Request URL:

endpoint: <https://preprod.pay10.com/crmws/QrCode/generateStaticQR>

Request Format
Please refer the table below for details of the required and optional parameters that need to be included in request. Request is in JSON format.

FieldDescriptionRequired
PAY_IDPay ID is provided by Pay10Y
IDENTIFIERUnique IdentifierY
HASHHASH calculated based on SHA-256Y
REMARKAny remark/ additional detailsN
RETURN_URLY

Method of generating hash

To generate a hash, you need to make a request string of all the required parameters

For example, if you want to pass the following name value pairs in your request

📘

PAY_ID =100,IDENTIFIER =Radhe@icici, RETURN_URL=<http://uat.pay10.com/response>


Then you need to sort all the parameters in ascending order and add “Tilde” (~) symbol as separator to prepare the request String.

The Output will be as follows

📘

IDENTIFIER=Radhe@icici~PAY_ID=100 ~RETURN_URL=<http://uat.pay10.com/response>

Next step is to append the Secret Key at the end of the parameter string given by Pay10 Payment Gateway to you. After adding you will get the following output:

📘

IDENTIFIER=Radhe@icici~PAY_ID=100~RETURN_URL=<http://uat.pay10.com/response9110b15767494f>

After completing the above-mentioned process, you will have to call SHA 256 algorithm and pass the parameter string to the same and the SHA will return you the desired result as below (Contact merchant support team to get SHA256 library for your platform)

📘

Hash value= {0d804907563e7eb93f45471baa2a55d44a89606408dd5c33dbe24837eb9b4ab7}

Now you must convert the generated value to the Upper Case, and you will get the final result as hash value:

📘

Hash value = 0D804907563E7EB93F45471BAA2A55D44A89606408DD5C33DBE24837EB9B4AB7


The purpose of the SHA256 signature field is to ensure the integrity of the data posted back to your server. You should always compare the SHA256 signature field's value posted by Pay10 ’s servers with the one you calculated.

To calculate the SHA256, you need to take the values of the fields listed above exactly as they were posted back to you, concatenate them and perform a SHA256 calculation on this string.

📘

Request Body Sample:

{"PAY_ID":"347847385347", "SALT":"dsd43748", "IDENTIFIER":"Radhe@icici", "REMARK":"QR for Delhi","HASH":"0D804907563E7EB93F45471BAA2A55D44A89606408DD5C33DBE24837EB9B4AB7", "RETURN_URL":"<https://uat.pay10.com/webhook"> }

📘

Response Body Sample:

Response: { "qrString": "upi://pay?pa=7205474234@upi&pn=QRTest&tn=1713430691733&tr=1713430691733&cu=INR&pur pose=NA", "qrImage": "iVBORw0KGgoAAAANSUhEUgAAAV4AAAFeAQAAAADlUEq3AAADhklEQVR42u2bYarjMAyEBT5AjuSr+0g5gEHPmhk5eVtY9uditZTSNl/6Q8jSaOya//tj2hf+wv89bPHo6+m3TbN5+bzGem0+9vfr0WrAbUXl7u22hi8Xvz5a3IK78NEDqwEH1tct66rF1b6YFa6G31kBjHutl4IX4ytzIoUiXOtji7zqiGo5OMiVMz5wyRixWFx391IwllUAtyGX4psVw73EPtfgwTBLbrv/8vyzPh8M82EIWpSXrC2LcaTTZ+8+GWbJXfG5RjBYX5FFKLyO2KICl4AT6FFYcCmakWVLYu2NkJaAQ4QsSYa4rfdIHvDXYCmOvIo3JWBcikbMjEIKsfCucA22aejYInB022kgV99RJD27sCSc14EvVF2TegePehshdWftrQIbSwoCiPUFkWYpVOLLuLcEjIkG5QVSxFFgqeex1tSOWw3YkUspUKMTMalaugGQat1rwCiqvIWi3VzteKAdGyrMKAIT45yLyc5MFcbTEvHfcT4ZDhEihSY1MjHfQcLxdxzSpQSM/DEU2KHXXFn4Zvwa8U6HaZkyZ3DX+JCsj1Q7HoZpTN+Y1WZw6seyopo1DL8lYC6rafYYZRk9U3lBDGvA6ROqE2kR3bY7Mr0jrwFzcqFrKgbukGwieO+75B4PyxrCbEsNzyfrrfj3+H80DE3icsnuro8YgR3T7jt0x8NcVowSayyVCSqMcRtij/8FYKMLZBxsIeb5XjYIpEsRmCqd+dNStWoPQhtS422ing2/LFOmTW859mZTRuUpAqPYSopchNWVnk26HbrzYe49yS1sqU9UYbhfWQfWiMddBnqGKrycdJq250rAW71zC5uSnpKV25RT4q0ErJ3Z3KnUkYa9 DbHd1DIw7UFPJlW9dmz5I0VgWYXYoKQ7lJNd1ykps72hfzzMijplDe0pb2hbiouuDMwym5Zpn3nv3qrDRFMFVuiQNsyoXGVGB9VVimvA9JBlerjnkY99cA7OQHqMp8M8wMBpF7KkK5KmCswe3WrA2Y6NJ67lIj4z70gRWwSmkh+a9ynM7qcO5wnkEnA6xjhlyrGOh9IZugxjEZh9h6dcLI9T6n8KKLnv0J0Pp6W8nTEOd4wem1Hzl21YAtZVWoh0zDwP3D5KpgxMg4jNV6cdbv3T53Us6nQ49WpuyXX14uxEHGpaDZgld+4RT//zotnemU7bYD8e/v7n 8QsfA/8A3w+NS9rFCScAAAAASUVORK5CYII=", “HASH”: “0D804907563E7EB93F45471BAA2A55D44A89606408DD5C33DBE24837EB9B4AB7”,STATUS:”00”, }

Please Note, once you get the QR string in the response then please generate QR in your end