| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368 |
- <?php
- namespace app\common\services\wechat\lib;
- /**
- *
- * 只使用md5算法进行签名, 不管配置的是什么签名方式,都只支持md5签名方式
- *
- **/
- class WxPayDataBaseSignMd5 extends WxPayDataBase
- {
- /**
- * 生成签名 - 重写该方法
- * @param WxPayConfigInterface $config 配置对象
- * @param bool $needSignType 是否需要补signtype
- * @return 签名,本函数不覆盖sign成员变量,如要设置签名需要调用SetSign方法赋值
- */
- public function MakeSign($config, $needSignType = false)
- {
- if($needSignType) {
- $this->SetSignType($config->GetSignType());
- }
- //签名步骤一:按字典序排序参数
- ksort($this->values);
- $string = $this->ToUrlParams();
- //签名步骤二:在string后加入KEY
- $string = $string . "&key=".$config->GetKey();
- //签名步骤三:MD5加密
- $string = md5($string);
- //签名步骤四:所有字符转为大写
- $result = strtoupper($string);
- return $result;
- }
- }
- /**
- *
- * 回调回包数据基类
- *
- **/
- class WxPayNotifyResults extends WxPayResults
- {
- /**
- * 将xml转为array
- * @param WxPayConfigInterface $config
- * @param string $xml
- * @return WxPayNotifyResults
- * @throws WxPayException
- */
- public static function Init($config, $xml)
- {
- $obj = new self();
- $obj->FromXml($xml);
- //失败则直接返回失败
- $obj->CheckSign($config);
- return $obj;
- }
- }
- /**
- *
- * 回调基础类
- * @author widyhu
- *
- */
- class WxPayNotifyReply extends WxPayDataBaseSignMd5
- {
- /**
- *
- * 设置错误码 FAIL 或者 SUCCESS
- * @param string
- */
- public function SetReturn_code($return_code)
- {
- $this->values['return_code'] = $return_code;
- }
-
- /**
- *
- * 获取错误码 FAIL 或者 SUCCESS
- * @return string $return_code
- */
- public function GetReturn_code()
- {
- return $this->values['return_code'];
- }
- /**
- *
- * 设置错误信息
- * @param string $return_code
- */
- public function SetReturn_msg($return_msg)
- {
- $this->values['return_msg'] = $return_msg;
- }
-
- /**
- *
- * 获取错误信息
- * @return string
- */
- public function GetReturn_msg()
- {
- return $this->values['return_msg'];
- }
-
- /**
- *
- * 设置返回参数
- * @param string $key
- * @param string $value
- */
- public function SetData($key, $value)
- {
- $this->values[$key] = $value;
- }
- }
- /**
- *
- * 关闭订单输入对象
- * @author widyhu
- *
- */
- class WxPayCloseOrder extends WxPayDataBase
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
- /**
- * 设置商户系统内部的订单号
- * @param string $value
- **/
- public function SetOut_trade_no($value)
- {
- $this->values['out_trade_no'] = $value;
- }
- /**
- * 获取商户系统内部的订单号的值
- * @return 值
- **/
- public function GetOut_trade_no()
- {
- return $this->values['out_trade_no'];
- }
- /**
- * 判断商户系统内部的订单号是否存在
- * @return true 或 false
- **/
- public function IsOut_trade_noSet()
- {
- return array_key_exists('out_trade_no', $this->values);
- }
- /**
- * 设置商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断商户系统内部的订单号,32个字符内、可包含字母, 其他说明见商户订单号是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
- }
- /**
- *
- * 退款查询输入对象
- * @author widyhu
- *
- */
- class WxPayRefundQuery extends WxPayDataBase
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
- /**
- * 设置微信支付分配的终端设备号
- * @param string $value
- **/
- public function SetDevice_info($value)
- {
- $this->values['device_info'] = $value;
- }
- /**
- * 获取微信支付分配的终端设备号的值
- * @return 值
- **/
- public function GetDevice_info()
- {
- return $this->values['device_info'];
- }
- /**
- * 判断微信支付分配的终端设备号是否存在
- * @return true 或 false
- **/
- public function IsDevice_infoSet()
- {
- return array_key_exists('device_info', $this->values);
- }
- /**
- * 设置随机字符串,不长于32位。推荐随机数生成算法
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取随机字符串,不长于32位。推荐随机数生成算法的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
- /**
- * 设置微信订单号
- * @param string $value
- **/
- public function SetTransaction_id($value)
- {
- $this->values['transaction_id'] = $value;
- }
- /**
- * 获取微信订单号的值
- * @return 值
- **/
- public function GetTransaction_id()
- {
- return $this->values['transaction_id'];
- }
- /**
- * 判断微信订单号是否存在
- * @return true 或 false
- **/
- public function IsTransaction_idSet()
- {
- return array_key_exists('transaction_id', $this->values);
- }
- /**
- * 设置商户系统内部的订单号
- * @param string $value
- **/
- public function SetOut_trade_no($value)
- {
- $this->values['out_trade_no'] = $value;
- }
- /**
- * 获取商户系统内部的订单号的值
- * @return 值
- **/
- public function GetOut_trade_no()
- {
- return $this->values['out_trade_no'];
- }
- /**
- * 判断商户系统内部的订单号是否存在
- * @return true 或 false
- **/
- public function IsOut_trade_noSet()
- {
- return array_key_exists('out_trade_no', $this->values);
- }
- /**
- * 设置商户退款单号
- * @param string $value
- **/
- public function SetOut_refund_no($value)
- {
- $this->values['out_refund_no'] = $value;
- }
- /**
- * 获取商户退款单号的值
- * @return 值
- **/
- public function GetOut_refund_no()
- {
- return $this->values['out_refund_no'];
- }
- /**
- * 判断商户退款单号是否存在
- * @return true 或 false
- **/
- public function IsOut_refund_noSet()
- {
- return array_key_exists('out_refund_no', $this->values);
- }
- /**
- * 设置微信退款单号refund_id、out_refund_no、out_trade_no、transaction_id四个参数必填一个,如果同时存在优先级为:refund_id>out_refund_no>transaction_id>out_trade_no
- * @param string $value
- **/
- public function SetRefund_id($value)
- {
- $this->values['refund_id'] = $value;
- }
- /**
- * 获取微信退款单号refund_id、out_refund_no、out_trade_no、transaction_id四个参数必填一个,如果同时存在优先级为:refund_id>out_refund_no>transaction_id>out_trade_no的值
- * @return 值
- **/
- public function GetRefund_id()
- {
- return $this->values['refund_id'];
- }
- /**
- * 判断微信退款单号refund_id、out_refund_no、out_trade_no、transaction_id四个参数必填一个,如果同时存在优先级为:refund_id>out_refund_no>transaction_id>out_trade_no是否存在
- * @return true 或 false
- **/
- public function IsRefund_idSet()
- {
- return array_key_exists('refund_id', $this->values);
- }
- }
- /**
- *
- * 下载对账单输入对象
- * @author widyhu
- *
- */
- class WxPayDownloadBill extends WxPayDataBase
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
- /**
- * 设置微信支付分配的终端设备号,填写此字段,只下载该设备号的对账单
- * @param string $value
- **/
- public function SetDevice_info($value)
- {
- $this->values['device_info'] = $value;
- }
- /**
- * 获取微信支付分配的终端设备号,填写此字段,只下载该设备号的对账单的值
- * @return 值
- **/
- public function GetDevice_info()
- {
- return $this->values['device_info'];
- }
- /**
- * 判断微信支付分配的终端设备号,填写此字段,只下载该设备号的对账单是否存在
- * @return true 或 false
- **/
- public function IsDevice_infoSet()
- {
- return array_key_exists('device_info', $this->values);
- }
- /**
- * 设置随机字符串,不长于32位。推荐随机数生成算法
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取随机字符串,不长于32位。推荐随机数生成算法的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
- /**
- * 设置下载对账单的日期,格式:20140603
- * @param string $value
- **/
- public function SetBill_date($value)
- {
- $this->values['bill_date'] = $value;
- }
- /**
- * 获取下载对账单的日期,格式:20140603的值
- * @return 值
- **/
- public function GetBill_date()
- {
- return $this->values['bill_date'];
- }
- /**
- * 判断下载对账单的日期,格式:20140603是否存在
- * @return true 或 false
- **/
- public function IsBill_dateSet()
- {
- return array_key_exists('bill_date', $this->values);
- }
- /**
- * 设置ALL,返回当日所有订单信息,默认值SUCCESS,返回当日成功支付的订单REFUND,返回当日退款订单REVOKED,已撤销的订单
- * @param string $value
- **/
- public function SetBill_type($value)
- {
- $this->values['bill_type'] = $value;
- }
- /**
- * 获取ALL,返回当日所有订单信息,默认值SUCCESS,返回当日成功支付的订单REFUND,返回当日退款订单REVOKED,已撤销的订单的值
- * @return 值
- **/
- public function GetBill_type()
- {
- return $this->values['bill_type'];
- }
- /**
- * 判断ALL,返回当日所有订单信息,默认值SUCCESS,返回当日成功支付的订单REFUND,返回当日退款订单REVOKED,已撤销的订单是否存在
- * @return true 或 false
- **/
- public function IsBill_typeSet()
- {
- return array_key_exists('bill_type', $this->values);
- }
- }
- /**
- *
- * 测速上报输入对象
- * @author widyhu
- *
- */
- class WxPayReport extends WxPayDataBase
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
- /**
- * 设置微信支付分配的终端设备号,商户自定义
- * @param string $value
- **/
- public function SetDevice_info($value)
- {
- $this->values['device_info'] = $value;
- }
- /**
- * 获取微信支付分配的终端设备号,商户自定义的值
- * @return 值
- **/
- public function GetDevice_info()
- {
- return $this->values['device_info'];
- }
- /**
- * 判断微信支付分配的终端设备号,商户自定义是否存在
- * @return true 或 false
- **/
- public function IsDevice_infoSet()
- {
- return array_key_exists('device_info', $this->values);
- }
- /**
- * 设置随机字符串,不长于32位。推荐随机数生成算法
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取随机字符串,不长于32位。推荐随机数生成算法的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
- /**
- * 设置上报对应的接口的完整URL,类似:https://api.mch.weixin.qq.com/pay/unifiedorder对于被扫支付,为更好的和商户共同分析一次业务行为的整体耗时情况,对于两种接入模式,请都在门店侧对一次被扫行为进行一次单独的整体上报,上报URL指定为:https://api.mch.weixin.qq.com/pay/micropay/total关于两种接入模式具体可参考本文档章节:被扫支付商户接入模式其它接口调用仍然按照调用一次,上报一次来进行。
- * @param string $value
- **/
- public function SetInterface_url($value)
- {
- $this->values['interface_url'] = $value;
- }
- /**
- * 获取上报对应的接口的完整URL,类似:https://api.mch.weixin.qq.com/pay/unifiedorder对于被扫支付,为更好的和商户共同分析一次业务行为的整体耗时情况,对于两种接入模式,请都在门店侧对一次被扫行为进行一次单独的整体上报,上报URL指定为:https://api.mch.weixin.qq.com/pay/micropay/total关于两种接入模式具体可参考本文档章节:被扫支付商户接入模式其它接口调用仍然按照调用一次,上报一次来进行。的值
- * @return 值
- **/
- public function GetInterface_url()
- {
- return $this->values['interface_url'];
- }
- /**
- * 判断上报对应的接口的完整URL,类似:https://api.mch.weixin.qq.com/pay/unifiedorder对于被扫支付,为更好的和商户共同分析一次业务行为的整体耗时情况,对于两种接入模式,请都在门店侧对一次被扫行为进行一次单独的整体上报,上报URL指定为:https://api.mch.weixin.qq.com/pay/micropay/total关于两种接入模式具体可参考本文档章节:被扫支付商户接入模式其它接口调用仍然按照调用一次,上报一次来进行。是否存在
- * @return true 或 false
- **/
- public function IsInterface_urlSet()
- {
- return array_key_exists('interface_url', $this->values);
- }
- /**
- * 设置接口耗时情况,单位为毫秒
- * @param string $value
- **/
- public function SetExecute_time_($value)
- {
- $this->values['execute_time_'] = $value;
- }
- /**
- * 获取接口耗时情况,单位为毫秒的值
- * @return 值
- **/
- public function GetExecute_time_()
- {
- return $this->values['execute_time_'];
- }
- /**
- * 判断接口耗时情况,单位为毫秒是否存在
- * @return true 或 false
- **/
- public function IsExecute_time_Set()
- {
- return array_key_exists('execute_time_', $this->values);
- }
- /**
- * 设置SUCCESS/FAIL此字段是通信标识,非交易标识,交易是否成功需要查看trade_state来判断
- * @param string $value
- **/
- public function SetReturn_code($value)
- {
- $this->values['return_code'] = $value;
- }
- /**
- * 获取SUCCESS/FAIL此字段是通信标识,非交易标识,交易是否成功需要查看trade_state来判断的值
- * @return 值
- **/
- public function GetReturn_code()
- {
- return $this->values['return_code'];
- }
- /**
- * 判断SUCCESS/FAIL此字段是通信标识,非交易标识,交易是否成功需要查看trade_state来判断是否存在
- * @return true 或 false
- **/
- public function IsReturn_codeSet()
- {
- return array_key_exists('return_code', $this->values);
- }
- /**
- * 设置返回信息,如非空,为错误原因签名失败参数格式校验错误
- * @param string $value
- **/
- public function SetReturn_msg($value)
- {
- $this->values['return_msg'] = $value;
- }
- /**
- * 获取返回信息,如非空,为错误原因签名失败参数格式校验错误的值
- * @return 值
- **/
- public function GetReturn_msg()
- {
- return $this->values['return_msg'];
- }
- /**
- * 判断返回信息,如非空,为错误原因签名失败参数格式校验错误是否存在
- * @return true 或 false
- **/
- public function IsReturn_msgSet()
- {
- return array_key_exists('return_msg', $this->values);
- }
- /**
- * 设置SUCCESS/FAIL
- * @param string $value
- **/
- public function SetResult_code($value)
- {
- $this->values['result_code'] = $value;
- }
- /**
- * 获取SUCCESS/FAIL的值
- * @return 值
- **/
- public function GetResult_code()
- {
- return $this->values['result_code'];
- }
- /**
- * 判断SUCCESS/FAIL是否存在
- * @return true 或 false
- **/
- public function IsResult_codeSet()
- {
- return array_key_exists('result_code', $this->values);
- }
- /**
- * 设置ORDERNOTEXIST—订单不存在SYSTEMERROR—系统错误
- * @param string $value
- **/
- public function SetErr_code($value)
- {
- $this->values['err_code'] = $value;
- }
- /**
- * 获取ORDERNOTEXIST—订单不存在SYSTEMERROR—系统错误的值
- * @return 值
- **/
- public function GetErr_code()
- {
- return $this->values['err_code'];
- }
- /**
- * 判断ORDERNOTEXIST—订单不存在SYSTEMERROR—系统错误是否存在
- * @return true 或 false
- **/
- public function IsErr_codeSet()
- {
- return array_key_exists('err_code', $this->values);
- }
- /**
- * 设置结果信息描述
- * @param string $value
- **/
- public function SetErr_code_des($value)
- {
- $this->values['err_code_des'] = $value;
- }
- /**
- * 获取结果信息描述的值
- * @return 值
- **/
- public function GetErr_code_des()
- {
- return $this->values['err_code_des'];
- }
- /**
- * 判断结果信息描述是否存在
- * @return true 或 false
- **/
- public function IsErr_code_desSet()
- {
- return array_key_exists('err_code_des', $this->values);
- }
- /**
- * 设置商户系统内部的订单号,商户可以在上报时提供相关商户订单号方便微信支付更好的提高服务质量。
- * @param string $value
- **/
- public function SetOut_trade_no($value)
- {
- $this->values['out_trade_no'] = $value;
- }
- /**
- * 获取商户系统内部的订单号,商户可以在上报时提供相关商户订单号方便微信支付更好的提高服务质量。 的值
- * @return 值
- **/
- public function GetOut_trade_no()
- {
- return $this->values['out_trade_no'];
- }
- /**
- * 判断商户系统内部的订单号,商户可以在上报时提供相关商户订单号方便微信支付更好的提高服务质量。 是否存在
- * @return true 或 false
- **/
- public function IsOut_trade_noSet()
- {
- return array_key_exists('out_trade_no', $this->values);
- }
- /**
- * 设置发起接口调用时的机器IP
- * @param string $value
- **/
- public function SetUser_ip($value)
- {
- $this->values['user_ip'] = $value;
- }
- /**
- * 获取发起接口调用时的机器IP 的值
- * @return 值
- **/
- public function GetUser_ip()
- {
- return $this->values['user_ip'];
- }
- /**
- * 判断发起接口调用时的机器IP 是否存在
- * @return true 或 false
- **/
- public function IsUser_ipSet()
- {
- return array_key_exists('user_ip', $this->values);
- }
- /**
- * 设置系统时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则
- * @param string $value
- **/
- public function SetTime($value)
- {
- $this->values['time'] = $value;
- }
- /**
- * 获取系统时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则的值
- * @return 值
- **/
- public function GetTime()
- {
- return $this->values['time'];
- }
- /**
- * 判断系统时间,格式为yyyyMMddHHmmss,如2009年12月27日9点10分10秒表示为20091227091010。其他详见时间规则是否存在
- * @return true 或 false
- **/
- public function IsTimeSet()
- {
- return array_key_exists('time', $this->values);
- }
- }
- /**
- *
- * 短链转换输入对象
- * @author widyhu
- *
- */
- class WxPayShortUrl extends WxPayDataBase
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
- /**
- * 设置需要转换的URL,签名用原串,传输需URL encode
- * @param string $value
- **/
- public function SetLong_url($value)
- {
- $this->values['long_url'] = $value;
- }
- /**
- * 获取需要转换的URL,签名用原串,传输需URL encode的值
- * @return 值
- **/
- public function GetLong_url()
- {
- return $this->values['long_url'];
- }
- /**
- * 判断需要转换的URL,签名用原串,传输需URL encode是否存在
- * @return true 或 false
- **/
- public function IsLong_urlSet()
- {
- return array_key_exists('long_url', $this->values);
- }
- /**
- * 设置随机字符串,不长于32位。推荐随机数生成算法
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取随机字符串,不长于32位。推荐随机数生成算法的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
- }
- /**
- *
- * 撤销输入对象
- * @author widyhu
- *
- */
- class WxPayReverse extends WxPayDataBase
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
- /**
- * 设置微信的订单号,优先使用
- * @param string $value
- **/
- public function SetTransaction_id($value)
- {
- $this->values['transaction_id'] = $value;
- }
- /**
- * 获取微信的订单号,优先使用的值
- * @return 值
- **/
- public function GetTransaction_id()
- {
- return $this->values['transaction_id'];
- }
- /**
- * 判断微信的订单号,优先使用是否存在
- * @return true 或 false
- **/
- public function IsTransaction_idSet()
- {
- return array_key_exists('transaction_id', $this->values);
- }
- /**
- * 设置商户系统内部的订单号,transaction_id、out_trade_no二选一,如果同时存在优先级:transaction_id> out_trade_no
- * @param string $value
- **/
- public function SetOut_trade_no($value)
- {
- $this->values['out_trade_no'] = $value;
- }
- /**
- * 获取商户系统内部的订单号,transaction_id、out_trade_no二选一,如果同时存在优先级:transaction_id> out_trade_no的值
- * @return 值
- **/
- public function GetOut_trade_no()
- {
- return $this->values['out_trade_no'];
- }
- /**
- * 判断商户系统内部的订单号,transaction_id、out_trade_no二选一,如果同时存在优先级:transaction_id> out_trade_no是否存在
- * @return true 或 false
- **/
- public function IsOut_trade_noSet()
- {
- return array_key_exists('out_trade_no', $this->values);
- }
- /**
- * 设置随机字符串,不长于32位。推荐随机数生成算法
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取随机字符串,不长于32位。推荐随机数生成算法的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断随机字符串,不长于32位。推荐随机数生成算法是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
- }
- /**
- *
- * 扫码支付模式一生成二维码参数
- * @author widyhu
- *
- */
- class WxPayBizPayUrl extends WxPayDataBaseSignMd5
- {
- /**
- * 设置微信分配的公众账号ID
- * @param string $value
- **/
- public function SetAppid($value)
- {
- $this->values['appid'] = $value;
- }
- /**
- * 获取微信分配的公众账号ID的值
- * @return 值
- **/
- public function GetAppid()
- {
- return $this->values['appid'];
- }
- /**
- * 判断微信分配的公众账号ID是否存在
- * @return true 或 false
- **/
- public function IsAppidSet()
- {
- return array_key_exists('appid', $this->values);
- }
- /**
- * 设置微信支付分配的商户号
- * @param string $value
- **/
- public function SetMch_id($value)
- {
- $this->values['mch_id'] = $value;
- }
- /**
- * 获取微信支付分配的商户号的值
- * @return 值
- **/
- public function GetMch_id()
- {
- return $this->values['mch_id'];
- }
- /**
- * 判断微信支付分配的商户号是否存在
- * @return true 或 false
- **/
- public function IsMch_idSet()
- {
- return array_key_exists('mch_id', $this->values);
- }
-
- /**
- * 设置支付时间戳
- * @param string $value
- **/
- public function SetTime_stamp($value)
- {
- $this->values['time_stamp'] = $value;
- }
- /**
- * 获取支付时间戳的值
- * @return 值
- **/
- public function GetTime_stamp()
- {
- return $this->values['time_stamp'];
- }
- /**
- * 判断支付时间戳是否存在
- * @return true 或 false
- **/
- public function IsTime_stampSet()
- {
- return array_key_exists('time_stamp', $this->values);
- }
-
- /**
- * 设置随机字符串
- * @param string $value
- **/
- public function SetNonce_str($value)
- {
- $this->values['nonce_str'] = $value;
- }
- /**
- * 获取随机字符串的值
- * @return 值
- **/
- public function GetNonce_str()
- {
- return $this->values['nonce_str'];
- }
- /**
- * 判断随机字符串是否存在
- * @return true 或 false
- **/
- public function IsNonce_strSet()
- {
- return array_key_exists('nonce_str', $this->values);
- }
-
- /**
- * 设置商品ID
- * @param string $value
- **/
- public function SetProduct_id($value)
- {
- $this->values['product_id'] = $value;
- }
- /**
- * 获取商品ID的值
- * @return 值
- **/
- public function GetProduct_id()
- {
- return $this->values['product_id'];
- }
- /**
- * 判断商品ID是否存在
- * @return true 或 false
- **/
- public function IsProduct_idSet()
- {
- return array_key_exists('product_id', $this->values);
- }
- }
|