POST api/UnPos/CodeCard/WechatPay/Begin
开始一个微信网页内的支付
Request Information
URI Parameters
None.
Body Parameters
WechatMobilePayParmName | Description | Type | Additional information |
---|---|---|---|
openid |
微信OPENID |
string |
None. |
billnum |
单号。 |
string |
Required Max length: 20 |
billtype |
订单类型 1-景区系统 2-Pos系统 3-租车系统 4-环保车系统,5-装备租赁业务,6-联营零售业务,7-储值卡充值业务 因为不同的系统回调页面不一致,保存收款的表也不一致 |
string |
Required Max length: 1 |
body |
产品描述 |
string |
Required |
paytype |
付款方式。 |
string |
Required Max length: 2 |
paymentvalue |
支付的金额。 |
decimal number |
Required |
detail |
(可空)商品详情 |
string |
None. |
clientip |
(可空)客户端IP 没有取服务器的 |
string |
None. |
cardno |
卡号(储值卡充值时会用到) |
string |
Max length: 20 |
Request Formats
application/json, text/json
Sample:
{ "openid": "sample string 1", "billnum": "sample string 2", "billtype": "sample string 3", "body": "sample string 4", "paytype": "sample string 5", "paymentvalue": 6.0, "detail": "sample string 7", "clientip": "sample string 8", "cardno": "sample string 9" }
application/xml, text/xml
Sample:
<WechatMobilePayParm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Parm.Pay"> <billnum>sample string 2</billnum> <billtype>sample string 3</billtype> <body>sample string 4</body> <cardno>sample string 9</cardno> <clientip>sample string 8</clientip> <detail>sample string 7</detail> <paymentvalue>6</paymentvalue> <paytype>sample string 5</paytype> <openid>sample string 1</openid> </WechatMobilePayParm>
application/x-www-form-urlencoded
Sample:
Sample not available.
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
开始一个微信网页内的支付
CommonOperationResultWithTagOfPayWithWechatJsApiResultName | Description | Type | Additional information |
---|---|---|---|
errcode | integer |
None. |
|
errmsg | string |
None. |
|
tag | PayWithWechatJsApiResult |
None. |
Response Formats
application/json, text/json
Sample:
{ "errcode": 1, "errmsg": "sample string 2", "tag": { "wxJsApiParam": "sample string 1", "formdata": "sample string 2" } }
application/xml, text/xml
Sample:
<CommonOperationResultWithTagOfPayWithWechatJsApiResultKp9g8rEY xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer"> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <tag xmlns:d2p1="http://schemas.datacontract.org/2004/07/DigitalScience.DataTransfer.Tour.V5.Result.Pay"> <d2p1:formdata>sample string 2</d2p1:formdata> <d2p1:wxJsApiParam>sample string 1</d2p1:wxJsApiParam> </tag> </CommonOperationResultWithTagOfPayWithWechatJsApiResultKp9g8rEY>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.