How to generate signature
API Params Example
{
"partnerRefId": "AB123",
"telco": "viettel",
"telcoServiceType": "prepaid",
"phoneNumber": "0866123456",
"signature": "5a2774918a29cf4d2bdb78cccceb956f4c27837fad09a03a56e1df68b1bf29dd"
}
The order of parameters to create the signature
will be sorted alphabetically.
The parameters are included into signature: partnerRefId
+ phoneNumber
+ telco
+ telcoServiceType
The string generated with the above parameters will be:
"partnerRefId=AB123&phoneNumber=0866123456&telco=viettel&telcoServiceType=prepaid"
signature = HMAC_SHA256("partnerRefId=AB123&phoneNumber=0866123456&telco=viettel&telcoServiceType=prepaid", YOUR_SECRET_KEY)