CancelPlugin.php 677 B

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