update: alipay f2f sdk

This commit is contained in:
tokumeikoi 2022-02-24 23:09:04 +08:00
parent 313ac9d27f
commit 33b59d126e
2 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ class AlipayF2F {
{ {
try { try {
$gateway = new \Library\AlipayF2F(); $gateway = new \Library\AlipayF2F();
$gateway->setMethod('alipay.trade.precreate');
$gateway->setAppId($this->config['app_id']); $gateway->setAppId($this->config['app_id']);
$gateway->setPrivateKey($this->config['private_key']); // 可以是路径,也可以是密钥内容 $gateway->setPrivateKey($this->config['private_key']); // 可以是路径,也可以是密钥内容
$gateway->setAlipayPublicKey($this->config['public_key']); // 可以是路径,也可以是密钥内容 $gateway->setAlipayPublicKey($this->config['public_key']); // 可以是路径,也可以是密钥内容

3
public/theme/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*
!*v2board
!.gitignore