国内流行的内容管理系统(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
720B

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