Auth/ScanFreezePlugin.php

yansongda/pay · src/Plugin/Alipay/V2/Pay/Authorization/Auth/ScanFreezePlugin.php · php · MIT
auth

Alipay scan freeze plugin for creating pre-authorization payment orders

// Source: https://github.com/yansongda/pay | License: MIT | Copyright 2017 yansongda <me@yansongda.cn>
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace Yansongda\Pay\Plugin\Alipay\V2\Pay\Authorization\Auth;

use Closure;
use Yansongda\Artful\Contract\PluginInterface;
use Yansongda\Artful\Logger;
use Yansongda\Artful\Rocket;
use Yansongda\Pay\Enum\Alipay\ProductCode;

/**
 * @see https://opendocs.alipay.com/open/09bj50?pathHash=9c577eb9&ref=api&scene=b58198cdbff342edad810bfee704489a
 */
class ScanFreezePlugin implements PluginInterface
{
    public function assembly(Rocket $rocket, Closure $next): Rocket
    {
        Logger::debug('[Alipay][Pay][Authorization][Auth][ScanFreezePlugin] 插件开始装载', ['rocket' => $rocket]);

        $rock

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key