Jsapi支付下单接口
Pay接口
jsapi支付下单接口
POST
USEEPAY_PATH/api
Headers
content-type*
String
application/x-www-form-urlencoded
Request Body
transactionType*
String
交易类型 : pay
version*
String(5)
目前固定为 1.0 (5)
signType*
String
商户生成签名字符串所使用的签名算法类型,目前支持:RSA/MD5
merchantNo*
String(16)
商户号
transactionId*
String(64)
商户订单号
transactionExpirationTime
String(6)
可选,默认为20分钟 .范围1-20
appId*
String (128)
网站域名
amount*
String(12)
currency*
String(3)
notifyUrl*
String(512)
echoParam
String(256)
回声参数,响应报文会原样返回
payerInfo*
String
Json格式的String 付款方信息, 请下方
orderInfo
String
json string, 订单信息, 请参考下方
Request 参数详细描述
PayerInfo 付款人信息
paymentMethod
Y
String
目前固定为 wechat_jsapi
sub_appid
Y
String
公众号id
sub_openid
Y
String
orderInfo 订单信息
subject
Y
String
商品标题
Response
resultCode
Y
reference
USEEPAY 订单号
N
transactionType
支付类型 pay
Y
transactionId
商户订单号
Y
sign
签名
Y
echoParam
回声参数,响应报文会原样返回
N
errorMsg
错误码消息描述
Y
errorCode
错误码(详见 错误码 errorCode)
Y
currency
Y
amount
订单金额
Y
微信公众号支付需要的参数Json String
N
签名类型
Y
redirectParam
timeStamp
时间戳
Y
package
统一下单接口返回的prepay_id参数值,提交格式如:prepay_id=***
Y
paySign
微信签名
Y
appId
公众号名称,由商户传入
Y
signType
微信签名方式 固定诶RSA
Y
noceStr
随机串
Y
Last updated