\Yurun\PaySDK\Weixin\ExchageRateRequest

微信支付-汇率查询请求类.

Summary

Methods
Properties
Constants
__construct()
__onExecute()
$_apiMethod
$needAppID
$needMchID
$needSignType
$signType
$needNonceStr
$allowReport
$_method
$_isSyncVerify
$_contentType
$sub_mch_id
$fee_type
$date
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

$sub_mch_id

$sub_mch_id : string

微信支付分配的子商户号.

Type

string

$fee_type

$fee_type : string

外币币种,详情见https://pay.weixin.qq.com/wiki/doc/api/external/native.php?chapter=4_2.

Type

string

$date

$date : string

日期,格式为yyyyMMdd.

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