国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
736B

  1. <?php
  2. namespace AliPay;
  3. if (!defined('DEDEINC')) exit ('dedebiz');
  4. use WeChat\Contracts\BasicAliPay;
  5. /**
  6. * 支付宝App支付网关
  7. * Class App
  8. * @package AliPay
  9. */
  10. class App extends BasicAliPay
  11. {
  12. /**
  13. * App constructor.
  14. * @param array $options
  15. */
  16. public function __construct(array $options)
  17. {
  18. parent::__construct($options);
  19. $this->options->set('method', 'alipay.trade.app.pay');
  20. $this->params->set('product_code', 'QUICK_MSECURITY_PAY');
  21. }
  22. /**
  23. * 创建数据操作
  24. * @param array $options
  25. * @return string
  26. */
  27. public function apply($options)
  28. {
  29. $this->applyData($options);
  30. return http_build_query($this->options->get());
  31. }
  32. }
  33. ?>