WebGateway.php 801 B

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