签名生成方式

以下资料为范例 以新增存款订单为例 所需要的参数为: |參數|值| |:---- |----- | |apiKey|testApiKey | |customerNo| test100000 | |channel|bank | |amount|100.00 | |notifyUrl|http://test.com/getNotify | |ip|127.0.0.1 | 将以上参数阵列名称升幂排序后资料会变成下方表格的排序 |参数|值| |:---- |----- | |amount|100.00 | |apiKey|testApiKey | |channel|bank | |customerNo| test100000 | |ip|127.0.0.1 | |notifyUrl|http://test.com/getNotify | 再将排序后的资料拼接成一个字串,请注意这边的notifyUrl不需要进行Url Encode,否则会生成错误签名 ``` amount=100.00&apiKey=testApiKey&channel=bank&customerNo=test100000&ip=127.0.0.1&notifyUrl=http://test.com/getNotify ``` 再将拼接后的字串后面加上密钥后会变成下述的的字串 ``` amount=100.00&apiKey=testApiKey&channel=bank&customerNo=test100000&ip=127.0.0.1&notifyUrl=http://test.com/getNotifytestSecretKey ``` 最后再进行md5编码 得到正确的签名 ``` 5d50a182db6fa8a347cc85f36ca492f2 ``` 备注1:回调API请根据**回传内容**加密,非回调API则以**data阵列内容**做加密 备注2:如果有参数的内容为**空或是null**则不需要加入签名的字串