123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <?php
-
- require_once "WxPayConfigInterface.php";
-
-
-
- class WxPayConfig extends WxPayConfigInterface
- {
- public $app_id;
- public $mch_id;
- public $key;
-
- public function __construct($data) {
- $this->app_id = $data['app_id'];
- $this->mch_id = $data['mch_id'];
- $this->key = $data['key'];
- }
-
-
-
- public function GetAppId()
- {
- return $this->app_id;
- }
- public function GetMerchantId()
- {
- return $this->mch_id;
- }
-
-
-
-
- public function GetNotifyUrl()
- {
- return "";
- }
- public function GetSignType()
- {
- return "HMAC-SHA256";
- }
-
-
-
-
- public function GetProxy(&$proxyHost, &$proxyPort)
- {
- $proxyHost = "0.0.0.0";
- $proxyPort = 0;
- }
-
-
-
-
-
- public function GetReportLevenl()
- {
- return 1;
- }
-
-
-
-
-
- public function GetKey()
- {
- return $this->key;
- }
- public function GetAppSecret()
- {
- return 'xxxxxxxxxxxxx';
- }
-
-
-
-
-
- public function GetSSLCertPath(&$sslCertPath, &$sslKeyPath)
- {
- $sslCertPath = '../cert/apiclient_cert.pem';
- $sslKeyPath = '../cert/apiclient_key.pem';
- }
- }
|