https://opendocs.alipay.com/open/54/00y8k9
"alipay_confg" => array( ‘protocol‘ => "https", ‘gatewayHost‘ => "openapi.alipay.com", ‘signType‘ => "RSA2", ‘appId‘ => 2019022663440152, // 为避免私钥随源码泄露,推荐从文件中读取私钥字符串而不是写入源码中 ‘merchantPrivateKey‘ => "MIIEvQIBADANB", ‘alipayCertPath‘ => APPLICATION_PATH"/config/autoload/alipay/alipayCertPublicKey_RSA2.crt", //支付宝公钥证书文件路径 ‘alipayRootCertPath‘ => APPLICATION_PATH"/config/autoload/alipay/alipayRootCert.crt", //支付宝根证书文件路径 ‘merchantCertPath‘ => APPLICATION_PATH"/config/autoload/alipay/appCertPublicKey_2019051064521003.crt", //应用公钥证书文件路径 ‘alipayPublicKey‘ => "MIIBIjANBg...", //支付宝公钥 注:如果采用非证书模式,则无需赋值上面的三个证书路径,改为赋值如下的支付宝公钥字符串即可 ‘notifyUrl‘ => "https://www.test.com/callback", //支付类接口异步通知接收服务地址 ‘encryptKey‘ => "aa4BtZ4tspm2wnXLb1ThQA==", //AES密钥 )
原文:https://www.cnblogs.com/yipianchuyun/p/14385067.html