for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yansongda\Pay\Plugin\Wechat\Fund\Transfer;
use Yansongda\Pay\Exception\Exception;
use Yansongda\Pay\Exception\InvalidParamsException;
use Yansongda\Pay\Plugin\Wechat\GeneralPlugin;
use Yansongda\Pay\Rocket;
class CreateBillReceiptPlugin extends GeneralPlugin
{
/**
* @throws \Yansongda\Pay\Exception\InvalidParamsException
*/
protected function doSomething(Rocket $rocket): void
$payload = $rocket->getPayload();
if (is_null($payload->get('out_batch_no'))) {
throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS);
}
protected function getUri(Rocket $rocket): string
return 'v3/transfer/bill-receipt';