change(internal): 调整 银联 插件文件夹结构 (#923)

This commit is contained in:
yansongda 2024-01-06 17:48:07 +08:00 committed by GitHub
parent 4857dc9cb1
commit 3e097ba65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
55 changed files with 140 additions and 139 deletions

View File

@ -25,6 +25,7 @@
- change(internal): 将 `call()` 方法重命名为 `shortcut()`(#914)
- change(internal): `mergeCommonPlugins` 不再作为 `AbstractProvider` 的方法(#918)
- change(internal): `AbstractProvider` 默认使用 `HttpClientFactoryInterface` 创建 http client(#921)
- change(internal): 调整 银联 插件文件夹结构(#923)
## v3.5.3

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay;
namespace Yansongda\Pay\Plugin\Unipay\Open;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay;
namespace Yansongda\Pay\Plugin\Unipay\Open;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\H5;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\H5;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\Web;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\Web;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\Web;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Plugin\Unipay\Open\Pay\Web;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay;
namespace Yansongda\Pay\Plugin\Unipay\Open;
use Closure;
use GuzzleHttp\Psr7\Response;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay;
namespace Yansongda\Pay\Plugin\Unipay\Open;
use Closure;
use Yansongda\Pay\Contract\ConfigInterface;

View File

@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay;
namespace Yansongda\Pay\Plugin\Unipay\Open;
use Closure;
use Yansongda\Pay\Contract\PluginInterface;

View File

@ -17,11 +17,11 @@ use Yansongda\Pay\Exception\ServiceNotFoundException;
use Yansongda\Pay\Pay;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\CallbackPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\CallbackPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Supports\Collection;
use Yansongda\Supports\Str;

View File

@ -9,16 +9,16 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\CancelPlugin as QrCodeCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\CancelPlugin as webCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\CancelPlugin as QrCodeCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\CancelPlugin as webCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\CancelPlugin as QraPosCancelQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Supports\Str;
class CancelShortcut implements ShortcutInterface

View File

@ -7,11 +7,11 @@ namespace Yansongda\Pay\Shortcut\Unipay;
use Yansongda\Pay\Contract\ShortcutInterface;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\H5\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\H5\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
class H5Shortcut implements ShortcutInterface
{

View File

@ -9,16 +9,16 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\PosPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\PosPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\PosPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\PosPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Supports\Str;
class PosShortcut implements ShortcutInterface

View File

@ -9,17 +9,17 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\QueryPlugin as QrCodeQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\QueryPlugin as WebQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\QueryPlugin as QrCodeQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\QueryPlugin as WebQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\QueryPlugin as QraPosQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\QueryRefundPlugin as QraPosQueryRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Supports\Str;
class QueryShortcut implements ShortcutInterface

View File

@ -9,16 +9,16 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\RefundPlugin as QrCodeRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\RefundPlugin as OnlineGatewayRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\RefundPlugin as QrCodeRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\RefundPlugin as OnlineGatewayRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\RefundPlugin as QraPosRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Supports\Str;
class RefundShortcut implements ShortcutInterface

View File

@ -9,14 +9,14 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanFeePlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPreOrderPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanFeePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPreOrderPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Supports\Str;
class ScanShortcut implements ShortcutInterface

View File

@ -7,11 +7,11 @@ namespace Yansongda\Pay\Shortcut\Unipay;
use Yansongda\Pay\Contract\ShortcutInterface;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
class WebShortcut implements ShortcutInterface
{

View File

@ -1,11 +1,11 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open;
use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
use Yansongda\Supports\Collection;

View File

@ -2,9 +2,9 @@
declare(strict_types=1);
namespace Yansongda\Pay\Tests\Plugin\Unipay;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open;
use Yansongda\Pay\Plugin\Unipay\CallbackPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\CallbackPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\H5;
use Yansongda\Pay\Direction\ResponseDirection;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\H5\PayPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
@ -40,8 +40,8 @@ class PayPluginTest extends TestCase
'signature' => '',
'bizType' => '2',
'accessType' => '1',
'merId' => '777290058167151',
'currencyCode' => '156',
'merId' => '777290058167151',
'channelType' => '5',
'signMethod' => '01',
'txnType' => '3',
@ -68,8 +68,8 @@ class PayPluginTest extends TestCase
'signature' => '',
'bizType' => '000201',
'accessType' => '0',
'merId' => '777290058167151',
'currencyCode' => '156',
'merId' => '777290058167151',
'channelType' => '07',
'signMethod' => '01',
'txnType' => '01',

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\CancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\CancelPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\PosPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\PosPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\PosPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\PosPreAuthPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\QueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\QueryPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\RefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\RefundPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanFeePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanFeePlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPreAuthPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\QrCode;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\QrCode;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPreOrderPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPreOrderPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\Web;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\CancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\CancelPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\H5;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\Web;
use Yansongda\Pay\Direction\ResponseDirection;
use Yansongda\Pay\Plugin\Unipay\Pay\H5\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\PayPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
@ -40,8 +40,8 @@ class PayPluginTest extends TestCase
'signature' => '',
'bizType' => '2',
'accessType' => '1',
'currencyCode' => '156',
'merId' => '777290058167151',
'currencyCode' => '156',
'channelType' => '5',
'signMethod' => '01',
'txnType' => '3',
@ -68,8 +68,8 @@ class PayPluginTest extends TestCase
'signature' => '',
'bizType' => '000201',
'accessType' => '0',
'currencyCode' => '156',
'merId' => '777290058167151',
'currencyCode' => '156',
'channelType' => '07',
'signMethod' => '01',
'txnType' => '01',

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\Web;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\QueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\QueryPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay\Pay\Web;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open\Pay\Web;
use Yansongda\Pay\Packer\QueryPacker;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\RefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\RefundPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;

View File

@ -1,10 +1,10 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open;
use GuzzleHttp\Psr7\Request;
use Psr\Http\Message\ResponseInterface;
use Yansongda\Pay\Plugin\Unipay\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\ResponseHtmlPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
use Yansongda\Supports\Collection;

View File

@ -1,10 +1,10 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open;
use Yansongda\Pay\Contract\ConfigInterface;
use Yansongda\Pay\Pay;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
use function Yansongda\Pay\get_unipay_config;

View File

@ -1,9 +1,9 @@
<?php
namespace Yansongda\Pay\Tests\Plugin\Unipay;
namespace Yansongda\Pay\Tests\Plugin\Unipay\Open;
use Yansongda\Pay\Direction\NoHttpRequestDirection;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Rocket;
use Yansongda\Pay\Tests\TestCase;
use Yansongda\Supports\Collection;

View File

@ -13,10 +13,10 @@ use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Pay;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Tests\Stubs\Plugin\FooPluginStub;
use Yansongda\Pay\Tests\TestCase;

View File

@ -8,16 +8,16 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\CancelPlugin as QrCodeCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\CancelPlugin as OnlineGatewayCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\CancelPlugin as QrCodeCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\CancelPlugin as OnlineGatewayCancelPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\CancelPlugin as QraPosCancelQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Shortcut\Unipay\CancelShortcut;
use Yansongda\Pay\Tests\TestCase;

View File

@ -6,11 +6,11 @@ namespace Yansongda\Pay\Tests\Shortcut\Unipay;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\H5\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\H5\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Shortcut\Unipay\H5Shortcut;
use Yansongda\Pay\Tests\TestCase;

View File

@ -8,16 +8,16 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\PosPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\PosPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\PosPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\PosPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Shortcut\Unipay\PosShortcut;
use Yansongda\Pay\Tests\TestCase;

View File

@ -8,17 +8,17 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\QueryPlugin as QrCodeQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\QueryPlugin as OnlineGatewayQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\QueryPlugin as QrCodeQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\QueryPlugin as OnlineGatewayQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\QueryPlugin as QraPosQueryPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\QueryRefundPlugin as QraPosQueryRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Shortcut\Unipay\QueryShortcut;
use Yansongda\Pay\Tests\TestCase;

View File

@ -7,16 +7,16 @@ namespace Yansongda\Pay\Tests\Shortcut\Unipay;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\RefundPlugin as QrCodeRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\RefundPlugin as OnlineGatewayRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\RefundPlugin as QrCodeRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\RefundPlugin as OnlineGatewayRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\AddPayloadSignaturePlugin as QraAddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\Pos\RefundPlugin as QraPosRefundPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\StartPlugin as QraStartPlugin;
use Yansongda\Pay\Plugin\Unipay\Qra\VerifySignaturePlugin as QraVerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Shortcut\Unipay\RefundShortcut;
use Yansongda\Pay\Tests\TestCase;

View File

@ -8,14 +8,14 @@ use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanFeePlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\QrCode\ScanPreOrderPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\VerifySignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanFeePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPreAuthPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\QrCode\ScanPreOrderPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\VerifySignaturePlugin;
use Yansongda\Pay\Shortcut\Unipay\ScanShortcut;
use Yansongda\Pay\Tests\TestCase;

View File

@ -6,11 +6,11 @@ namespace Yansongda\Pay\Tests\Shortcut\Unipay;
use Yansongda\Pay\Plugin\ParserPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadBodyPlugin;
use Yansongda\Pay\Plugin\Unipay\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\AddRadarPlugin;
use Yansongda\Pay\Plugin\Unipay\Pay\Web\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\StartPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\AddPayloadSignaturePlugin;
use Yansongda\Pay\Plugin\Unipay\Open\Pay\Web\PayPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\ResponseHtmlPlugin;
use Yansongda\Pay\Plugin\Unipay\Open\StartPlugin;
use Yansongda\Pay\Shortcut\Unipay\WebShortcut;
use Yansongda\Pay\Tests\TestCase;