Webhook is used to receive notifications from EasyEuro system.Callback signature verification#
EasyEuro will share an webhook signature RSA public key to you, and the you can verify the callback notification signature by following steps:1.
Sort the ‘result’ field in callback notification in ascii character order;
2.
Concatenate each field value with format ‘Key1=Value1&Key2=Value2’, then get the string1;
3.
Calculate SHA256 digest from string1 to get digest1;
4.
Decode the signature in HTTP header of the callback notification with BASE64;
5.
Decrypt signature bytes with RSA public key to get digest2;
6.
Compare digest1 to digest2;
Modified at 2024-02-22 07:13:34