POST api/3Pay/AliPay/ScanCode

发起一个支付宝的线下扫码支付 《1》调用存储过程Sp_3Pay_Offline_ReceiveMoney_Begin保存第三方支付的发起记录 《2》调用支付宝接口发起一个获取支付二维码url的请求 《3》发起支付参数可传入客户端IP,未传入时默认取202.96.128.68 注:该接口必须要连上互联网,否则会失败,请直接部署至外网服务器 注:该接口操作成功仅仅代表着获取支付二维码url成功,并不代表着付款成功,需要再次调用查询支付结果判断是否支付成功

Request Information

URI Parameters

None.

Body Parameters

发起支付的参数

AliScanCodeParm
NameDescriptionTypeAdditional information
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:
{
  "billnum": "sample string 1",
  "billtype": "sample string 2",
  "body": "sample string 3",
  "paytype": "sample string 4",
  "paymentvalue": 5.0,
  "detail": "sample string 6",
  "clientip": "sample string 7",
  "cardno": "sample string 8"
}

application/xml, text/xml

Sample:
<AliScanCodeParm 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 1</billnum>
  <billtype>sample string 2</billtype>
  <body>sample string 3</body>
  <cardno>sample string 8</cardno>
  <clientip>sample string 7</clientip>
  <detail>sample string 6</detail>
  <paymentvalue>5</paymentvalue>
  <paytype>sample string 4</paytype>
</AliScanCodeParm>

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

发起一个支付宝的线下扫码支付 《1》调用存储过程Sp_3Pay_Offline_ReceiveMoney_Begin保存第三方支付的发起记录 《2》调用支付宝接口发起一个获取支付二维码url的请求 《3》发起支付参数可传入客户端IP,未传入时默认取202.96.128.68 注:该接口必须要连上互联网,否则会失败,请直接部署至外网服务器 注:该接口操作成功仅仅代表着获取支付二维码url成功,并不代表着付款成功,需要再次调用查询支付结果判断是否支付成功

CommonOperationResultWithTagOfPayScanCodeResult
NameDescriptionTypeAdditional information
errcode

integer

None.

errmsg

string

None.

tag

PayScanCodeResult

None.

Response Formats

application/json, text/json

Sample:
{
  "errcode": 1,
  "errmsg": "sample string 2",
  "tag": {
    "billnum": "sample string 1",
    "autoid": "sample string 2",
    "codeurl": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<CommonOperationResultWithTagOfPayScanCodeResultKp9g8rEY 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:autoid>sample string 2</d2p1:autoid>
    <d2p1:billnum>sample string 1</d2p1:billnum>
    <d2p1:codeurl>sample string 3</d2p1:codeurl>
  </tag>
</CommonOperationResultWithTagOfPayScanCodeResultKp9g8rEY>

application/bson

Sample:
Binary JSON content. See http://bsonspec.org for details.