Wap.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | WeChatDeveloper
  4. // +----------------------------------------------------------------------
  5. // | 版权所有 2014~2022 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
  6. // +----------------------------------------------------------------------
  7. // | 官方网站: http://think.ctolog.com
  8. // +----------------------------------------------------------------------
  9. // | 开源协议 ( https://mit-license.org )
  10. // +----------------------------------------------------------------------
  11. // | github开源项目:https://github.com/zoujingli/WeChatDeveloper
  12. // +----------------------------------------------------------------------
  13. namespace AliPay;
  14. use WeChat\Contracts\BasicAliPay;
  15. /**
  16. * 手机WAP网站支付支持
  17. * Class Wap
  18. * @package AliPay
  19. */
  20. class Wap extends BasicAliPay
  21. {
  22. /**
  23. * Wap constructor.
  24. * @param array $options
  25. */
  26. public function __construct(array $options)
  27. {
  28. parent::__construct($options);
  29. $this->options->set('method', 'alipay.trade.wap.pay');
  30. $this->params->set('product_code', 'QUICK_WAP_WAY');
  31. }
  32. /**
  33. * 创建数据操作
  34. * @param array $options
  35. * @return string
  36. */
  37. public function apply($options)
  38. {
  39. parent::applyData($options);
  40. return $this->buildPayHtml();
  41. }
  42. }