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

View File

@ -237,5 +237,5 @@ return [
| The only modification by laravel config | The only modification by laravel config
| |
*/ */
'version' => '1.5.5.1646749167674' 'version' => '1.5.5.1646764814759'
]; ];