|
@@ -27,11 +27,6 @@ class AliPay {
|
|
|
* @param $options ['returnUrl'] 用于web支付返回地址
|
|
|
*/
|
|
|
public function __construct($options = null) {
|
|
|
-
|
|
|
- $this->rsaPrivateKey = isset ($options['private_key_path']) ? $options['private_key_path'] : config('private_key');
|
|
|
- $this->signType = isset ($options['sign_type']) ? $options['sign_type'] : config('ali_sign_type');
|
|
|
- $this->notifyUrl = isset ($options['notify_url']) ? $options['notify_url'] : config('notify_url');
|
|
|
- $this->alipayrsaPublicKey = isset ($options['ali_public_key_path']) ? $options['ali_public_key_path'] : config('ali_public_key');*/
|
|
|
$epayConfig = get_addon_config('epay');
|
|
|
$alipayConfig = isset($epayConfig['alipay']) ? $epayConfig['alipay'] : [];
|
|
|
$this->appId = isset ($options['appId']) ? $options['appId'] : $alipayConfig['app_id'];
|
|
@@ -273,7 +268,7 @@ class AliPay {
|
|
|
$responsecode = $responseResult->$responseApiName->code;
|
|
|
$result = [
|
|
|
'code' => $responsecode,
|
|
|
- 'sub_msg' => $responseResult->$responseApiName->msg,
|
|
|
+ 'sub_msg' => $responseResult->$responseApiName->sub_msg,
|
|
|
];
|
|
|
return $result;
|
|
|
|