ScanFeePlugin.php
678 字节
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Unipay\QrCode;
use Yansongda\Pay\Plugin\Unipay\GeneralPlugin;
use Yansongda\Pay\Rocket;
/**
* @see https://open.unionpay.com/tjweb/acproduct/APIList?acpAPIId=796&apiservId=468&version=V2.2&bussType=0
*/
class ScanFeePlugin extends GeneralPlugin
{
protected function getUri(Rocket $rocket): string
{
return 'gateway/api/backTransReq.do';
}
protected function doSomething(Rocket $rocket): void
{
$rocket->mergePayload([
'bizType' => '000601',
'txnType' => '13',
'txnSubType' => '08',
'channelType' => '08',
]);
}
}