http 支付宝验证
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* @Author: 万永康
|
* @Author: 万永康
|
||||||
* @Date: 2020-10-11 12:32:50
|
* @Date: 2020-10-11 12:32:50
|
||||||
* @LastEditTime: 2024-01-06 14:34:37
|
* @LastEditTime: 2024-01-13 17:26:43
|
||||||
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
* @LastEditors: “wanyongkang” “937888580@qq.com”
|
||||||
* @Description: In User Settings Edit
|
* @Description: In User Settings Edit
|
||||||
* @FilePath: /phptest/alipay/Alipay.php
|
* @FilePath: /phptest/alipay/Alipay.php
|
||||||
@@ -191,10 +191,11 @@ class Alipay
|
|||||||
*/
|
*/
|
||||||
public static function payVerify2($post) {
|
public static function payVerify2($post) {
|
||||||
global $config;
|
global $config;
|
||||||
$aop = new \AopClient ();
|
$aop = new \AopClient();
|
||||||
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
|
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
|
||||||
$aop->appId = $config['alipay2']['app_id'];;
|
$aop->appId = $config['alipay2']['app_id'];;
|
||||||
$aop->rsaPrivateKey = $config['alipay2']['private_key'] ;
|
$aop->rsaPrivateKey = $config['alipay2']['private_key'] ;
|
||||||
|
$aop->alipayrsaPublicKey = $config['public_key'];
|
||||||
$aop->apiVersion = '1.0';
|
$aop->apiVersion = '1.0';
|
||||||
$aop->signType = 'RSA2';
|
$aop->signType = 'RSA2';
|
||||||
$aop->postCharset='utf-8';
|
$aop->postCharset='utf-8';
|
||||||
|
|||||||
Reference in New Issue
Block a user