QueryPlugin.php 646 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. declare(strict_types=1);
  3. namespace Yansongda\Pay\Plugin\Unipay\OnlineGateway;
  4. use Yansongda\Pay\Plugin\Unipay\GeneralPlugin;
  5. use Yansongda\Pay\Rocket;
  6. /**
  7. * @see https://open.unionpay.com/tjweb/acproduct/APIList?acpAPIId=757&apiservId=448&version=V2.2&bussType=0
  8. */
  9. class QueryPlugin extends GeneralPlugin
  10. {
  11. protected function getUri(Rocket $rocket): string
  12. {
  13. return 'gateway/api/queryTrans.do';
  14. }
  15. protected function doSomething(Rocket $rocket): void
  16. {
  17. $rocket->mergePayload([
  18. 'bizType' => '000000',
  19. 'txnType' => '00',
  20. 'txnSubType' => '00',
  21. ]);
  22. }
  23. }