支付宝实名认证
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
namespace alipay;
|
namespace alipay;
|
||||||
|
|
||||||
require_once APP_PATH . 'alipay/aop/AopClient.php';
|
require_once APP_PATH . 'alipay/aop/AopCertClient.php';
|
||||||
require_once APP_PATH . 'alipay/aop/AopCertification.php';
|
require_once APP_PATH . 'alipay/aop/AopCertification.php';
|
||||||
require_once APP_PATH . 'alipay/aop/request/AlipayUserCertifyOpenInitializeRequest.php';
|
require_once APP_PATH . 'alipay/aop/request/AlipayUserCertifyOpenInitializeRequest.php';
|
||||||
require_once APP_PATH . 'alipay/aop/request/AlipayUserCertifyOpenQueryRequest.php';
|
require_once APP_PATH . 'alipay/aop/request/AlipayUserCertifyOpenQueryRequest.php';
|
||||||
@@ -20,7 +20,7 @@ class Aliverify
|
|||||||
public static function initVerify()
|
public static function initVerify()
|
||||||
{
|
{
|
||||||
global $config;
|
global $config;
|
||||||
$aop = new \AopClient();
|
$aop = new AopCertClient ();
|
||||||
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
|
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
|
||||||
$aop->appId = $config['alipay']['app_id'];
|
$aop->appId = $config['alipay']['app_id'];
|
||||||
$aop->rsaPrivateKey = $config['alipay']['private_key'];
|
$aop->rsaPrivateKey = $config['alipay']['private_key'];
|
||||||
|
|||||||
Reference in New Issue
Block a user