update: fix alipay f2f sdk

This commit is contained in:
tokumeikoi
2022-03-09 02:40:29 +08:00
parent 5d051994be
commit 9f6683592c
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ class AlipayF2F {
public function notify($params)
{
if ($params['trade_status'] !== 'TRADE_SUCCESS') return false;
$gateway = new \Library\AlipayF2F();
$gateway->setAppId($this->config['app_id']);
$gateway->setPrivateKey($this->config['private_key']); // 可以是路径,也可以是密钥内容