\Yurun\PaySDK\Weixin\ParamsPayRequestBase

微信支付-支付请求基类.

Summary

Methods
Properties
Constants
__construct()
__onExecute()
$_apiMethod
$needAppID
$needMchID
$needSignType
$signType
$needNonceStr
$allowReport
$_method
$_isSyncVerify
$_contentType
$device_info
$body
$detail
$attach
$out_trade_no
$fee_type
$total_fee
$spbill_create_ip
$time_start
$time_expire
$goods_tag
$notify_url
$trade_type
$limit_pay
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$_apiMethod

$_apiMethod : string

接口名称.

Type

string

$needAppID

$needAppID : boolean

参数中是否需要带有app_id.

Type

boolean

$needMchID

$needMchID : boolean

参数中是否需要带有mch_id.

Type

boolean

$needSignType

$needSignType : boolean

参数中是否需要带有sign_type.

Type

boolean

$signType

$signType : string

签名类型,为null时使用publicParams设置.

Type

string

$needNonceStr

$needNonceStr : boolean|string

参数中是否需要带有nonce_str 为true时,自动带上nonce_str 为false时,不带上nonce_str 为字符串时,使用该字符串作为nonce_str字段名.

Type

boolean|string

$allowReport

$allowReport : boolean

是否允许上报.

Type

boolean

$_method

$_method : string

接口请求方法.

Type

string

$_isSyncVerify

$_isSyncVerify : boolean

是否同步返回验证

Type

boolean

$_contentType

$_contentType : string|null

Content-Type.

Type

string|null

$device_info

$device_info : string

终端设备号(门店号或收银设备ID),注意:PC网页或公众号内支付请传"WEB".

Type

string

$body

$body : string

商品简单描述,该字段须严格按照规范传递,具体请见https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=4_2.

Type

string

$detail

$detail : \Yurun\PaySDK\Weixin\Params\Detail

商品详细描述,对于使用单品优惠的商户,改字段必须按照规范上传,详见https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_102&index=2.

Type

\Yurun\PaySDK\Weixin\Params\Detail

$attach

$attach : string

附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据.

Type

string

$out_trade_no

$out_trade_no : string

商户系统内部的订单号,32个字符内、可包含字母, 其他说明见https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=4_2.

Type

string

$fee_type

$fee_type : string

符合ISO 4217标准的三位字母代码,默认人民币:CNY,其他值列表详见https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=4_2.

Type

string

$total_fee

$total_fee : string

订单总金额,单位为分,详见https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=4_2.

Type

string

$spbill_create_ip

$spbill_create_ip : string

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

Type

string

$time_start

$time_start : string

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

Type

string

$time_expire

$time_expire : string

订单失效时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。 注意:最短失效时间间隔必须大于5分钟

Type

string

$goods_tag

$goods_tag : string

订单优惠标记(商品标记) 商品标记,代金券或立减优惠功能的参数,说明详见https://pay.weixin.qq.com/wiki/doc/api/tools/sp_coupon.php?chapter=12_1.

Type

string

$notify_url

$notify_url : string

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

Type

string

$trade_type

$trade_type : string

交易类型,取值如下:JSAPI,NATIVE,APP等.

Type

string

$limit_pay

$limit_pay : string

指定支付方式 no_credit--指定不能使用信用卡支付.

Type

string

Methods

__construct()

__construct() 

__onExecute()

__onExecute(\Yurun\PaySDK\Base  $sdk, string  $format) : boolean

当调用SDK的execute时触发,返回true时不执行SDK中默认的执行逻辑.

Parameters

\Yurun\PaySDK\Base $sdk
string $format

数据格式,json、xml等

Returns

boolean