This commit is contained in:
“wanyongkang”
2024-02-22 16:13:10 +08:00
parent 7772070a58
commit c2ce947b74
9 changed files with 442 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
/*
* @Author: 万永康
* @Date: 2020-10-11 12:32:50
* @LastEditTime: 2024-01-27 16:19:49
* @LastEditTime: 2024-02-20 16:23:38
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @Description: In User Settings Edit
* @FilePath: /phptest/alipay/Alipay.php
@@ -183,6 +183,36 @@ class Alipay
return $result;
}
public static function pay_jinqiao($param)
{
global $config;
$aop = new \AopClient ();
$aop->gatewayUrl = 'https://openapi.alipay.com/gateway.do';
$aop->appId = $config['alipay2']['app_id'];;
$aop->rsaPrivateKey = $config['alipay2']['private_key'] ;
$aop->apiVersion = '1.0';
$aop->signType = 'RSA2';
$aop->postCharset='utf-8';
$aop->format='json';
$aop->alipayrsaPublicKey = $config['alipay2']['public_key'];
$request = new \AlipayTradePagePayRequest();
$param = json_encode($param);
$request->setReturnUrl('http://www.juip.com/user/Index');
$notifyUrl="http://php-api.juip.com/common/alipay/jinqiaoalipayverify";
$request->setNotifyUrl($notifyUrl);
$request->setBizContent($param);
$result = $aop->pageExecute ( $request);
return $result;
}
/**