POST api/Order/BeginToPay

在电脑网页上发起对某个订单发起支付(仅指第三方即时支付,如支付宝、微信、银联等)。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。

请求信息

URI参数

None.

窗体参数

支付参数

PayContent
NameDescriptionTypeAdditional information
orderid

订单编号,指明本次支付是针对哪个订单进行的。

string

Required

Max length: 20

paychannelname

支付渠道的名称,如“支付宝(即时到账)”、“微信支付”,此列表在GetPayChannel接口中获取。

string

Required

Max length: 60

openid

使用微信H5(JSAPI支付时,此参数必须提供)支付时必须的OPENID的密文 TripDes(OpenId,Key)

string

None.

clientip

客户端的IP

string

None.

请求格式

Test application/json, text/json

Sample:
{
  "orderid": "sample string 1",
  "paychannelname": "sample string 2",
  "openid": "sample string 3",
  "clientip": "sample string 4"
}

Test application/xml, text/xml

Sample:
<PayContent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TourWebApi.Models.Result">
  <clientip>sample string 4</clientip>
  <openid>sample string 3</openid>
  <orderid>sample string 1</orderid>
  <paychannelname>sample string 2</paychannelname>
</PayContent>

Test application/x-www-form-urlencoded

Sample:

没有示例。

回复信息

资源描述

在电脑网页上发起对某个订单发起支付(仅指第三方即时支付,如支付宝、微信、银联等)。 认证方式:HAWK,密钥:KEY+UPPER(MD5(密码))。

string

回复格式

Test application/json, text/json

Sample:
"sample string 1"

Test application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>