Signature Algorithm sha256
if:
appId
: b2170558cd6b13febb1827db5185cfd9
appSecret
: 18b22b824d560565f853c8cf4a58e2b6{
"appId": "b2170558cd6b13febb1827db5185cfd9",
"merOrderNo": "LTJPD1159",
"currency": "INR",
"amount": "100",
"returnUrl": "https://www.example.com",
"notifyUrl": "https://www.example.com",
"extra": {
"name": "test",
"email": "test@1234.com",
"mobile": "911111111112"
},
}
Sort by the Unicode of key. Then concatenate the parameters in the form of key1=value1&key2=value2&key3=value3. The same applies to the parameters in extra.amount=100&appId=b2170558cd6b13febb1827db5185cfd9¤cy=INR&extra=email=test@1234.com&mobile=911111111112&name=test&merOrderNo=LTJPD1159¬ifyUrl=https://www.example.com&returnUrl=https://www.example.com&key=18b22b824d560565f853c8cf4a58e2b6
got sign: a6c1f5216ce7f44e10fa6beccc22de58caa947eae3f1c3a416f29e7594a2b95b
{
"appId": "b2170558cd6b13febb1827db5185cfd9",
"merOrderNo": "LTJPD1159",
"currency": "INR",
"amount": "100",
"returnUrl": "https://www.example.com",
"notifyUrl": "https://www.example.com",
"extra": {
"name": "test",
"email": "test@1234.com",
"mobile": "911111111112"
},
"sign": "a6c1f5216ce7f44e10fa6beccc22de58caa947eae3f1c3a416f29e7594a2b95b"
}
Demo#
Java#
php#
NodeJs#
Golang#
Modified at 2025-01-08 10:01:50