POST api/Order/BeginToPay/ABCJsapi
农行微信支付使用JSAPI支付的代码
请求信息
URI参数
None.
窗体参数
PayContent| Name | Description | Type | Additional 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:
没有示例。
回复信息
资源描述
农行微信支付使用JSAPI支付的代码
PayWithWechatJsapiResult| Name | Description | Type | Additional information |
|---|---|---|---|
| wxJsApiParam |
起调H5 JSAPI支付的微信参数的密文 TripleDes(wxJsapiParm,Key); |
string |
None. |
| formdata |
窗体数据密文 TripleDes(formdata,Key); |
string |
None. |
回复格式
Test application/json, text/json
Sample:
{
"wxJsApiParam": "sample string 1",
"formdata": "sample string 2"
}
Test application/xml, text/xml
Sample:
<PayWithWechatJsapiResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TourWebApi.Models.Result"> <formdata>sample string 2</formdata> <wxJsApiParam>sample string 1</wxJsApiParam> </PayWithWechatJsapiResult>