AppGateway.php 807 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace Yansongda\Pay\Gateways\Alipay;
  3. class AppGateway 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.app.pay';
  15. }
  16. /**
  17. * get productCode method.
  18. *
  19. * @author yansongda <me@yansongda.cn>
  20. *
  21. * @return string
  22. */
  23. protected function getProductCode()
  24. {
  25. return 'QUICK_MSECURITY_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 http_build_query($this->config);
  40. }
  41. }