TransInterface.php 614 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. namespace addons\YunfastPay\common\services\trans;
  3. /**
  4. * 支付接口类
  5. * @package addons\YunfastPay\common\services\trans
  6. */
  7. interface TransInterface
  8. {
  9. /**
  10. * 获取请求参数
  11. *
  12. * @return array
  13. */
  14. public function getTransData(string $mchtCd) :array;
  15. /**
  16. * 交易码
  17. *
  18. * @return string
  19. */
  20. public function getTrscode() :string;
  21. /**
  22. * 产品编号
  23. *
  24. * @return string
  25. */
  26. public function getProCd() :string;
  27. /**
  28. * 费率通道
  29. *
  30. * @return integer
  31. */
  32. public function getChanelType() :int;
  33. }