From 0875e34606abc720ed4159802868b675096f41f9 Mon Sep 17 00:00:00 2001 From: weizong song Date: Sun, 11 Apr 2021 13:16:45 +0800 Subject: [PATCH] up --- app/Libs/Alipay.class.php | 61 ++++++++ composer.json | 1 - composer.lock | 305 ++++++++------------------------------ config/pay.php | 77 ---------- 4 files changed, 123 insertions(+), 321 deletions(-) create mode 100644 app/Libs/Alipay.class.php delete mode 100644 config/pay.php diff --git a/app/Libs/Alipay.class.php b/app/Libs/Alipay.class.php new file mode 100644 index 0000000..dba7a02 --- /dev/null +++ b/app/Libs/Alipay.class.php @@ -0,0 +1,61 @@ +config = config("pay.alipay"); + } + + public function test() + { + $order = [ + 'out_trade_no' => time(), + 'total_amount' => '1', + 'subject' => 'test subject - 测试', + ]; + + $alipay = Pay::alipay($this->config)->scan($order); + return $alipay->send();// laravel 框架中请直接 `return $alipay` + } + + public function return() + { + $data = Pay::alipay($this->config)->verify(); // 是的,验签就这么简单! + + // 订单号:$data->out_trade_no + // 支付宝交易号:$data->trade_no + // 订单总金额:$data->total_amount + } + + public function notify() + { + $alipay = Pay::alipay($this->config); + + try { + $data = $alipay->verify(); // 是的,验签就这么简单! + + // 请自行对 trade_status 进行判断及其它逻辑进行判断,在支付宝的业务通知中,只有交易通知状态为 TRADE_SUCCESS 或 TRADE_FINISHED 时,支付宝才会认定为买家付款成功。 + // 1、商户需要验证该通知数据中的out_trade_no是否为商户系统中创建的订单号; + // 2、判断total_amount是否确实为该订单的实际金额(即商户订单创建时的金额); + // 3、校验通知中的seller_id(或者seller_email) 是否为out_trade_no这笔单据的对应的操作方(有的时候,一个商户可能有多个seller_id/seller_email); + // 4、验证app_id是否为该商户本身。 + // 5、其它业务逻辑情况 + + Log::debug('Alipay notify', $data->all()); + } catch (\Exception $e) { + // $e->getMessage(); + } + + return $alipay->success(); + } +} diff --git a/composer.json b/composer.json index c5fb171..a37317c 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,6 @@ "simplesoftwareio/simple-qrcode": "~2", "spatie/laravel-permission": "^3.11", "tymon/jwt-auth": "^1.0", - "yansongda/laravel-pay": "^2.3", "zircote/swagger-php": "^3.0" }, "require-dev": { diff --git a/composer.lock b/composer.lock index c35b668..5b5549a 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "ec8d438a46d0fc9690586d847ee24dae", + "content-hash": "b8ff78bfb22a69de3e425d40b2699815", "packages": [ { "name": "alicfeng/identity-card", @@ -3916,16 +3916,16 @@ }, { "name": "symfony/event-dispatcher", - "version": "v5.2.3", + "version": "v5.2.4", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "4f9760f8074978ad82e2ce854dff79a71fe45367" + "reference": "d08d6ec121a425897951900ab692b612a61d6240" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/4f9760f8074978ad82e2ce854dff79a71fe45367", - "reference": "4f9760f8074978ad82e2ce854dff79a71fe45367", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/d08d6ec121a425897951900ab692b612a61d6240", + "reference": "d08d6ec121a425897951900ab692b612a61d6240", "shasum": "", "mirrors": [ { @@ -3986,7 +3986,7 @@ ], "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", - "time": "2021-01-27T10:36:42+00:00" + "time": "2021-02-18T17:12:37+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -4176,16 +4176,16 @@ }, { "name": "symfony/http-foundation", - "version": "v5.2.3", + "version": "v5.2.4", "source": { "type": "git", "url": "https://github.com/symfony/http-foundation.git", - "reference": "20c554c0f03f7cde5ce230ed248470cccbc34c36" + "reference": "54499baea7f7418bce7b5ec92770fd0799e8e9bf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/http-foundation/zipball/20c554c0f03f7cde5ce230ed248470cccbc34c36", - "reference": "20c554c0f03f7cde5ce230ed248470cccbc34c36", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/54499baea7f7418bce7b5ec92770fd0799e8e9bf", + "reference": "54499baea7f7418bce7b5ec92770fd0799e8e9bf", "shasum": "", "mirrors": [ { @@ -4234,7 +4234,7 @@ ], "description": "Defines an object-oriented layer for the HTTP specification", "homepage": "https://symfony.com", - "time": "2021-02-03T04:42:09+00:00" + "time": "2021-02-25T17:16:57+00:00" }, { "name": "symfony/http-kernel", @@ -5914,187 +5914,6 @@ ], "time": "2020-11-12T00:07:28+00:00" }, - { - "name": "yansongda/laravel-pay", - "version": "v2.3.0", - "source": { - "type": "git", - "url": "https://github.com/yansongda/laravel-pay.git", - "reference": "855fb1df11d639b037685939c576a5d140fd7a75" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/yansongda/laravel-pay/zipball/855fb1df11d639b037685939c576a5d140fd7a75", - "reference": "855fb1df11d639b037685939c576a5d140fd7a75", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "illuminate/support": "^5.1 || ^6.0 || ^7.0 || ^8.0", - "yansongda/pay": "^2.0" - }, - "type": "library", - "extra": { - "laravel": { - "providers": [ - "Yansongda\\LaravelPay\\PayServiceProvider" - ], - "aliases": { - "Pay": "Yansongda\\LaravelPay\\Facades\\Pay" - } - } - }, - "autoload": { - "psr-4": { - "Yansongda\\LaravelPay\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "yansongda", - "email": "me@yansongda.cn" - } - ], - "description": "专注 Alipay 和 WeChat 的 laravel 支付扩展包", - "keywords": [ - "alipay", - "laravel", - "package", - "pay", - "wechat" - ], - "time": "2020-09-10T03:27:56+00:00" - }, - { - "name": "yansongda/pay", - "version": "v2.10.2", - "source": { - "type": "git", - "url": "https://github.com/yansongda/pay.git", - "reference": "8c258853b142c6d7589629b047ca5cb21232b509" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/yansongda/pay/zipball/8c258853b142c6d7589629b047ca5cb21232b509", - "reference": "8c258853b142c6d7589629b047ca5cb21232b509", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "ext-bcmath": "*", - "ext-json": "*", - "ext-libxml": "*", - "ext-openssl": "*", - "ext-simplexml": "*", - "php": ">=7.1.3", - "symfony/event-dispatcher": "^4.0 || ^5.0", - "symfony/http-foundation": "^4.0 || ^5.0.7", - "yansongda/supports": "^2.0" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.15", - "mockery/mockery": "^1.2", - "phpunit/phpunit": "^7.5" - }, - "type": "library", - "autoload": { - "psr-4": { - "Yansongda\\Pay\\": "src" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "yansongda", - "email": "me@yansongda.cn" - } - ], - "description": "专注 Alipay 和 WeChat 的支付扩展包", - "keywords": [ - "alipay", - "pay", - "wechat" - ], - "time": "2021-01-18T01:48:43+00:00" - }, - { - "name": "yansongda/supports", - "version": "v2.2.0", - "source": { - "type": "git", - "url": "https://github.com/yansongda/supports.git", - "reference": "de9a8d38b0461ddf9c12f27390dad9a40c9b4e3b" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/yansongda/supports/zipball/de9a8d38b0461ddf9c12f27390dad9a40c9b4e3b", - "reference": "de9a8d38b0461ddf9c12f27390dad9a40c9b4e3b", - "shasum": "", - "mirrors": [ - { - "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", - "preferred": true - } - ] - }, - "require": { - "guzzlehttp/guzzle": "^6.2 || ^7.0", - "monolog/monolog": "^1.23 || ^2.0", - "php": ">=7.1.3" - }, - "require-dev": { - "friendsofphp/php-cs-fixer": "^2.15", - "phpunit/phpunit": "^7.5", - "predis/predis": "^1.1" - }, - "suggest": { - "predis/predis": "Allows to use throttle feature" - }, - "type": "library", - "autoload": { - "psr-4": { - "Yansongda\\Supports\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "yansongda", - "email": "me@yansongda.cn" - } - ], - "description": "common components", - "keywords": [ - "Guzzle", - "array", - "collection", - "config", - "http", - "support", - "throttle" - ], - "time": "2020-10-14T08:17:18+00:00" - }, { "name": "zircote/swagger-php", "version": "3.1.0", @@ -6185,7 +6004,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6267,7 +6086,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6322,7 +6141,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6385,7 +6204,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6469,7 +6288,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6537,7 +6356,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6603,7 +6422,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6653,7 +6472,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6741,7 +6560,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6840,7 +6659,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6922,7 +6741,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -6979,7 +6798,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7040,7 +6859,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7117,7 +6936,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7172,7 +6991,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7239,7 +7058,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7296,7 +7115,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7349,7 +7168,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7421,7 +7240,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7495,7 +7314,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7549,7 +7368,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7625,7 +7444,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7687,7 +7506,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7740,7 +7559,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7795,7 +7614,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7853,7 +7672,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7904,7 +7723,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -7973,7 +7792,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8042,7 +7861,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8098,7 +7917,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8145,7 +7964,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8200,7 +8019,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8256,7 +8075,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8345,7 +8164,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8397,7 +8216,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8448,7 +8267,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8518,7 +8337,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8580,7 +8399,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8639,7 +8458,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8712,7 +8531,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8772,7 +8591,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8825,7 +8644,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8876,7 +8695,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8935,7 +8754,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -8983,7 +8802,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -9035,7 +8854,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -9084,7 +8903,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -9139,7 +8958,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -9189,7 +9008,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -9240,7 +9059,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] @@ -9286,7 +9105,7 @@ "shasum": "", "mirrors": [ { - "url": "https://mirrors.cloud.tencent.com/composer/dists/%package%/%reference%.%type%", + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", "preferred": true } ] diff --git a/config/pay.php b/config/pay.php deleted file mode 100644 index a6a39ce..0000000 --- a/config/pay.php +++ /dev/null @@ -1,77 +0,0 @@ - [ - // 支付宝分配的 APPID - 'app_id' => env('ALI_APP_ID', ''), - - // 支付宝异步通知地址 - 'notify_url' => '', - - // 支付成功后同步通知地址 - 'return_url' => '', - - // 阿里公共密钥,验证签名时使用 - 'ali_public_key' => env('ALI_PUBLIC_KEY', ''), - - // 自己的私钥,签名时使用 - 'private_key' => env('ALI_PRIVATE_KEY', ''), - - // 使用公钥证书模式,请配置下面两个参数,同时修改 ali_public_key 为以 .crt 结尾的支付宝公钥证书路径,如(./cert/alipayCertPublicKey_RSA2.crt) - // 应用公钥证书路径 - 'app_cert_public_key' => env('ALI_CERT_PUBLIC_KEY', ''), - - // 支付宝根证书路径 - 'alipay_root_cert' => env('ALI_CERT_ROOT', ''), - - // optional,默认 warning;日志路径为:sys_get_temp_dir().'/logs/yansongda.pay.log' - 'log' => [ - 'file' => storage_path('logs/alipay.log'), - // 'level' => 'debug' - // 'type' => 'single', // optional, 可选 daily. - // 'max_file' => 30, - ], - - // optional,设置此参数,将进入沙箱模式 - // 'mode' => 'dev', - ], - - 'wechat' => [ - // 公众号 APPID - 'app_id' => env('WECHAT_APP_ID', ''), - - // 小程序 APPID - 'miniapp_id' => env('WECHAT_MINIAPP_ID', ''), - - // APP 引用的 appid - 'appid' => env('WECHAT_APPID', ''), - - // 微信支付分配的微信商户号 - 'mch_id' => env('WECHAT_MCH_ID', ''), - - // 微信支付异步通知地址 - 'notify_url' => '', - - // 微信支付签名秘钥 - 'key' => env('WECHAT_KEY', ''), - - // 客户端证书路径,退款、红包等需要用到。请填写绝对路径,linux 请确保权限问题。pem 格式。 - 'cert_client' => '', - - // 客户端秘钥路径,退款、红包等需要用到。请填写绝对路径,linux 请确保权限问题。pem 格式。 - 'cert_key' => '', - - // optional,默认 warning;日志路径为:sys_get_temp_dir().'/logs/yansongda.pay.log' - 'log' => [ - 'file' => storage_path('logs/wechat.log'), - // 'level' => 'debug' - // 'type' => 'single', // optional, 可选 daily. - // 'max_file' => 30, - ], - - // optional - // 'dev' 时为沙箱模式 - // 'hk' 时为东南亚节点 - // 'mode' => 'dev', - ], -];