Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UnifiedOrderOptionsPub

统一下单选项,限公众号支付

see

https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_1

Hierarchy

Index

Properties

Optional attach

attach: string

附加数据

description

附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用。

example

深圳分店

typedef

String(127)

body

body: string

商品描述

description

商品简单描述,该字段请按照规范传递,具体请见参数规定

example

腾讯充值中心-QQ会员充值

typedef

String(128)

Optional detail

detail: string

商品详情

description

商品详细描述,对于使用单品优惠的商户,改字段必须按照规范上传,详见“单品优惠参数说明”

typedef

String(6000)

Optional fee_type

fee_type: string

标价币种

description

符合ISO 4217标准的三位字母代码,默认人民币:CNY,详细列表请参见货币类型

example

CNY

typedef

String(16)

Optional goods_tag

goods_tag: string

订单优惠标记

description

订单优惠标记,使用代金券或立减优惠功能时需要的参数,说明详见代金券或立减优惠

example

WXG

typedef

String(32)

Optional limit_pay

limit_pay: string

指定支付方式

description

上传此参数no_credit--可限制用户不能使用信用卡支付

example

no_credit

typedef

String(32)

notify_url

notify_url: string

通知地址

description

异步接收微信支付结果通知的回调地址,通知url必须为外网可访问的url,不能携带参数。

example

http://www.weixin.qq.com/wxpay/pay.php

typedef

String(256)

openid

openid: string

用户标识

description

trade_type=JSAPI时(即公众号支付),此参数必传,此参数为微信用户在商户对应appid下的唯一标识。 openid如何获取,可参考【获取openid】。企业号请使用【企业号OAuth2.0接口】获取企业号内成员userid,再调用【企业号userid转openid接口】进行转换

example

oUpF8uMuAJO_M2pxb1Q9zNjWeS6o

typedef

String(128)

out_trade_no

out_trade_no: string

商户订单号

description

商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|* 且在同一个商户号下唯一。详见商户订单号

example

20150806125346

typedef

String(32)

Optional sign_type

sign_type: SignType

签名类型

description

签名类型,默认为MD5,支持HMAC-SHA256和MD5。

example

MD5

typedef

String(32)

spbill_create_ip

spbill_create_ip: string

终端IP

description

APP和网页支付提交用户端ip,Native支付填调用微信支付API的机器IP。

example

123.12.12.123

typedef

String(16)

Optional time_expire

time_expire: string

交易结束时间

description

订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。 订单失效时间是针对订单号而言的,由于在请求支付的时候有一个必传参数prepay_id只有两小时的有效期, 所以在重入时间超过2小时的时候需要重新请求下单接口获取新的prepay_id。其他详见时间规则建议:最短失效时间间隔大于1分钟

example

20091227091010

typedef

String(14)

Optional time_start

time_start: string

交易起始时间

description

订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则

example

20091225091010

typedef

String(14)

total_fee

total_fee: number

标价金额

description

订单总金额,单位为分,详见支付金额

example

88

typedef

Int

Generated using TypeDoc