123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 |
- <?php
- class AlipayConfig {
-
- private $serverUrl;
-
- private $appId;
-
- private $format = "json";
-
- private $charset = "utf-8";
-
- private $signType = "RSA2";
-
- private $privateKey;
-
- private $alipayPublicKey;
-
- private $appCertPath;
-
- private $alipayPublicCertPath;
-
- private $rootCertPath;
-
- private $appCertContent;
-
- private $alipayPublicCertContent;
-
- private $rootCertContent;
-
- private $encryptType = "AES";
-
- private $encryptKey;
- public function getServerUrl() {
- return $this->serverUrl;
- }
- public function setServerUrl($serverUrl) {
- $this->serverUrl = $serverUrl;
- }
- public function getAppId(){
- return $this->appId;
- }
- public function setAppId($appId){
- $this->appId = $appId;
- }
- public function getFormat(){
- return $this->format;
- }
- public function setFormat($format){
- $this->format = $format;
- }
- public function getCharset() {
- return $this->charset;
- }
- public function setCharset($charset) {
- $this->charset = $charset;
- }
- public function getSignType() {
- return $this->signType;
- }
- public function setSignType($signType) {
- $this->signType = $signType;
- }
- public function getEncryptKey() {
- return $this->encryptKey;
- }
- public function setEncryptKey($encryptKey) {
- $this->encryptKey = $encryptKey;
- }
- public function getEncryptType() {
- return $this->encryptType;
- }
- public function setEncryptType($encryptType) {
- $this->encryptType = $encryptType;
- }
- public function getPrivateKey() {
- return $this->privateKey;
- }
- public function setPrivateKey($privateKey) {
- $this->privateKey = $privateKey;
- }
- public function getAlipayPublicKey() {
- return $this->alipayPublicKey;
- }
- public function setAlipayPublicKey($alipayPublicKey) {
- $this->alipayPublicKey = $alipayPublicKey;
- }
- public function getAppCertPath() {
- return $this->appCertPath;
- }
- public function setAppCertPath($appCertPath) {
- $this->appCertPath = $appCertPath;
- }
- public function getAlipayPublicCertPath() {
- return $this->alipayPublicCertPath;
- }
- public function setAlipayPublicCertPath($alipayPublicCertPath) {
- $this->alipayPublicCertPath = $alipayPublicCertPath;
- }
- public function getRootCertPath() {
- return $this->rootCertPath;
- }
- public function setRootCertPath($rootCertPath) {
- $this->rootCertPath = $rootCertPath;
- }
- public function getAppCertContent() {
- return $this->appCertContent;
- }
- public function setAppCertContent($appCertContent) {
- $this->appCertContent = $appCertContent;
- }
- public function getAlipayPublicCertContent() {
- return $this->alipayPublicCertContent;
- }
- public function setAlipayPublicCertContent($alipayPublicCertContent) {
- $this->alipayPublicCertContent = $alipayPublicCertContent;
- }
- public function getRootCertContent() {
- return $this->rootCertContent;
- }
- public function setRootCertContent($rootCertContent) {
- $this->rootCertContent = $rootCertContent;
- }
-
- }
|