WapGateway.php 839 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. namespace Yansongda\Pay\Gateways\Alipay;
  3. class WapGateway extends Alipay
  4. {
  5. /**
  6. * get method config.
  7. *
  8. * @author yansongda <me@yansongda.cn>
  9. *
  10. * @version 2017-08-10
  11. *
  12. * @return string [description]
  13. */
  14. protected function getMethod()
  15. {
  16. return 'alipay.trade.wap.pay';
  17. }
  18. /**
  19. * get productCode config.
  20. *
  21. * @author yansongda <me@yansongda.cn>
  22. *
  23. * @return string
  24. */
  25. protected function getProductCode()
  26. {
  27. return 'QUICK_WAP_WAY';
  28. }
  29. /**
  30. * pay a order.
  31. *
  32. * @author yansongda <me@yansongda.cn>
  33. *
  34. * @param array $config_biz
  35. *
  36. * @return string
  37. */
  38. public function pay(array $config_biz = [])
  39. {
  40. parent::pay($config_biz);
  41. return $this->buildPayHtml();
  42. }
  43. }