POST api/PayOrder/MIN/UseRebateAndPassword
使用支付密码+返款余额对订单进行支付。 向下兼容,同功能的WebForms接口访问地址为~/Source/seAccountToPayByFKWithPwd.aspx。
Request Information
URI Parameters
None.
Body Parameters
支付时使用的参数。
PayOrderUsePayPasswordParm| Name | Description | Type | Additional information |
|---|---|---|---|
| orderid |
被支付的订单的编号(电子门票系统内订单唯一编号) |
string |
Required Max length: 20 |
| paypassword |
支付密码,非明文。 按以下规则进行加密: Byte[] KEY=SHA256(System.Utf8.GetBytes(会话密钥(STRING)+UPPER_MD5(登陆密码))) byte[] KEY2 = KEY的前24字节 值= ToBase64String(TripleDes(UTF8.GetBytes(UPPER_MD5(支付密码)),KEY2) 对UPPER_MD5()计算过程的描述: byte[] valueBuffer = Utf8.GetBytes(待运算的字符串) byte[] md5buffer = Md5(valueBuffer); string value = FormatString(md5Buffer,"x2)/*这个的意思是转换成bcd字符串,一个字节变成两个字符0xae= "ae",0x0a="0a"*/ string returnvalue = upper(value);全部转换成大写,仍然是每两个字符表示一个字节。 请不要指责这个脱库子放屁的处理,因为我们要兼容老版本,新版本只能如此。 |
string |
Required |
Request Formats
application/json, text/json
{
"orderid": "sample string 1",
"paypassword": "sample string 2"
}
application/xml, text/xml
<PayOrderUsePayPasswordParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.WebInterface"> <orderid>sample string 1</orderid> <paypassword>sample string 2</paypassword> </PayOrderUsePayPasswordParm>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
使用支付密码+返款余额对订单进行支付。 向下兼容,同功能的WebForms接口访问地址为~/Source/seAccountToPayByFKWithPwd.aspx。
OrderOperatorResult| Name | Description | Type | Additional information |
|---|---|---|---|
| orderid |
操作对应(或产生)的电子门票系统订单号。 |
string |
None. |
| sendid |
操作对应的第三方系统的订单号(如同程网发送过来的订单的编号),此编号由接口方提供,在提口方系统中应为唯一值。 |
string |
None. |
| orderstatus |
订单当前所处的状态 |
string |
None. |
| resultcode |
操作返回代码,0表示成功,其他值表示错误。 |
integer |
None. |
| returnmessgage |
从接口返回的提示消息,用于告知成功的结果或出错的原因。 |
string |
None. |
Response Formats
application/json, text/json
{
"orderid": "sample string 1",
"sendid": "sample string 2",
"orderstatus": "sample string 3",
"resultcode": 4,
"returnmessgage": "sample string 5"
}
application/xml, text/xml
<OrderOperatorResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.WebInterface"> <orderid>sample string 1</orderid> <orderstatus>sample string 3</orderstatus> <resultcode>4</resultcode> <returnmessgage>sample string 5</returnmessgage> <sendid>sample string 2</sendid> </OrderOperatorResult>